-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
107 lines (107 loc) · 5.52 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
{
"name": "lev-web",
"description": "Life Event Verification Web Interface",
"version": "0.3.0",
"main": "app.js",
"scripts": {
"start": "node .",
"stop": "pkill levweb || true",
"dev": "npm-run-all -s postinstall stop:all acceptance:pause dev:up",
"dev:quick": "npm-run-all -s stop:all acceptance:pause dev:up-quick",
"dev:up-quick": "npm-run-all -p dev:frontend-quick dev:backend-quick",
"dev:frontend-quick": "npm-run-all -p create:trigger watch:sass watch:js",
"dev:backend-quick": "npm-run-all -p watch:app start:mockapi",
"dev:up": "npm-run-all -p dev:frontend dev:backend",
"dev:frontend": "npm-run-all -p create:trigger watch:sass watch:js",
"dev:backend": "npm-run-all -p watch:app start:mockapi watch:unit",
"dev:local-api": "npm-run-all -s stop:all acceptance:pause dev:up-local-api",
"dev:up-local-api": "npm-run-all -p dev:frontend-quick watch:app",
"watch:app": "NODE_ENV=development nodemon -w app.js -w config.js -w routes -w middleware -w locales -w lib -w fields -w controllers -w api .",
"test": "npm-run-all lint lint:sass cover check-coverage test:acceptance",
"test:unit": "NODE_ENV=test mocha ./test/unit",
"watch:unit": "nodemon -w app.js -w config.js -w routes -w middleware -w locales -w lib -w fields -w controllers -w api -w test/unit -e js,json -x 'npm-run-all -s acceptance:pause lint cover acceptance:play'",
"test:acceptance": "npm-run-all stop:mockapi start:mockapi test:acceptance:sub stop:mockapi",
"test:acceptance:sub": "npm-run-all -pr start:acceptance acceptance",
"test:ci": "npm-run-all -s lint lint:sass cover check-coverage acceptance",
"start:acceptance": "NODE_ENV=acceptance npm start",
"start:mockapi": "docker run -d -p 8080:8080 --name lev-api-mock --env 'MOCK=true' quay.io/ukhomeofficedigital/lev-api:0.18 > /dev/null 2>&1;true",
"stop:mockapi": "npm-run-all -s -c --silent stop:mockapi:kill stop:mockapi:rm > /dev/null 2>&1;true",
"stop:mockapi:kill": "docker kill lev-api-mock > /dev/null 2>&1;true",
"stop:mockapi:rm": "docker rm lev-api-mock > /dev/null 2>&1;true",
"stop:all": "npm-run-all -c stop:mockapi stop",
"acceptance:pause": "touch ./.acceptance.lock 2>/dev/null",
"acceptance:play": "rm -f ./.acceptance.lock ; [ -e ./.acceptance.waiting ] && npm run create:trigger || true",
"acceptance:wait": "touch ./.acceptance.waiting 2>/dev/null",
"acceptance:done": "rm -f ./.acceptance.waiting",
"acceptance": "npm run cypress:acceptance",
"smoke": "npm run cypress:smoke",
"test:browser": "npm run $([ -n \"${SMOKE_TEST}\" ] && echo smoke || echo acceptance)",
"create:trigger": "touch ./.acceptance.trgr 2>/dev/null",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"lint:client": "eslint ./assets/js",
"cover": "istanbul cover _mocha -- ./test/unit",
"check-coverage": "istanbul check-coverage --statement 80 --branch 65 --function 100 --line 80",
"sass": "if [ -e ./assets/scss/app.scss ]; then node-sass --include-path ./node_modules ./assets/scss/app.scss ./public/css/app.css; fi",
"lint:sass": "sass-lint 'assets/scss/**/*.scss' -v -q",
"watch:sass": "nodemon -w assets/scss -e scss -x 'npm-run-all -s lint:sass sass'",
"copy:images": "if [ -e ./assets/images ]; then cp -r ./assets/images ./public/; fi",
"uglify": "if [ -e ./assets/js/index.js ]; then browserify -g uglifyify ./assets/js/index.js > ./public/js/bundle.js; fi",
"watch:js": "nodemon -w assets/js -x 'npm-run-all -s lint:client uglify'",
"browserify": "browserify ./assets/js/index.js > ./public/js/bundle.js",
"create:public": "mkdir -p ./public/css ./public/images ./public/js",
"postinstall": "npm-run-all create:public sass copy:images uglify hooks",
"snyk-protect": "snyk protect",
"hooks": "mkdir -p .git/hooks ; cd .git/hooks/ ; ln -fs ../../hooks/* ./",
"cypress": "cypress open --config baseUrl=${TEST_URL:-http://localhost:8001}",
"cypress:all": "cypress run --config baseUrl=${TEST_URL:-http://localhost:8001} --headless --browser chrome",
"cypress:acceptance": "cypress run --config baseUrl=${TEST_URL:-http://localhost:8001},testFiles=**/acceptance/**/*.js --headless --browser chrome",
"cypress:smoke": "cypress run --config baseUrl=${TEST_URL:-http://localhost:8001},testFiles=**/smoke/**/*.js --headless --browser chrome"
},
"dependencies": {
"body-parser": "^1.17.1",
"browserify": "^13.0.1",
"churchill": "0.2.0",
"express": "^4.15.2",
"express-partial-templates": "^0.1.0",
"express-session": "^1.12.1",
"file-saver": "^1.3.3",
"hof": "^8.0.0",
"hogan-express-strict": "^0.5.4",
"hogan.js": "^3.0.2",
"lodash": "^4.17.20",
"moment": "^2.22.2",
"moment-round": "^1.0.1",
"node-sass": "^4.14.1",
"npm-run-all": "^4.1.5",
"request": "^2.85.0",
"snyk": "^1.841.0",
"uglifyify": "^5.0.0",
"winston": "^1.0.1"
},
"devDependencies": {
"chai": "^3.5.0",
"chai-as-promised": "^5.3.0",
"cypress": "^6.5.0",
"cypress-keycloak": "^1.8.0",
"eslint": "^3.4.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-filenames": "^1.0.0",
"eslint-plugin-mocha": "^4.5.0",
"eslint-plugin-one-variable-per-var": "0.0.3",
"http-proxy": "^1.18.1",
"istanbul": "^0.4.3",
"jscs": "^3.0.2",
"jsdom": "^11.11.0",
"jsdom-global": "^3.0.2",
"mocha": "^3.0.2",
"nodemon": "^2.0.15",
"proxyquire": "^1.7.3",
"reqres": "^1.2.2",
"rewire": "^2.5.2",
"sass-lint": "^1.10.2",
"sinon": "^7.2.3",
"sinon-chai": "^2.8.0"
},
"snyk": false
}