Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
137 lines (137 loc) · 6.01 KB
/
Copy pathpackage.json
File metadata and controls
137 lines (137 loc) · 6.01 KB
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
{
"name": "govuk-prototype-kit",
"description": "Rapidly create HTML prototypes of GOV.UK services",
"homepage": "https://prototype-kit.service.gov.uk/",
"repository": {
"type": "git",
"url": "git+https://github.com/alphagov/govuk-prototype-kit.git"
},
"bugs": "https://github.com/alphagov/govuk-prototype-kit/issues",
"license": "MIT",
"version": "14.0.5",
"engines": {
"node": ">= 22.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"
],
"bundleDependencies": true,
"scripts": {
"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@10 local --port 3000'",
"lint": "standard . bin/cli",
"lint:fix": "npm run lint -- --fix",
"postdependencies": "npm pkg set bundleDependencies=true --json",
"prepack": "npm ls --all",
"postversion": "node scripts/release/update-changelog.js",
"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:plugins-mock": "cypress run --spec \"cypress/e2e/plugins/0-mock-plugin-tests/*\"",
"cypress:e2e:plugins-available": "cypress run --spec \"cypress/e2e/plugins/1-available-plugins-tests/*\"",
"cypress:e2e:plugins-kit": "cypress run --spec \"cypress/e2e/plugins/2-prototype-kit-plugin-tests/*\"",
"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:plugins-mock": "cross-env KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test 3000 cypress:e2e:plugins-mock",
"test:acceptance:plugins-available": "cross-env KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test 3000 cypress:e2e:plugins-available",
"test:acceptance:plugins-kit": "cross-env KIT_TEST_DIR=tmp/test-prototype start-server-and-test start:test 3000 cypress:e2e:plugins-kit",
"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 scripts 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": {
"browser-sync": "^3.0.2",
"chokidar": "^3.6.0",
"cookie-parser": "^1.4.6",
"cross-spawn": "^7.1.2",
"csrf-csrf": "^4.1.0",
"express": "^5.3.0",
"express-session": "^1.19.0",
"fs-extra": "^11.4.1",
"govuk-frontend": "^6.6.0",
"lodash": "^4.17.23",
"nodemon": "^3.1.14",
"nunjucks": "^3.2.4",
"portscanner": "^2.2.0",
"sass": "^1.108.2",
"semver": "^7.8.6",
"tar-stream": "^3.3.0"
},
"devDependencies": {
"cheerio": "^1.2.0",
"cross-env": "^10.1.0",
"cypress": "^16.3.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-jest": "^27.9.0",
"jest": "^30.5.2",
"jest-environment-jsdom": "^30.5.2",
"outdent": "^0.8.0",
"standard": "^17.1.2",
"start-server-and-test": "^3.0.13",
"supertest": "^7.3.2",
"wait-on": "^9.5.1"
},
"standard": {
"ignore": [
"__tests__/fixtures/",
"prototype-starter/",
"cypress/fixtures/broken-session-data-defaults.js"
],
"plugins": [
"cypress",
"jest"
],
"envs": [
"cypress/globals",
"jest/globals"
]
},
"jest": {
"testPathIgnorePatterns": [
"__tests__/utils/",
"__tests__/fixtures/",
"__tests__/tmp/",
"/node_modules/",
"/tmp/"
],
"testTimeout": 5000
},
"allowScripts": {
"cypress@16.0.0": true
}
}