-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
207 lines (207 loc) · 7.16 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
{
"name": "@chanzuckerberg/eds",
"version": "15.5.0",
"description": "The React-powered design system library for Chan Zuckerberg Initiative education web applications",
"author": "CZI <[email protected]>",
"homepage": "https://github.com/chanzuckerberg/edu-design-system",
"license": "MIT",
"type": "commonjs",
"exports": {
".": "./lib/index.js",
"./index.css": "./lib/index.css",
"./fonts.css": "./lib/tokens/fonts.css",
"./tailwind.config": "./tailwind.config.ts"
},
"types": "lib/index.d.ts",
"sideEffects": [
"lib/index.css",
"lib/tokens/fonts.css"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/chanzuckerberg/edu-design-system.git"
},
"bugs": {
"url": "https://github.com/chanzuckerberg/edu-design-system/issues"
},
"files": [
"/bin",
"/lib",
"tailwind.config.*"
],
"bin": {
"eds-apply-theme": "bin/eds-apply-theme.js",
"eds-import-from-figma": "bin/eds-import-from-figma.js",
"eds-init-theme": "bin/eds-init.js",
"eds-migrate": "bin/eds-migrate.js"
},
"scripts": {
"build": "yarn build:clean && yarn build:tokens && yarn build:js && yarn build:bin && yarn copy-fonts-to-lib",
"build:bin": "tsc -p src/bin/tsconfig.json",
"build:clean": "rm -rf lib/",
"build:tokens": "rm -rf src/tokens-dist/ && node ./style-dictionary.config.js && yarn prettier-tokens-dist",
"build:js": "rollup --config",
"build:storybook": "storybook build -o storybook-static",
"build:styles": "postcss \"src/components/**/*.css\" --dir lib/ --base src/ --verbose",
"chromatic": "chromatic",
"copy-fonts-to-lib": "copyfiles -u 3 src/design-tokens/tier-1-definitions/fonts.css src/design-tokens/tier-1-definitions/fonts/**/* lib/tokens",
"create-component": "plop",
"lint": "yarn run lint:styles && yarn run lint:scripts",
"lint:fix": "yarn run lint:styles:fix && yarn run lint:scripts:fix",
"lint:styles": "stylelint src/**/*.css .storybook/**/*.css",
"lint:styles:fix": "yarn run lint:styles --fix",
"lint:scripts": "eslint --ignore-path .gitignore --ext=js,jsx,ts,tsx .",
"lint:scripts:fix": "yarn run lint:scripts --fix",
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx}\"",
"prettier-tokens-dist": "prettier --write \"src/tokens-dist/**/*.{js,jsx,ts,tsx}\"",
"release": "yarn build && standard-version",
"release:major": "yarn release --release-as major",
"release:minor": "yarn release --release-as minor",
"release:patch": "yarn release --release-as patch",
"release:alpha": "yarn release --prerelease alpha",
"start": "yarn build:tokens && yarn storybook",
"storybook": "storybook dev -p 9000",
"storybook:axe": "yarn run build:storybook && yarn run storybook:axeOnly",
"storybook:axeOnly": "axe-storybook --build-dir storybook-static",
"plop": "plop component",
"test": "jest",
"test:ci": "yarn run test --ci --coverage && cat ./coverage/lcov.info | codecov",
"types": "tsc --noEmit && npm run build:bin -- --noEmit"
},
"size-limit": [
{
"path": "lib/**/*([a-zA-Z-_]).js",
"limit": "140KB",
"name": "components"
},
{
"path": "lib/**/*([a-zA-Z-_]).css",
"limit": "140KB",
"name": "styles"
}
],
"peerDependencies": {
"react": ">= 17",
"react-dom": ">= 17"
},
"dependencies": {
"@headlessui/react": "^1.7.19",
"@popperjs/core": "^2.11.8",
"@tanstack/react-table": "^8.20.5",
"@tippyjs/react": "^4.2.6",
"chalk": "^4.1.2",
"clsx": "^2.1.1",
"enquirer": "^2.4.1",
"graphemer": "^1.4.0",
"jsonfile": "^6.1.0",
"lilconfig": "^2.1.0",
"lodash": "^4.17.21",
"ora": "^8.1.0",
"react-beautiful-dnd": "^13.1.1",
"react-children-by-type": "^1.1.0",
"react-focus-lock": "^2.13.2",
"react-popper": "^2.3.0",
"react-portal": "^4.2.2",
"react-uid": "^2.3.3",
"style-dictionary": "^3.9.2",
"svg4everybody": "^2.1.9",
"ts-dedent": "^2.2.0",
"ts-morph": "^22.0.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"@babel/preset-env": "^7.25.8",
"@babel/preset-react": "^7.25.7",
"@babel/preset-typescript": "^7.25.7",
"@chanzuckerberg/axe-storybook-testing": "^8.2.0",
"@chanzuckerberg/eslint-config-edu-js": "^1.1.0",
"@chanzuckerberg/eslint-config-edu-ts": "^1.0.9",
"@chanzuckerberg/eslint-plugin-edu-react": "^1.1.9",
"@chanzuckerberg/eslint-plugin-stories": "^3.2.14",
"@chanzuckerberg/story-utils": "^4.0.8",
"@chromatic-com/storybook": "^1",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3",
"@geometricpanda/storybook-addon-badges": "^2.0.5",
"@omlet/cli": "^1.11.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-typescript": "^11.1.6",
"@size-limit/file": "^8.2.6",
"@storybook/addon-a11y": "^8.3.5",
"@storybook/addon-essentials": "^8.3.5",
"@storybook/addon-interactions": "^8.3.5",
"@storybook/addon-links": "^8.3.5",
"@storybook/addon-mdx-gfm": "^8.3.5",
"@storybook/addon-styling": "^1.3.7",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/manager-api": "^8.3.5",
"@storybook/react": "^8.3.5",
"@storybook/react-webpack5": "^8.3.5",
"@storybook/test": "^8.3.5",
"@storybook/testing-library": "^0.2.2",
"@storybook/theming": "^8.3.5",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.13",
"@types/jsonfile": "^6",
"@types/lodash": "^4.17.10",
"@types/node": "^20.16.11",
"@types/react": "^18.3.11",
"@types/react-beautiful-dnd": "^13.1.8",
"@types/react-dom": "^18.3.0",
"@types/react-portal": "^4.0.7",
"@types/yargs": "^17.0.33",
"axe-core": "4.10.0",
"chromatic": "^11.12.5",
"codecov": "^3.8.3",
"copyfiles": "^2.4.1",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-testing-library": "^6.3.0",
"husky": "^8.0.3",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-preset-stylelint": "^6.3.2",
"lint-staged": "^13.3.0",
"plop": "^4.0.1",
"postcss": "^8.4.47",
"postcss-cli": "^10.1.0",
"postcss-import": "^15.1.0",
"postcss-mixins": "^9.0.4",
"postcss-nested": "^6.2.0",
"postcss-simple-vars": "^7.0.1",
"prettier": "^3.1.0",
"prettier-plugin-tailwindcss": "^0.5.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^4.24.0",
"rollup-plugin-postcss": "^4.0.2",
"size-limit": "^8.2.6",
"standard-version": "^9.5.0",
"storybook": "^8.3.5",
"style-dictionary": "^3.9.2",
"stylelint": "^15.11.0",
"stylelint-config-recommended": "^13.0.0",
"tailwindcss": "^3.4.13",
"ts-jest": "^29.2.5",
"typescript": "^5.5.4"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix"
],
"*.css": [
"stylelint --fix --allow-empty-input"
]
},
"packageManager": "[email protected]"
}