-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
117 lines (117 loc) · 4.11 KB
/
package.json
File metadata and controls
117 lines (117 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"name": "crema-app-web",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "16.12.0",
"react-dom": "16.12.0",
"react-scripts": "3.3.1"
},
"devDependencies": {
"@babel/core": "7.8.4",
"@storybook/addon-actions": "5.3.13",
"@storybook/addon-centered": "5.3.13",
"@storybook/addon-links": "5.3.13",
"@storybook/addons": "5.3.13",
"@storybook/cli": "5.3.13",
"@storybook/react": "5.3.13",
"@testing-library/react": "9.4.0",
"@types/jest": "24.9.1",
"@types/node": "12.12.27",
"@types/react": "16.9.19",
"@types/react-dom": "16.9.5",
"cypress": "4.0.1",
"dependency-cruiser": "7.2.0",
"eslint-config-prettier": "6.10.0",
"eslint-plugin-cypress": "2.9.0",
"eslint-plugin-prettier": "3.1.2",
"eslint-plugin-react": "7.18.3",
"husky": "4.2.3",
"husky-add-issue-tracker": "0.0.9",
"hygen": "5.0.3",
"loki": "0.18.1",
"npm-run-all": "4.1.5",
"prettier": "1.19.1",
"serve": "11.3.0",
"source-map-explorer": "2.2.2",
"start-server-and-test": "1.10.8",
"typescript": "3.7.5",
"wait-on": "4.0.0",
"webpack": "4.41.5"
},
"scripts": {
"start": "EXTEND_ESLINT=true react-scripts start",
"start:ci": "EXTEND_ESLINT=true npm-run-all build static",
"build": "EXTEND_ESLINT=true react-scripts build",
"test": "EXTEND_ESLINT=true react-scripts test --testMatch=[ \"**/?(*.)test.ts?(x)\" ]",
"new:component": "hygen component new",
"new:type": "hygen type new",
"new:util": "hygen util new",
"prepush": "npm run test:ci",
"static": "serve -s build",
"deps:graph": "depcruise --validate --output-type dot -- src | dot -T svg > dependency-graph.svg",
"deps:report": "depcruise --validate --output-type err-html --output-to dependency-report.html -- src",
"test:ci": "CI=true npm-run-all test:lint test:deps test:types \"test:unit -- -i\" test:visual:ci test:e2e:ci",
"test:deps": "depcruise --validate -- src",
"test:e2e": "cypress run",
"test:e2e:ci": "CYPRESS_baseUrl=http://localhost:5000 start-server-and-test start:ci http://localhost:5000 \"cypress run --port 5052\"",
"test:lint": "eslint -c ./.eslintrc.js 'src/**/*.{ts,tsx}'",
"test:lint:fix": "npm run test:lint -- --fix",
"test:playground": "NODE_ENV=loki BABEL_ENV=development start-storybook -p 9009 -s public",
"test:playground:build": "build-storybook",
"test:playground:ci": "start-storybook -p 5000 -s public --ci",
"test:types": "tsc",
"test:unit": "npm run test --",
"test:unit:coverage": "npm run test:unit -- --coverage --watchAll=false",
"test:unit:coverage:watch": "npm run test:unit:coverage -- --watch",
"test:visual": "CI=true loki --port 9009 --chromeDockerImage=yukinying/chrome-headless-browser-xl:74.0.3729.28",
"test:visual:ci:start": "CI=true loki --port 5000 --chromeDockerImage=yukinying/chrome-headless-browser-xl:74.0.3729.28",
"test:visual:ci": "start-server-and-test test:playground:ci http://localhost:5000 test:visual:ci:start",
"test:visual:approve": "npm run test:visual -- approve",
"test:visual:update": "npm run test:visual -- update",
"test:analyze": "npm-run-all build && source-map-explorer build/static/js/main.*",
"build-storybook": "build-storybook -s public"
},
"husky": {
"hooks": {
"pre-push": "npm run prepush",
"prepare-commit-msg": "husky-add-issue-tracker"
}
},
"jest": {
"collectCoverageFrom": [
"!node_modules",
"!src/**/?(*.)stories.{ts,tsx}",
"!src/index.tsx",
"!src/serviceWorker.ts",
"!src/**/?(*.)test.{ts,tsx}",
"!**/*.d.ts",
"src/**/*.{ts,tsx}"
]
},
"loki": {
"requireReference": true,
"configurations": {
"chrome": {
"target": "chrome.docker",
"width": 800,
"height": 800,
"deviceScaleFactor": 1,
"mobile": false,
"fitWindow": false
}
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}