-
Notifications
You must be signed in to change notification settings - Fork 87
/
package.json
179 lines (179 loc) · 7.29 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
{
"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": "yarn build:tokens && yarn build:core && yarn build:healthcare && yarn build:medicare && yarn build:cmsgov && yarn build:cdn-index",
"build:core": "yarn gulp build",
"build:healthcare": "yarn gulp build --package packages/ds-healthcare-gov",
"build:medicare": "yarn gulp build --package packages/ds-medicare-gov",
"build:cmsgov": "yarn gulp build --package packages/ds-cms-gov",
"build:storybook": "./scripts/build-storybook.sh",
"build:storybook:docs": "./scripts/build-storybook.sh docs",
"build:tokens": "yarn --cwd ./packages/design-system-tokens build",
"build:cdn-index": "ts-node ./scripts/build-cdn-indexes.ts",
"build:docs": "yarn build:storybook:docs && yarn --cwd ./packages/docs build",
"build:examples": "ts-node ./scripts/build-examples.ts",
"apply-example-templates": "ts-node ./scripts/apply-example-templates.ts",
"check:maturity": "./scripts/maturityCheck.sh",
"clean": "yarn clean:cache && yarn clean:builds && yarn 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": "ts-node ./scripts/deploy-demo.ts",
"lint": "yarn lint:stylelint && yarn lint:eslint",
"lint:eslint": "yarn eslint ./packages/",
"lint:stylelint": "yarn stylelint --custom-formatter stylelint-formatter-pretty ./packages/**/*.scss",
"lint:links": "ts-node ./scripts/check-markdown-links.ts",
"precommit": "lint-staged",
"prepare": "husky install",
"release": "ts-node ./scripts/release.ts",
"release:notes": "ts-node ./scripts/notes.ts",
"release:patch": "ts-node ./scripts/patch.ts",
"serve:docs": "yarn --cwd ./packages/docs serve",
"serve:examples": "yarn http-server -p 8080 examples",
"serve:storybook": "yarn http-server -p 8080 storybook-static",
"start": "yarn build:storybook:docs && yarn --cwd ./packages/docs develop",
"storybook": "storybook dev -p 6006",
"storybook:react": "PREACT=false storybook dev -p 6006",
"sync:tokens-to-figma": "yarn --cwd ./packages/design-system-tokens sync:to-figma",
"sync:tokens-from-figma": "yarn --cwd ./packages/design-system-tokens sync:from-figma",
"test": "yarn test:unit",
"posttest": "yarn lint",
"test:unit:coverage": "yarn test:unit --collectCoverage",
"test:unit": "yarn jest --config=tests/unit/jest.config.js",
"test:unit:preact": "PREACT=true yarn jest --config=tests/unit/jest.config.js",
"test:unit:wc": "WC=true yarn jest --config=tests/unit/jest.config.js",
"test:browser": "ts-node ./scripts/browser-tests.ts",
"test:browser:smoke": "yarn test:browser --smoke",
"test:browser:interaction": "yarn test:browser --config tests/browser/interaction.config.ts",
"test:browser:storybook-docs": "yarn test:browser --config tests/browser/storybook-docs.config.ts",
"test:browser:examples": "yarn test:browser --config tests/browser/examples.config.ts",
"test:browser:all": "yarn test:browser && yarn test:browser:interaction --no-build && yarn test:browser:storybook-docs --no-build && yarn test:browser:examples",
"test:browser:all:update": "yarn test:browser -u && yarn test:browser:interaction --no-build -u && yarn test:browser:storybook-docs --no-build -u && yarn test:browser:examples -u",
"type-check": "yarn 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.31.0",
"@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",
"@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",
"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",
"humanize-react": "^1.0.0",
"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",
"ts-node": "^10.9.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": ">=11.0.0",
"yarn": ">=1.22.4"
},
"resolutions": {
"react-docgen-typescript": "2.3.0-beta.0"
}
}