forked from CMSgov/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
97 lines (97 loc) · 3.84 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
{
"name": "design-system",
"private": true,
"workspaces": [
"packages/*"
],
"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",
"scripts": {
"start": "yarn cmsds start",
"start:healthcare": "yarn cmsds start --config cmsds.healthcare.config.js",
"start:medicare": "yarn cmsds start --config cmsds.medicare.config.js",
"build": "yarn cmsds build",
"build:healthcare": "yarn cmsds build --config cmsds.healthcare.config.js",
"build:medicare": "yarn cmsds build --config cmsds.medicare.config.js",
"build-docs": "yarn cmsds build-docs",
"build-docs:healthcare": "yarn cmsds build-docs --config cmsds.healthcare.config.js",
"build-docs:medicare": "yarn cmsds build-docs --config cmsds.medicare.config.js",
"release": "./release.sh",
"publish-release": "./publish.sh",
"precommit": "lint-staged",
"test": "yarn test:unit && yarn test:a11y",
"test:unit": "yarn cmsds test ./packages --filePath",
"test:a11y": "yarn cmsds test:a11y ./packages/design-system",
"test:a11y:healthcare": "yarn cmsds test:a11y ./packages/ds-healthcare-gov --config cmsds.healthcare.config.js",
"test:a11y:medicare": "yarn cmsds test:a11y ./packages/ds-medicare-gov --config cmsds.medicare.config.js",
"update-snapshots": "yarn cmsds test ./packages --updateSnapshot",
"posttest": "yarn lint",
"lint": "yarn cmsds lint ./ --ignorePatterns '**/node_modules/**' '**/dist/**' '**/helpers/**' '**/__tests__/**' 'tmp/**' '**/types/**' 'examples/create-react-app-typescript/**' 'examples/create-react-app/**'",
"prepare": "husky install",
"storybook": "STORYBOOK_DS=core start-storybook -p 6006 -s ./packages/design-system/src",
"storybook:healthcare": "STORYBOOK_DS=hcgov start-storybook -p 6006 -s ./packages/design-system/src",
"storybook:medicare": "STORYBOOK_DS=mgov start-storybook -p 6006 -s ./packages/design-system/src,./packages/ds-medicare-gov/src",
"build-storybook": "build-storybook",
"gh-pages": "yarn gh-pages:healthcare && yarn gh-pages:medicare",
"gh-pages:healthcare": "yarn build-docs:healthcare && gh-pages -d './packages/ds-healthcare-gov/docs/dist' --dest 'healthcare'",
"gh-pages:medicare": "yarn build-docs:medicare && gh-pages -d './packages/ds-medicare-gov/docs/dist' --dest 'medicare'"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/plugin-transform-object-assign": "^7.16.0",
"@storybook/addon-actions": "^6.3.12",
"@storybook/addon-essentials": "^6.3.12",
"@storybook/addon-links": "^6.3.12",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^6.3.12",
"@storybook/theming": "^6.3.12",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@typescript-eslint/parser": "^4.11.0",
"@whitespace/storybook-addon-html": "^5.0.0",
"babel-loader": "^8.2.3",
"babel-plugin-inline-react-svg": "^2.0.1",
"babel-plugin-typescript-to-proptypes": "^2.0.0",
"backstopjs": "^5.0.4",
"css-loader": "5",
"eslint": "^6.8.0",
"gh-pages": "^3.2.3",
"husky": "^7.0.0",
"lerna": "^3.20.0",
"lint-staged": "^10.0.8",
"mini-css-extract-plugin": "1",
"prettier": "^2.0.5",
"sass": "^1.43.4",
"sass-loader": "10",
"stylelint": "^13.3.2",
"url-loader": "^4.1.1"
},
"engines": {
"node": ">=11.0.0",
"yarn": ">=1.22.4"
},
"resolutions": {
"kss/nunjucks": ">=3.2.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix"
],
"*.{md,html}": [
"prettier --write"
],
"*.scss": [
"prettier --write",
"stylelint --fix"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"browserslist": [
"> 2%",
"Last 2 versions"
]
}