-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
93 lines (93 loc) · 3.55 KB
/
package.json
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
{
"name": "wdiv-widget",
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^1.2.1",
"css-vars-ponyfill": "^2.2.1",
"es6-shim": "^0.35.5",
"nvm": "^0.0.4",
"proxy-polyfill": "^0.3.1",
"react": "^16.13.1",
"react-app-polyfill": "^1.0.6",
"react-dom": "^16.13.1",
"react-intl": "^5.0.2",
"react-shadow": "^18.1.0",
"react-tooltip": "^4.2.21",
"styled-components": "^5.3.0"
},
"devDependencies": {
"@axe-core/react": "^4.5.2",
"@baristalabs/react-app-rewire-raw-loader": "^0.1.3",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^9.5.0",
"coveralls": "^3.1.0",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.24.0",
"husky": "^4.2.3",
"lint-staged": "^10.0.8",
"prettier": "^2.0.5",
"raw-loader": "^4.0.0",
"react-app-rewired": "^2.2.1",
"react-scripts": "^3.4.1",
"react-test-renderer": "^16.13.0",
"rewire": "^5.0.0",
"sinon": "^9.0.2"
},
"engines": {
"node": "^16.18.1"
},
"scripts": {
"dc:start:prod": "REACT_APP_BRAND=DC REACT_APP_API=prod react-app-rewired start",
"dc:start:sandbox": "REACT_APP_BRAND=DC REACT_APP_API=sandbox react-app-rewired start",
"dc:start:mock": "REACT_APP_BRAND=DC REACT_APP_API=mock react-app-rewired start",
"dc:build:prod": "PUBLIC_URL=https://widget.wheredoivote.co.uk REACT_APP_BRAND=DC REACT_APP_API=prod node ./build-without-chunks.js",
"dc:build:sandbox": "echo '⚠️ creating production build serving sandbox data 🚨' && REACT_APP_BRAND=DC REACT_APP_API=sandbox node ./build-without-chunks.js",
"dc:build:mock": "echo '⚠️ creating production build serving mock data 🚨' && REACT_APP_BRAND=DC REACT_APP_API=mock node ./build-without-chunks.js",
"ec:start:prod": "REACT_APP_BRAND=EC REACT_APP_API=prod react-app-rewired start",
"ec:start:sandbox": "REACT_APP_BRAND=EC REACT_APP_API=sandbox react-app-rewired start",
"ec:start:mock": "REACT_APP_BRAND=EC REACT_APP_API=mock react-app-rewired start",
"ec:build:prod": "PUBLIC_URL=https://api.electoralcommission.org.uk/widget REACT_APP_BRAND=EC REACT_APP_API=prod node ./build-without-chunks.js",
"ec:build:sandbox": "echo '⚠️ creating production build serving sandbox data 🚨' && REACT_APP_BRAND=EC REACT_APP_API=sandbox node ./build-without-chunks.js",
"ec:build:mock": "echo '⚠️ creating production build serving mock data 🚨' && REACT_APP_BRAND=EC REACT_APP_API=mock node ./build-without-chunks.js",
"test": "REACT_APP_API=sandbox REACT_APP_TESTING=true react-app-rewired test --env=jsdom",
"coverage": "REACT_APP_API=sandbox REACT_APP_TESTING=true react-app-rewired test --env=jsdom --coverage",
"coveralls": "cat ./coverage/lcov.info | node ./node_modules/.bin/coveralls",
"lint": "eslint \"./src/**/*.js\"",
"prettier": "prettier --write \"./src/**/*.js\"",
"prettier:check": "prettier --check \"./src/**/*.js\"",
"eject": "react-scripts eject"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 9",
"not op_mini all"
],
"jest": {
"coveragePathIgnorePatterns": [
"<rootDir>/src/tests/utils/"
],
"watchPathIgnorePatterns": [
"<rootDir>/src/tests/utils/"
],
"moduleFileExtensions": [
"...defaults.moduleFileExtensions",
"css",
"js"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix"
]
}
}