-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathpackage.json
183 lines (183 loc) · 7.73 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
"name": "design-system",
"private": true,
"description": "A set of open source design and front-end development resources for creating Section 508 compliant, responsive, and consistent websites.",
"repository": "https://github.com/CMSgov/design-system",
"workspaces": [
"packages/*",
"examples/*"
],
"scripts": {
"build": "npm run build:tokens && npm run build:core && npm run build:healthcare && npm run build:medicare && npm run build:cmsgov && npm run build:cdn-index",
"build:core": "gulp build",
"build:healthcare": "gulp build --package packages/ds-healthcare-gov",
"build:medicare": "gulp build --package packages/ds-medicare-gov",
"build:cmsgov": "gulp build --package packages/ds-cms-gov",
"build:storybook": "./scripts/build-storybook.sh",
"build:storybook:docs": "./scripts/build-storybook.sh docs",
"build:tokens": "npm --prefix ./packages/design-system-tokens run build",
"build:cdn-index": "tsx ./scripts/build-cdn-indexes.ts",
"build:docs": "npm run build:storybook:docs && npm --prefix ./packages/docs run build",
"build:examples": "tsx ./scripts/build-examples.ts",
"apply-example-templates": "tsx ./scripts/apply-example-templates.ts",
"check:maturity": "./scripts/maturityCheck.sh",
"clean": "npm run clean:cache && npm run clean:builds && npm run clean:modules",
"clean:cache": "rm -rf packages/docs/.cache",
"clean:builds": "find ./packages ./examples -name 'dist' -type d -depth 2 -exec rm -rf '{}' + && rm -rf ./packages/docs/public && rm -rf ./dist",
"clean:modules": "find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +",
"deploy-demo": "tsx ./scripts/deploy-demo.ts",
"lint": "npm run lint:stylelint && npm run lint:eslint",
"lint:eslint": "eslint ./packages/",
"lint:stylelint": "stylelint --custom-formatter stylelint-formatter-pretty ./packages/**/*.scss",
"lint:links": "tsx ./scripts/check-markdown-links.ts",
"precommit": "lint-staged",
"prepare": "husky install",
"release": "tsx ./scripts/release.ts",
"release:undo": "npm run release -- --undo",
"release:notes": "tsx ./scripts/notes.ts",
"release:patch": "tsx ./scripts/patch.ts",
"serve:docs": "npm --prefix ./packages/docs run serve",
"serve:examples": "http-server -p 8080 examples",
"serve:storybook": "http-server -p 8080 storybook-static",
"start": "npm run build:storybook:docs && npm --prefix ./packages/docs run develop",
"storybook": "storybook dev -p 6006",
"storybook:react": "PREACT=false storybook dev -p 6006",
"sync:tokens-to-figma": "npm --prefix ./packages/design-system-tokens run sync:to-figma",
"sync:tokens-from-figma": "npm --prefix ./packages/design-system-tokens run sync:from-figma",
"test": "npm run test:unit",
"posttest": "npm run lint",
"test:unit:coverage": "npm run test:unit -- --collectCoverage",
"test:unit:coverage:react": "npm run test:unit:coverage -- --coverageReporters='json-summary'",
"test:unit:coverage:wc": "npm run test:unit:wc -- --collectCoverage --coverageReporters='json-summary'",
"test:unit:coverage:all": "npm run test:unit:coverage:react && npm run test:unit:coverage:wc && tsx ./tests/unit/combineTestCoverage.ts",
"test:unit": "jest --config=tests/unit/jest.config.js",
"test:unit:preact": "PREACT=true jest --config=tests/unit/jest.config.js",
"test:unit:wc": "WC=true jest --config=tests/unit/jest.config.js",
"test:browser": "tsx ./scripts/browser-tests.ts",
"test:browser:smoke": "npm run test:browser -- --smoke",
"test:browser:interaction": "npm run test:browser -- --config tests/browser/interaction.config.ts",
"test:browser:storybook-docs": "npm run test:browser -- --config tests/browser/storybook-docs.config.ts",
"test:browser:examples": "npm run test:browser -- --config tests/browser/examples.config.ts",
"test:browser:all": "npm run test:browser && npm run test:browser:interaction -- --no-build && npm run test:browser:storybook-docs -- --no-build && npm run test:browser:examples",
"test:browser:all:update": "npm run test:browser -- -u && npm run test:browser:interaction -- --no-build -u && npm run test:browser:storybook-docs -- --no-build -u && npm run test:browser:examples -- -u",
"type-check": "tsc --noEmit"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix"
],
"*.{md,html,json}": [
"prettier --write"
],
"*.scss": [
"prettier --write",
"stylelint --fix --allow-empty-input"
]
},
"browserslist": [
">2% in US and not dead",
"last 6 Chrome versions",
"last 6 Firefox versions",
"last 6 Edge major versions",
"Safari >= 15",
"iOS >= 15"
],
"devDependencies": {
"@axe-core/playwright": "^4.4.4",
"@babel/core": "^7.21.4",
"@babel/helper-string-parser": "^7.19.4",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/plugin-proposal-export-default-from": "^7.18.10",
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.4",
"@babel/register": "^7.8.4",
"@inquirer/prompts": "^3.0.3",
"@playwright/test": "1.49.1",
"@storybook/addon-actions": "^8.0.5",
"@storybook/addon-essentials": "^8.0.5",
"@storybook/addon-links": "^8.0.5",
"@storybook/addon-viewport": "^8.0.5",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/react": "^8.0.5",
"@storybook/react-webpack5": "^8.0.5",
"@storybook/theming": "^8.0.5",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/preact": "^2.0.0",
"@testing-library/preact-hooks": "^1.1.0",
"@testing-library/react": "^11.2.7",
"@testing-library/react-hooks": "^3.7.0",
"@testing-library/user-event": "^13.5.0",
"@tsconfig/node18": "^18.2.4",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.22",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"autoprefixer": "^10.4.19",
"babel-plugin-module-resolver": "^5.0.0",
"chalk": "4.1.2",
"copy-webpack-plugin": "^6.4.1",
"css-loader": "^5",
"cssnano": "^5.1.13",
"eslint": "^8.11.0",
"eslint-plugin-jest": "^26.1.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-testing-library": "^5.6.0",
"fancy-log": "^2.0.0",
"gh-pages": "^6.1.1",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-filter": "^7.0.0",
"gulp-if": "^3.0.0",
"gulp-postcss": "^9.0.1",
"gulp-sass": "^5.1.0",
"gulp-sourcemaps": "^3.0.0",
"gulp-svgmin": "^4.1.0",
"gulp-typescript": "^6.0.0-alpha.1",
"http-server": "^14.1.1",
"husky": "^7.0.0",
"jest": "^27.5.1",
"lint-staged": "^10.0.8",
"marked": "4.2.4",
"mini-css-extract-plugin": "^1",
"postcss": "^8",
"postcss-import": "^15.0.0",
"preact": "10.11.3",
"prettier": "^2.6.1",
"react": "17.0.2",
"react-app-polyfill": "^3.0.0",
"react-docgen-typescript": "2.3.0-beta.0",
"react-dom": "17.0.2",
"react-test-renderer": "17.0.2",
"sass": "^1.53.0",
"sass-loader": "10.2.1",
"storybook": "^8.0.5",
"storybook-addon-fetch-mock": "^2.0.1",
"stylelint": "16.3.1",
"stylelint-config-standard-scss": "^13.0.0",
"stylelint-formatter-pretty": "^4.0.0",
"stylelint-order": "^6.0.0",
"tsx": "^4.19.2",
"typescript": "^5.4.3",
"url-loader": "^4.1.1",
"webpack": "^5.76.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-stream": "^7.0.0",
"yargs": "^17.7.2"
},
"engines": {
"node": ">=18.20.4"
},
"overrides": {
"react-docgen-typescript": "2.3.0-beta.0"
}
}