This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
forked from uktrade/data-hub-frontend
/
package.json
239 lines (239 loc) · 8.64 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"name": "data-hub-frontend",
"description": "Data Hub Frontend",
"main": "src/server.js",
"repository": {
"type": "git",
"url": "https://github.com/uktrade/data-hub-frontend"
},
"scripts": {
"storybook": "start-storybook",
"storybook:build": "rimraf storybook-static && build-storybook --quiet",
"storybook:release": "npm run storybook:build && cp -R ./.circleci ./storybook-static/.circleci && git-directory-deploy --directory storybook-static --branch gh-pages",
"clean": "del .build cypress-coverage",
"start": "node --use-strict src/server.js",
"start:coverage": "nyc --silent npm run start",
"build": "npm run clean && webpack",
"develop": "NODE_ENV=development npm run watch:js:client -- --env.backend=true",
"watch:test": "npm run test:unit -- -w",
"watch:js:client": "webpack --watch --progress",
"watch:js:server": "nodemon $NODE_DEBUG_OPTION --inspect --ignore 'src/**/__test__/**/*'",
"lint": "run-p lint:*",
"lint:js": "npx eslint --ext .jsx,.js ./test ./src ./assets",
"lint:sass": "npx sass-lint -v -q -c .sass-lint.yml 'assets/stylesheets/**/*.scss'",
"test": "run-s test:*",
"test:unit": "NODE_ENV=test API_ROOT=http://test LOG_LEVEL=silent MOCHA_FILE=junit/test-results.xml npx mocha ./src/**/*.test.js --opts ./test/unit/mocha.opts",
"test:unit-client": "NODE_ENV=test WEBPACK_ENV=develop MOCHA_FILE=junit/test-results.xml npx mocha-webpack --webpack-config webpack.config.js --opts ./test/unit-client/mocha.opts ./test/unit-client/assets/javascripts/**/*.test.js",
"test:functional": "cypress run --browser chrome",
"test:functional:watch": "cypress open",
"test:e2e:lep": "CYPRESS_coverage=false CYPRESS_integrationFolder=test/end-to-end/cypress/specs/LEP cypress run --browser chrome",
"test:e2e:da": "CYPRESS_coverage=false CYPRESS_integrationFolder=test/end-to-end/cypress/specs/DA cypress run --browser chrome",
"test:e2e:dit": "CYPRESS_coverage=false CYPRESS_integrationFolder=test/end-to-end/cypress/specs/DIT cypress run --browser chrome",
"test:e2e:watch": "CYPRESS_coverage=false CYPRESS_integrationFolder=test/end-to-end/cypress/specs cypress open",
"test:visual": "npx wdio test/visual/wdio.conf.js",
"test:visual:update": "wdio-image-diff -u",
"coverage": "npx nyc --reporter=html --reporter=json --reporter=text --reporter=lcov --report-dir=coverage npm run test:unit",
"circle:unit": "npx nyc --reporter=lcov --reporter=json --report-dir=coverage npm run test:unit -- --reporter mocha-circleci-reporter && codeclimate-test-reporter < coverage/lcov.info",
"circle:unit-client": "npm run test:unit-client --reporter mocha-circleci-reporter",
"heroku-postbuild": "npm cache verify && npm rebuild && npm run build",
"lint-staged": "lint-staged"
},
"nyc": {
"report-dir": "cypress-coverage",
"extension": [
".jsx",
".js"
]
},
"pre-commit": "lint-staged",
"lint-staged": {
"*.{js,jsx}": "eslint",
"*.scss": "sass-lint -v -q -c .sass-lint.yml"
},
"license": "MIT",
"engines": {
"node": "12.18.0"
},
"dependencies": {
"@babel/core": "^7.11.6",
"@babel/helper-call-delegate": "^7.11.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/preset-env": "^7.11.5",
"@babel/preset-react": "^7.10.4",
"@govuk-react/constants": "^0.7.1",
"@hapi/hawk": "^8.0.0",
"@hapi/joi": "^17.1.1",
"@sentry/browser": "^5.24.2",
"@storybook/addon-actions": "^6.0.25",
"@storybook/addon-knobs": "^5.3.18",
"@storybook/addons": "^6.0.25",
"@storybook/react": "^6.0.26",
"@uktrade/datahub-header": "1.2.5",
"autoprefixer": "^9.8.6",
"axios": "^0.21.1",
"babel-loader": "^8.1.0",
"basic-auth": "^2.0.0",
"body-parser": "^1.18.3",
"bodybuilder": "^2.2.21",
"case": "^1.5.5",
"chrono-node": "^2.1.8",
"classlist.js": "^1.1.20150312",
"compression": "^1.7.1",
"connect-flash": "0.1.1",
"connect-redis": "^5.0.0",
"connected-react-router": "^6.8.0",
"constate": "^2.0.0",
"cookie-parser": "^1.4.5",
"core-js": "^3.6.5",
"css-loader": "^4.3.0",
"csurf": "^1.9.0",
"data-hub-components": "5.10.2",
"date-fns": "^1.29.0",
"del-cli": "^3.0.0",
"details-element-polyfill": "^2.4.0",
"dotenv": "^8.2.0",
"elastic-apm-node": "^3.6.1",
"element-closest": "^3.0.2",
"express": "^4.16.2",
"express-minify-html": "^0.12.0",
"express-session": "^1.17.1",
"express-sslify": "^1.2.0",
"express-useragent": "^1.0.15",
"file-loader": "^6.1.0",
"formidable": "^1.2.2",
"get-form-data": "^3.0.0",
"govuk-colours": "1.1.0",
"govuk-elements-sass": "^3.1.3",
"govuk-frontend": "^2.11.0",
"govuk-react": "^0.7.0",
"govuk_frontend_toolkit": "^9.0.0",
"history": "^4.10.1",
"hmpo-form-wizard": "^11.8.0",
"html5shiv": "^3.7.3",
"http-proxy-middleware": "^1.0.3",
"image-webpack-loader": "^7.0.1",
"ini": "^1.3.1",
"lodash": "^4.17.20",
"markdown-it": "^12.3.2",
"mini-css-extract-plugin": "^0.11.3",
"moment": "^2.22.1",
"moment-duration-format": "^2.1.0",
"morgan": "^1.10.0",
"numeral": "^2.0.6",
"nunjucks": "^3.2.2",
"nunjucks-markdown": "^2.0.1",
"pluralize": "^8.0.0",
"postcss-cli": "^7.1.1",
"postcss-loader": "^4.0.2",
"prop-types": "^15.6.2",
"pure-uuid": "^1.6.1",
"qs": "^6.9.4",
"raven": "^2.6.2",
"react": "^16.13.1",
"react-app-polyfill": "^1.0.1",
"react-dom": "^16.13.1",
"react-redux": "^7.2.1",
"react-router-dom": "^5.1.2",
"react-use": "^15.1.1",
"redis": "3.1.1",
"redux": "^4.0.5",
"redux-devtools-extension": "^2.13.8",
"redux-saga": "^1.1.3",
"request": "^2.87.0",
"request-promise": "^4.2.6",
"resolve-url-loader": "^3.1.1",
"sass": "^1.26.10",
"sass-loader": "^10.0.2",
"semantic-release": "^17.2.3",
"serve-favicon": "^2.5.0",
"slashify": "^1.0.0",
"sniffr": "^1.1.4",
"style-loader": "^1.2.1",
"styled-components": "^5.1.0",
"tar": "^6.0.5",
"uuid": "^8.3.0",
"vue": "^2.6.12",
"vue-loader": "^15.9.3",
"vue-multiselect": "^2.1.0",
"vue-template-compiler": "^2.6.12",
"wdio-chromedriver-service": "^6.0.4",
"webpack": "^4.44.2",
"webpack-assets-manifest": "^3.1.1",
"webpack-cli": "^3.3.12",
"winston": "^3.3.3"
},
"devDependencies": {
"@cypress/code-coverage": "^3.8.1",
"@uktrade/client-matrix-js": "^1.0.88",
"@uktrade/wdio-image-diff-js": "1.7.0",
"@vue/test-utils": "^1.0.3",
"@wdio/browserstack-service": "^6.4.7",
"@wdio/cli": "6.1.25",
"@wdio/local-runner": "^6.5.2",
"@wdio/mocha-framework": "^6.5.0",
"@wdio/reporter": "^5.18.6",
"@wdio/selenium-standalone-service": "^6.1.14",
"@wdio/spec-reporter": "^6.4.7",
"@wdio/sync": "6.5.0",
"babel-eslint": "^10.1.0",
"babel-plugin-istanbul": "6.0.0",
"browser-sync": "^2.26.12",
"browserstack-local": "^1.4.8",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"chai-subset": "^1.6.0",
"chromedriver": "^85.0.1",
"codeclimate-test-reporter": "^0.5.0",
"cucumber": "^4.2.1",
"cucumber-html-reporter": "^5.2.0",
"cypress": "^5.0.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.1.2",
"faker": "^4.1.0",
"git-directory-deploy": "^1.5.1",
"html": "^1.0.0",
"istanbul": "^0.4.5",
"istanbul-lib-coverage": "^3.0.0",
"js-beautify": "^1.13.0",
"jsdom": "^16.4.0",
"jsdom-global": "^3.0.2",
"lint-staged": "^10.4.0",
"mocha": "^5.2.0",
"mocha-circleci-reporter": "0.0.3",
"mocha-multi": "^1.0.0",
"mocha-webpack": "^2.0.0-beta.0",
"nightwatch": "^0.9.21",
"nightwatch-cucumber": "^9.0.0",
"nightwatch-custom-commands-assertions": "^1.1.1",
"nock": "^13.0.4",
"nodemon": "^2.0.3",
"npm-run-all": "^4.1.3",
"nyc": "15.1.0",
"pre-commit": "^1.2.2",
"prettier": "^2.1.2",
"proxyquire": "^2.0.0",
"reqres": "^3.0.1",
"rewire": "^5.0.0",
"sass-lint": "^1.12.1",
"selenium-server": "^3.12.0",
"sinon": "^8.1.1",
"sinon-chai": "^3.1.0",
"storybook-readme": "^5.0.8",
"supertest": "^5.0.0"
},
"sasslintConfig": ".sass-lint.yml",
"resolutions": {
"tar": "^4.4.8",
"http-proxy-agent": "^2.1.0"
}
}