-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
63 lines (63 loc) · 2.98 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
{
"name": "lev-web-ui",
"version": "1.3.0",
"description": "Life Event Verification User Interface",
"main": "app.js",
"scripts": {
"start": "node .",
"dev": "npm-run-all -pr watch:dev watch:sass",
"postinstall": "npm run build",
"build": "rm -rf public/; npm-run-all build:sass build:js",
"build:sass": "mkdir -p public/stylesheets; sass --load-path=. --quiet-deps --style=compressed assets/stylesheets/app.scss public/stylesheets/application.css",
"build:js": "mkdir -p public/javascripts; cat node_modules/govuk-frontend/govuk/all.js node_modules/hmpo-components/all.js assets/javascripts/*.js > public/javascripts/application.js",
"watch:dev": "nodemon .",
"watch:sass": "sass --watch --load-path=. --quiet-deps --style=compressed assets/stylesheets/app.scss public/stylesheets/application.css",
"start:mockapi": "docker run -d -p 8080:8080 --name lev-api-mock --env 'MOCK=true' quay.io/ukhomeofficedigital/lev-api:0.18.1 > /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",
"test": "npm-run-all lint test:unit test:coverage",
"test:unit": "jest test/unit",
"test:coverage": "jest test/unit --coverage",
"test:ui": "npm run $([ -n \"${SMOKE_TEST}\" ] && echo cypress:smoke || echo cypress:acceptance)",
"cypress": "cypress open --config baseUrl=${TEST_URL:-http://localhost:8001} --e2e",
"cypress:all": "cypress run --config baseUrl=${TEST_URL:-http://localhost:8001} --headless --e2e",
"cypress:a11y": "cypress run --config baseUrl=${TEST_URL:-http://localhost:8001} --headless --e2e --spec **/acceptance/**/*-a11y.cy.js",
"cypress:acceptance": "cypress run --config baseUrl=${TEST_URL:-http://localhost:8001} --headless --e2e --spec **/acceptance/**/*.cy.js",
"cypress:smoke": "cypress run --config baseUrl=${TEST_URL:-http://localhost:8001} --headless --e2e --spec **/smoke/**/*.cy.js",
"lint": "npx eslint ."
},
"author": "HMPO",
"dependencies": {
"@aashutoshrathi/word-wrap": "^1.2.6",
"dotenv": "^16.4.7",
"eslint": "^8.56.0",
"eslint-plugin-cypress": "^3.3.0",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-node": "^11.1.0",
"express": "^4.20.0",
"govuk-frontend": "^4.4.0",
"hmpo-app": "^3.0.2",
"hmpo-components": "^6.5.1",
"hmpo-config": "^3.0.1",
"hmpo-form-wizard": "^13.0.1",
"hmpo-i18n": "^6.0.2",
"hmpo-logger": "^7.0.2",
"hmpo-model": "^4.3.0",
"luxon": "^3.5.0",
"npm-run-all": "^4.1.5",
"nunjucks": "^3.2.3",
"prom-client": "^14.1.0",
"sass": "^1.56.1"
},
"devDependencies": {
"axe-core": "^4.5.2",
"cypress": "12.17.1",
"cypress-axe": "^1.0.0",
"cypress-keycloak": "^2.0.0",
"cypress-mochawesome-reporter": "^3.5.1",
"jest": "^29.3.1",
"nodemon": "^3.1.7",
"typescript-eslint": "^7.12.0"
}
}