-
Notifications
You must be signed in to change notification settings - Fork 20
/
package.json
136 lines (136 loc) · 5.04 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
131
132
133
134
135
136
{
"name": "@ons/design-system",
"description": "ONS Design System built CSS, JS, and Nunjucks templates",
"version": "3.0.1",
"main": "index.js",
"license": "MIT",
"author": {
"name": "ONS Digital"
},
"scripts": {
"start": "gulp start",
"watch": "gulp watch",
"test": "gulp build-assets && TEST_PORT=3020 TEST_WITH_PUPPETEER=1 jest '.*\\.spec\\.js'",
"test:clear-cache": "jest --clearCache",
"test:no-build": "TEST_PORT=3020 TEST_WITH_PUPPETEER=1 jest '.*\\.spec\\.js'",
"test:with-log": "yarn test --no-color 2>test.log",
"test:start-server": "TEST_PORT=3020 gulp start-dev-server",
"test-lighthouse": "yarn build && node ./lighthouse/lighthouse-get-urls.js && lhci autorun --config=./lighthouse/lighthouserc.js",
"build": "yarn && yarn tidy-clean && NODE_ENV=production gulp build",
"build-serve": "yarn build && gulp start-dev-server",
"npm-bundle": "NODE_ENV=production yarn tidy-clean && NODE_ENV=production gulp build-package && babel-node ci/generate-npm-package.js",
"cdn-bundle": "NODE_ENV=production yarn tidy-clean && NODE_ENV=production gulp build-package && babel-node ci/prepare-templates-for-zip.js",
"test-visual": "yarn build && gulp run-backstop-tests",
"test-visual:reference": "yarn build && gulp run-backstop-reference",
"test-visual:approve": "gulp run-backstop-approve",
"tidy-clean": "rm -rf build css favicons fonts img components layout scripts coverage scss js",
"check-unused": "npx npm-check-unused",
"dedupe-deps": "npx yarn-deduplicate yarn.lock",
"lint-staged": "lint-staged",
"stylelint": "stylelint '**/*.scss'",
"stylelint-fix": "stylelint '**/*.scss' --fix",
"prepack": "pinst --disable",
"postpack": "pinst --enable"
},
"lint-staged": {
"*.js": [
"prettier --write",
"eslint --fix"
],
"*.md": [
"prettier --write",
"remark"
],
"*.scss": [
"prettier --write",
"yarn run stylelint-fix"
],
"*.{yml,yaml,njk,html}": [
"prettier --write"
]
},
"browserslist": [
"last 2 versions",
"not dead"
],
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.22.9",
"@babel/node": "^7.14.7",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "^7.14.5",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.25.4",
"@babel/register": "^7.14.5",
"@babel/runtime": "^7.14.6",
"abortcontroller-polyfill": "^1.2.3",
"autoprefixer": "^10.4.20",
"babel-plugin-istanbul": "^6.0.0",
"babelify": "^10.0.0",
"backstopjs": "^6.1.4",
"browser-sync": "^2.27.3",
"browserify": "^17.0.0",
"chalk": "^4.1.2",
"cheerio": "^1.0.0-rc.10",
"core-js": "^3.21.1",
"cors": "^2.8.5",
"dialog-polyfill": "^0.5.6",
"eslint": "^8.45.0",
"eslint-cli": "^1.1.1",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-unused-imports": "^3.1.0",
"express": "^4.17.1",
"front-matter": "^4.0.2",
"fs-extra": "^11.1.1",
"fuse.js": "^3.6.1",
"glob": "^10.2.3",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-cli": "^2.3.0",
"gulp-dart-sass": "^1.0.2",
"gulp-if": "^3.0.0",
"gulp-postcss": "^9.0.0",
"gulp-sourcemaps": "^3.0.0",
"gulp-terser": "^2.0.1",
"http-server": "^14.1.1",
"husky": "^9.1.6",
"jest": "^29.6.1",
"jest-axe": "^8.0.0",
"jest-environment-jsdom": "^29.6.1",
"jest-puppeteer": "^10.0.0",
"lighthouse": "^11.0.0",
"lint-staged": "^15.2.0",
"lodash": "^4.17.21",
"mdn-polyfills": "^5.14.0",
"normalize.css": "^8.0.1",
"nunjucks": "^3.2.3",
"pinst": "^3.0.0",
"postcss": "^8.3.5",
"postcss-url": "^10.1.3",
"prepend-file": "^2.0.1",
"prettier": "^3.2.5",
"prettier-plugin-jinja-template": "^1.4.0",
"puppeteer": "^22.0.0",
"remark-cli": "^12.0.0",
"remark-lint": "^9.1.2",
"remark-preset-lint-recommended": "^6.1.3",
"stylelint": "^16.6.0",
"stylelint-config-recommended-scss": "^14.0.0",
"stylelint-config-sass-guidelines": "^11.1.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-order": "^6.0.4",
"stylelint-scss": "^6.3.0",
"through2": "^4.0.2",
"tick-manager": "^1.0.3",
"util": "^0.12.3",
"viewport-details": "^3.0.4",
"vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^2.0.0",
"whatwg-fetch": "^3.0.0"
},
"publishConfig": {
"access": "public"
}
}