forked from hmcts/pcq-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
114 lines (114 loc) · 5.51 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
{
"name": "protected-characteristics-frontend",
"description": "Protected Characteristics web app",
"version": "1.0.0",
"engines": {
"node": ">=8.9"
},
"scripts": {
"setup": "NODE_PATH=. npm run sass && npm run git-info && npm run sass-ie8",
"start": "NODE_PATH=. node server.js",
"debug": "NODE_PATH=. node inspect server.js",
"prestart:dev": "npm run sass:watch",
"start:dev": "NODE_PATH=. nodemon -e js,json --watch 'app/' --watch 'test/' -x 'node server.js'",
"sass:watch": "NODE_PATH=. watch 'npm run -s sass' app/assets/sass/ &",
"sass": "NODE_PATH=. node-sass app/assets/sass/application.scss --output public/stylesheets --quiet --output-style expanded --source-map true --include-path node_modules/govuk_template_jinja/assets/stylesheets --include-path node_modules/govuk_frontend_toolkit/stylesheets --include-path node_modules/govuk-elements-sass/public/sass/",
"sass-ie8": "NODE_PATH=. node-sass app/assets/sass/application-ie8.scss --output public/stylesheets --quiet --output-style expanded --source-map true --include-path node_modules/govuk_template_jinja/assets/stylesheets --include-path node_modules/govuk_frontend_toolkit/stylesheets --include-path node_modules/govuk-elements-sass/public/sass/",
"test:all": "npm run test -- $@ && npm run test:mutation -- $@ && npm run test:component -- $@ && npm run test:smoke -- $@ && npm run test:functional -- $@ && npm run test:a11y -- $@ ",
"test": "npm run test:unit -- $@ && npm run test:component -- $@",
"test:unit": "NODE_PATH=. LOG_LEVEL=error mocha test/unit --reporter spec --recursive --timeout 10000",
"test:component": "NODE_PATH=. LOG_LEVEL=error mocha test/component --reporter spec --recursive --timeout 10000",
"test:a11y": "NODE_PATH=. LOG_LEVEL=error ENABLE_TRACKING=false mocha test/accessibility --timeout 30000",
"test:accessibility": "NODE_PATH=. LOG_LEVEL=error ENABLE_TRACKING=false mocha test/accessibility --timeout 15000",
"test:e2e": "NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps --reporter mochawesome",
"test:functional": "NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run -c ./test/end-to-end/ --steps -p allure",
"test:crossbrowser": "NODE_PATH=. codeceptjs run -c test/end-to-end/saucelabs.conf.js --steps",
"test:smoke": "mocha test/smoke/healthcheck.js --timeout 30000 --reporter spec",
"lint": "NODE_PATH=. eslint .",
"eslint": "NODE_PATH=. eslint .",
"eslint-dev:all": "NODE_PATH=. eslint . -c .eslintrc-dev.js",
"eslint-dev:file": "NODE_PATH=. eslint -c .eslintrc-dev.js",
"test:nsp": "NODE_PATH=. nsp check",
"test:codecov-upload": "NODE_ENV=test NODE_PATH=. istanbul cover _mocha './test/**/test*.js' -- -R spec && codecov",
"test:coverage": "NODE_ENV=test NODE_PATH=. istanbul cover _mocha './test/**/test*.js'",
"test:mutation": "npm run git-info && NODE_PATH=. stryker run test/mutation/mutation_unittests.conf.js",
"sonar-scan": "node_modules/sonar-scanner/bin/sonar-scanner -Dsonar.projectName='pcq-frontend' -Dsonar.sources=app -Dsonar.cpd.exclusions=app/steps/** -Dsonar.exclusions=app/journeys/**,app/assets/** -Dsonar.language=js -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info",
"git-info": "node-git-info-json",
"//": "The below scripts are just stubs, don't use them in production",
"stub:orchestration": "NODE_PATH=. node test/service-stubs/orchestration.js",
"stub:s2s": "NODE_PATH=. node test/service-stubs/s2s.js",
"stub:feature-toggles": "NODE_PATH=. node test/service-stubs/feature-toggles.js"
},
"pre-commit": [
"lint"
],
"dependencies": {
"@hmcts/nodejs-logging": "^3.0.0",
"ajv": "^4.11.8",
"applicationinsights": "^1.4.0",
"body-parser": "^1.19.0",
"cheerio": "^1.0.0-rc.3",
"co": "^4.6.0",
"connect-redis": "^3.4.2",
"cookie-parser": "^1.4.4",
"csurf": "^1.10.0",
"dateformat": "^3.0.3",
"debug": "^4.1.1",
"express": "^4.17.1",
"express-session": "^1.16.2",
"express-urlrewrite": "^1.2.0",
"govuk-frontend": "^3.5.0",
"helmet": "^3.22.0",
"https-proxy-agent": "^2.2.2",
"i18next": "^17.0.11",
"ioredis": "^4.14.0",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.15",
"mocha-lcov-reporter": "^1.3.0",
"node-fetch": "^2.2.0",
"node-git-info-json": "^0.1.1",
"node-sass": "^4.13.1",
"nunjucks": "^3.2.0",
"request": "^2.88.0",
"require-directory": "^2.1.1",
"serve-favicon": "^2.5.0",
"stryker": "^0.23.0",
"superagent": "^5.1.0",
"uuid": "^3.3.2",
"validator": "^11.1.0"
},
"devDependencies": {
"allure-commandline": "2.9.0",
"chai": "^4.2.0",
"chai-http": "^4.3.0",
"codacy-coverage": "3.2.0",
"codeceptjs": "^2.2.1",
"codecov": "^4.0.0-0",
"eslint": "^6.1.0",
"eslint-plugin-mocha": "^6.0.0",
"istanbul": "^1.1.0-alpha.1",
"mocha": "^3.5.3",
"mocha-jenkins-reporter": "^0.4.2",
"mochawesome": "^4.0.1",
"nock": "^10.0.6",
"nodemon": "^1.19.1",
"nsp": "^3.2.1",
"pa11y": "^5.3.0",
"phantomjs-prebuilt": "^2.1.16",
"pre-commit": "^1.2.2",
"puppeteer": "^1.19.0",
"rewire": "^4.0.1",
"selenium-standalone": "^6.16.0",
"sinon": "^1.17.7",
"sinon-chai": "^3.3.0",
"sonar-scanner": "^3.1.0",
"sonarqube-scanner": "^2.6.0",
"stryker-api": "^0.16.0",
"stryker-html-reporter": "^0.13.2",
"stryker-javascript-mutator": "^0.6.2",
"stryker-mocha-framework": "^0.9.1",
"stryker-mocha-runner": "^0.17.1",
"supertest": "^4.0.2",
"watch": "^1.0.2"
}
}