-
Notifications
You must be signed in to change notification settings - Fork 236
/
Copy pathpackage.json
130 lines (130 loc) · 5.37 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
{
"name": "govuk-prototype-kit",
"description": "Rapidly create HTML prototypes of GOV.UK services",
"version": "13.16.2",
"engines": {
"node": "^16.x || ^18.x || >= 20.x"
},
"main": "index.js",
"bin": {
"govuk-prototype-kit": "bin/cli"
},
"files": [
"bin/",
"lib/",
"migrator/",
"prototype-starter/",
"CHANGELOG.md",
"CONTRIBUTING.md",
"LICENCE.txt",
"README.md",
"govuk-prototype-kit.config.json",
"known-plugins.json",
"index.js",
"listen-on-port.js",
"server.js",
"start.js"
],
"scripts": {
"clean-publish": "clean-publish --before-script scripts/clean-publish-before-script.sh",
"prepublishOnly": "echo '***\nUse `npm run clean-publish` to publish govuk-prototype-kit\n***' && exit 1",
"tmp-kit": "mkdir -p $TMPDIR/govuk-prototype-kit-playground && cd $TMPDIR/govuk-prototype-kit-playground && rm -Rf ./* && govuk-prototype-kit create --version local . && npm run dev",
"start": "echo 'This project cannot be started, in order to test this project please create a prototype kit using the cli.'",
"start:dev": "node scripts/create-prototype-and-run",
"start:test": "node cypress/scripts/run-starter-prototype",
"start:test:prod": "cross-env PASSWORD=password USE_AUTH=true node cypress/scripts/run-starter-prototype --prodtest",
"start:test:heroku": "cross-env USE_AUTH=false USE_HTTPS=false node scripts/create-prototype-and-run 'npx --yes heroku local --port 3000'",
"lint": "standard . bin/cli scripts/utils/create-release-pr scripts/create-prototype-and-run.js scripts/generate-known-version-hashes.js",
"lint:fix": "npm run lint -- --fix",
"rapidtest": "jest --bail",
"cypress:run": "cypress run",
"cypress:open": "cypress open",
"cypress:e2e:dev": "cypress run --spec \"cypress/e2e/dev/*/*\"",
"cypress:e2e:prod": "cypress run --spec \"cypress/e2e/prod/*/*\"",
"cypress:e2e:smoke": "cypress run --spec \"cypress/e2e/smoke/*/*\"",
"cypress:e2e:styles": "cypress run --spec \"cypress/e2e/styles/*/*\"",
"cypress:e2e:plugins": "cypress run --spec \"cypress/e2e/plugins/*/*\"",
"cypress:e2e:errors": "cypress run --spec \"cypress/e2e/errors/*/*\"",
"test:heroku": "cross-env KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test:heroku 3000 cypress:e2e:smoke",
"test:acceptance": "npm run test:acceptance:dev && npm run test:acceptance:prod && npm run test:acceptance:smoke && npm run test:acceptance:styles && npm run test:acceptance:plugins && npm run test:acceptance:errors",
"test:acceptance:dev": "cross-env KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test 3000 cypress:e2e:dev",
"test:acceptance:prod": "cross-env PASSWORD=password PASSWORD_KEYS=PASSWORD_01,PASSWORD_02 PASSWORD_01=p1 PASSWORD_02=p2 KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test:prod 3000 cypress:e2e:prod",
"test:acceptance:smoke": "cross-env KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test 3000 cypress:e2e:smoke",
"test:acceptance:styles": "cross-env KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test 3000 cypress:e2e:styles",
"test:acceptance:plugins": "cross-env KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test 3000 cypress:e2e:plugins",
"test:acceptance:errors": "cross-env KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test 3000 cypress:e2e:errors",
"test:acceptance:open": "cross-env KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test 3000 cypress:open",
"test:unit": "jest --detectOpenHandles lib bin migrator",
"test:integration": "cross-env CREATE_KIT_TIMEOUT=240000 jest --detectOpenHandles --testTimeout=60000 __tests__",
"test:full": "npm test && npm run test:acceptance",
"test": "npm run test:unit && npm run test:integration && npm run lint"
},
"dependencies": {
"ansi-colors": "^4.1.3",
"body-parser": "^1.20.2",
"browser-sync": "^3.0.2",
"chokidar": "^3.6.0",
"cookie-parser": "^1.4.6",
"cross-spawn": "^7.0.3",
"csrf-csrf": "^2.3.0",
"del": "^6.1.1",
"dotenv": "^16.4.5",
"express": "^4.18.2",
"express-session": "^1.18.0",
"fs-extra": "^11.2.0",
"govuk-frontend": "5.2.0",
"inquirer": "^8.2.6",
"lodash": "^4.17.21",
"marked": "^4.3.0",
"nodemon": "^3.0.3",
"nunjucks": "^3.2.4",
"portscanner": "^2.2.0",
"require-dir": "^1.2.0",
"sass": "^1.71.1",
"sync-request": "^6.1.0",
"tar-stream": "^3.1.7",
"universal-analytics": "^0.5.3",
"uuid": "^9.0.1"
},
"devDependencies": {
"cheerio": "^1.0.0-rc.12",
"clean-publish": "^4.2.0",
"cross-env": "^7.0.3",
"cypress": "^13.6.5",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-jest": "^27.9.0",
"extract-zip": "^2.0.1",
"glob": "^10.3.10",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"proper-lockfile": "^4.1.2",
"standard": "^17.1.0",
"start-server-and-test": "^2.0.3",
"supertest": "^6.3.4",
"wait-on": "^7.0.1"
},
"standard": {
"ignore": [
"__tests__/fixtures/",
"prototype-starter/"
],
"plugins": [
"cypress",
"jest"
],
"envs": [
"cypress/globals",
"jest/globals"
]
},
"jest": {
"testPathIgnorePatterns": [
"__tests__/utils/",
"__tests__/fixtures/",
"__tests__/tmp/",
"/node_modules/",
"/tmp/"
],
"testTimeout": 5000
}
}