forked from grommet/grommet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
244 lines (244 loc) · 8.02 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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
{
"name": "grommet",
"version": "2.39.0",
"main": "index.js",
"module": "es6/index.js",
"jsnext:main": "es6/index.js",
"sideEffects": [
"./src/js/contexts/ThemeContext/ThemeContext.js",
"./es6/contexts/ThemeContext/ThemeContext.js"
],
"description": "focus on the essential experience",
"authors": [
"Alan Souza",
"Bryan Jacquot",
"Chris Carlozzi",
"Eric Soderberg",
"Shimrit Yacobi"
],
"homepage": "http://grommet.io",
"bugs": "https://github.com/grommet/grommet/issues",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/grommet/grommet.git"
},
"engines": {
"node": ">= 16"
},
"scripts": {
"build": "webpack --mode production && babel ./src/js/ --out-dir ./dist --ignore '**/**/__tests__' --ignore './e2e' --ignore 'src/**/portal.js' && copyfiles -u 2 \"src/js/**/**/*.*\" -e \"src/js/**/**/*.js\" -e \"src/js/**/**/*.js.snap\" \"./dist\" && cross-env BABEL_ENV=es6 babel ./src/js/ --out-dir ./dist/es6 --ignore '**/**/__tests__' --ignore 'src/**/portal.js' && copyfiles -u 2 \"src/js/**/**/*.*\" -e \"src/js/**/**/*.js\" -e \"src/js/**/**/*.js.snap\" \"./dist/es6\" && copyfiles LICENSE COPYRIGHT.md ./dist",
"release-stable": "babel-node ./tools/release-stable",
"release-styled-components-beta-stable": "babel-node ./tools/release-styled-components-beta-stable",
"lint": "eslint src",
"lint-fix": "eslint src --fix",
"test": "jest --runInBand && yarn test-timezones",
"test-simple": "jest --runInBand",
"test-update": "jest --updateSnapshot && yarn test-timezones",
"test-watch": "jest --watchAll",
"test-bundlesize": "bundlesize",
"test-timezones": "cross-env TZ=Australia/Brisbane yarn test-calendar-dateinput --coverage=false && cross-env TZ=America/Los_Angeles yarn test-calendar-dateinput --coverage=false && cross-env TZ=Europe/Madrid yarn test-calendar-dateinput --coverage=false && cross-env TZ=Asia/Nagpur yarn test-calendar-dateinput --coverage=false",
"test-calendar-dateinput": "jest ./src/js/components/Calendar/__tests__/Calendar-test.tsx ./src/js/components/DateInput/__tests__/DateInput-test.tsx",
"pack": "babel-node ./tools/pack",
"storybook": "cross-env NODE_ENV=development storybook dev -p 9001 -c storybook",
"start": "webpack serve --config ./e2e/webpack.config.js --mode development",
"test-e2e": "testcafe chrome:headless e2e/tests",
"test-e2e-ci": "testcafe chrome:headless e2e/tests -r xunit:/tmp/test-results/testcafe/results.xml",
"build-storybook": "storybook build -c storybook -o storybook-static",
"prettier": "pretty-quick --staged",
"chromatic": "chromatic"
},
"peerDependencies": {
"react": "^16.6.1 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.6.1 || ^17.0.0 || ^18.0.0",
"styled-components": "^5.1.0 || ^6.0.0"
},
"dependencies": {
"@emotion/is-prop-valid": "^1.2.1",
"grommet-icons": "^4.12.1",
"hoist-non-react-statics": "^3.2.0",
"markdown-to-jsx": "7.4.4",
"prop-types": "^15.8.1"
},
"devDependencies": {
"@babel/cli": "^7.24.7",
"@babel/core": "^7.24.7",
"@babel/eslint-parser": "^7.24.7",
"@babel/node": "^7.24.7",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-do-expressions": "^7.24.7",
"@babel/plugin-proposal-export-default-from": "^7.24.7",
"@babel/plugin-proposal-logical-assignment-operators": "^7.20.7",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-proposal-pipeline-operator": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@storybook/addon-a11y": "7.0.20",
"@storybook/addon-storysource": "7.0.20",
"@storybook/addon-toolbars": "7.0.20",
"@storybook/manager-api": "7.0.20",
"@storybook/react": "7.0.20",
"@storybook/react-webpack5": "7.0.20",
"@storybook/source-loader": "7.0.20",
"@testing-library/dom": "^10.3.1",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@testing-library/testcafe": "^5.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/jest-axe": "^3.5.9",
"@types/node": "^20.14.10",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/styled-components": "^5.1.34",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"babel-plugin-styled-components": "^2.1.4",
"babel-plugin-transform-imports": "^2.0.0",
"bundlesize2": "^0.0.31",
"chromatic": "^11.5.4",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^12.0.2",
"copyfiles": "^2.4.1",
"core-js": "^3.37.1",
"cross-env": "^7.0.3",
"del": "^6.1.1",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-testing-library": "^6.2.2",
"fs-extra": "^11.2.0",
"grommet-theme-hpe": "^5.5.0",
"jest": "^29.7.0",
"jest-axe": "^9.0.0",
"jest-cli": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-styled-components": "7.0.5",
"jsdom": "^24.1.0",
"postcss": "^8.4.39",
"pre-commit": "^1.2.2",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"react": "^18.3.1",
"react-dev-utils": "^12.0.1",
"react-dom": "^18.3.1",
"react-is": "^18.3.1",
"react-shadow": "^20.5.0",
"regenerator-runtime": "^0.14.1",
"simple-git": "^3.25.0",
"storybook": "7.0.20",
"styled-components": "^6.1.11",
"tarball-extract": "^0.0.6",
"testcafe": "3.3.0",
"testcafe-react-selectors": "^5.0.3",
"testcafe-reporter-xunit": "^2.2.3",
"ts-jest": "^29.2.0",
"ts-loader": "^9.5.1",
"typescript": "^5.5.3",
"webpack": "^5.92.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
},
"jest": {
"transform": {
"^.+\\.tsx?$": [
"ts-jest",
{
"tsconfig": "tsconfig.tests.json"
}
],
"^.+\\.jsx?$": "babel-jest"
},
"collectCoverage": true,
"testEnvironment": "jsdom",
"testEnvironmentOptions": {
"url": "http://localhost/"
},
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.js"
],
"coverageReporters": [
"lcov"
],
"collectCoverageFrom": [
"src/js/components/**/*.js",
"src/js/contexts/**/*.js",
"src/js/themes/**/*.js",
"src/js/utils/**/*.js",
"!src/js/**/**/*.stories.js",
"!src/js/**/**/stories/*.js",
"!src/js/**/**/stories/**/**/*.js",
"!src/js/utils/portal.js",
"!src/js/**/**/doc.js",
"!src/js/components/**/__tests__/**/*.js"
],
"coverageThreshold": {
"global": {
"branches": 76.3,
"functions": 88,
"lines": 87.5,
"statements": 86.6
}
},
"moduleNameMapper": {
"^styled-components": "styled-components/dist/styled-components.browser.cjs.js"
},
"modulePathIgnorePatterns": [
"<rootDir>/dist/"
],
"testPathIgnorePatterns": [
"<rootDir>[/\\\\](dist|node_modules)[/\\\\]",
"components/(.*)/__tests__/(.*)/(.*).js"
]
},
"pre-commit": [
"lint-fix",
"prettier",
"test"
],
"bundlesize": [
{
"path": "./dist/grommet.min.js",
"maxSize": "170 kB"
}
],
"keywords": [
"grommet",
"grommet.io",
"grommetux",
"component",
"library",
"design system",
"framework",
"react",
"theme",
"theming",
"templates",
"sticker sheets",
"design patterns",
"app templates",
"atomic design",
"accessibility",
"WCAG 2.1",
"keyboard navigation",
"screen reader tags",
"color",
"type",
"layout",
"typography",
"interaction",
"ui",
"user interface",
"gui",
"graphical user interface",
"styled-components"
]
}