forked from alphagov/govuk-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
130 lines (130 loc) · 5.35 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
{
"private": true,
"name": "@govuk-frontend/repository",
"description": "Used only for the development of GOV.UK Frontend, see `packages/govuk-frontend/package.json` for the published `package.json`",
"engines": {
"node": "^20.9.0",
"npm": "^10.1.0"
},
"license": "MIT",
"workspaces": [
".github/workflows/scripts",
".github/workflows/bundler-integrations",
"packages/govuk-frontend",
"packages/govuk-frontend-review",
"shared/*",
"docs/examples/*"
],
"scripts": {
"postinstall": "npm ls --depth=0",
"start": "npm run dev",
"build-release": "./bin/build-release.sh",
"publish-release": "./bin/publish-release.sh",
"publish-preview": "./bin/publish-preview.sh",
"predev": "npm run build -- --ignore-scripts",
"dev": "concurrently \"npm run dev --workspace @govuk-frontend/review\" \"npm run dev --workspace govuk-frontend\" --kill-others --names \"app,pkg\" --prefix-colors \"red.dim,blue.dim\"",
"build": "npm run build --workspace govuk-frontend --workspace @govuk-frontend/review",
"build:app": "cross-env-shell NODE_ENV=production npm run build --workspace @govuk-frontend/review",
"build:package": "cross-env-shell NODE_ENV=production npm run build:package --workspace govuk-frontend",
"build:release": "cross-env-shell NODE_ENV=production npm run build:release --workspace govuk-frontend",
"build:types": "npm run build:types --workspaces --if-present",
"postbuild:package": "jest --color --selectProjects \"Build tasks\" --testMatch \"**/build/package.unit.test.mjs\"",
"postbuild:release": "jest --color --selectProjects \"Build tasks\" --testMatch \"**/build/release.unit.test.mjs\"",
"clean": "npm run clean --workspaces --if-present",
"heroku-postbuild": "npm run build",
"postheroku-postbuild": "NPM_CONFIG_PRODUCTION=true npm ci --ignore-scripts --omit=optional --workspace @govuk-frontend/review",
"pretest": "npm run build",
"test": "jest --color --ignoreProjects \"Build tasks\" --maxWorkers=50%",
"lint": "npm run lint:editorconfig && npm run lint:prettier && npm run lint:js && npm run lint:types && npm run lint:scss",
"lint:editorconfig": "npm run lint:editorconfig:cli",
"lint:editorconfig:cli": "editorconfig-checker",
"lint:js": "npm run lint:js:cli -- \"**/*.{cjs,js,md,mjs}\"",
"lint:js:cli": "eslint --cache --cache-location .cache/eslint --cache-strategy content --color --ignore-path .gitignore --max-warnings 0",
"lint:prettier": "npm run lint:prettier:cli -- \"**/*.{cjs,js,json,md,mjs,scss,yaml,yml}\"",
"lint:prettier:cli": "prettier --cache --cache-location .cache/prettier --cache-strategy content --check",
"lint:scss": "npm run lint:scss:cli -- \"**/*.{md,scss}\"",
"lint:scss:cli": "stylelint --cache --cache-location .cache/stylelint --cache-strategy content --color --ignore-path .gitignore --max-warnings 0",
"lint:types": "tsc --build tsconfig.json",
"prepare": "node -e \"try { (await import('husky')).default() } catch (e) { if (e.code !== 'ERR_MODULE_NOT_FOUND') throw e }\" --input-type module"
},
"devDependencies": {
"@babel/core": "^7.24.6",
"@babel/preset-env": "^7.24.6",
"@govuk-frontend/config": "*",
"@govuk-frontend/helpers": "*",
"@govuk-frontend/lib": "*",
"@govuk-frontend/tasks": "*",
"@testing-library/jest-dom": "^6.4.5",
"@types/testing-library__jest-dom": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"del-cli": "^5.1.0",
"editorconfig-checker": "^5.1.5",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-es-x": "^7.6.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jest-dom": "^5.4.0",
"eslint-plugin-jsdoc": "^48.2.2",
"eslint-plugin-markdown": "^4.0.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"gulp": "^4.0.2",
"gulp-cli": "^3.0.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-node-single-context": "^29.4.0",
"jest-puppeteer": "^10.0.1",
"jest-regex-util": "^29.4.3",
"jest-serializer-html": "^7.1.0",
"lint-staged": "^15.2.5",
"postcss-markdown": "^1.2.0",
"postcss-scss": "^4.0.9",
"prettier": "^3.3.0",
"semver": "^7.6.2",
"standard": "^17.1.0",
"stylelint": "^16.6.1",
"stylelint-config-gds": "^2.0.0",
"stylelint-order": "^6.0.4",
"typescript": "^5.4.5"
},
"optionalDependencies": {
"@actions/github": "^6.0.0",
"@jest/environment": "^29.5.0",
"@octokit/rest": "20.1.1",
"@percy/core": "^1.28.7",
"@types/browser-sync": "^2.29.0",
"@types/express": "^4.17.21",
"@types/gulp": "^4.0.17",
"@types/jest": "^29.5.12",
"@types/jest-axe": "^3.5.9",
"@types/js-yaml": "^4.0.9",
"@types/mime-types": "^2.1.4",
"@types/node": "^20.12.13",
"@types/nunjucks": "^3.2.6",
"@types/slug": "^5.0.8",
"puppeteer": "^22.10.0",
"typed-query-selector": "^2.11.2"
},
"overrides": {
"chokidar@^2": {
"glob-parent": "^5"
},
"glob-stream@^6": {
"glob-parent": "^5"
},
"latest-version@^5": {
"package-json": "^7"
},
"sass-convert": {
"semver-regex": "^3"
},
"sassdoc-extras@^2": {
"marked": "^0.8.2"
}
}
}