forked from grommet/grommet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
242 lines (242 loc) · 7.76 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
{
"name": "grommet",
"version": "2.28.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"
},
"engine-strict": true,
"engines": {
"node": ">= 14"
},
"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\"",
"release-stable": "babel-node ./tools/release-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 start-storybook -p 9001 -c storybook",
"start": "webpack serve --config ./e2e/webpack.config.js --mode development",
"test-e2e": "testcafe chrome:headless e2e/tests",
"build-storybook": "build-storybook -c storybook -o storybook-static",
"prettier": "pretty-quick --staged",
"chromatic": "chromatic -t 9q99in2ygnh"
},
"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"
},
"dependencies": {
"grommet-icons": "^4.8.0",
"hoist-non-react-statics": "^3.2.0",
"markdown-to-jsx": "^7.1.5",
"prop-types": "^15.8.1"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.5",
"@babel/eslint-parser": "^7.19.1",
"@babel/node": "^7.20.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-do-expressions": "^7.18.6",
"@babel/plugin-proposal-export-default-from": "^7.18.10",
"@babel/plugin-proposal-logical-assignment-operators": "^7.18.9",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/plugin-proposal-pipeline-operator": "^7.18.9",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@storybook/addon-a11y": "6.5.12",
"@storybook/addon-storysource": "6.5.12",
"@storybook/addon-toolbars": "6.5.12",
"@storybook/addons": "6.5.12",
"@storybook/builder-webpack5": "6.5.12",
"@storybook/manager-webpack5": "6.5.12",
"@storybook/react": "6.5.12",
"@storybook/source-loader": "6.5.12",
"@testing-library/dom": "^8.19.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/testcafe": "^5.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.2.3",
"@types/jest-axe": "^3.5.5",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@types/styled-components": "^5.1.26",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^29.3.1",
"babel-loader": "^9.0.1",
"babel-plugin-styled-components": "2.0.6",
"babel-plugin-transform-imports": "^2.0.0",
"bundlesize2": "^0.0.31",
"chromatic": "^6.11.4",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"copyfiles": "^2.4.1",
"core-js": "^3.26.1",
"cross-env": "^7.0.3",
"del": "^6.1.1",
"elliptic": "^6.5.4",
"eslint": "^8.28.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.9.1",
"fs-extra": "^11.0.0",
"grommet-theme-aruba": "^0.1.2",
"grommet-theme-dxc": "^0.1.2",
"grommet-theme-hp": "^0.1.2",
"grommet-theme-hpe": "^4.1.0",
"jest": "^29.3.1",
"jest-axe": "^7.0.0",
"jest-cli": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-styled-components": "7.0.5",
"jsdom": "^20.0.3",
"postcss": "^8.4.19",
"pre-commit": "^1.2.2",
"prettier": "^2.8.0",
"pretty-quick": "^3.1.3",
"react": "^18.2.0",
"react-dev-utils": "^12.0.1",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"regenerator-runtime": "^0.13.11",
"require-reload": "^0.2.2",
"simple-git": "^3.15.0",
"styled-components": "^5.3.6",
"tarball-extract": "^0.0.6",
"testcafe": "^2.1.0",
"testcafe-react-selectors": "^5.0.2",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
"typescript": "^4.9.3",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0",
"webpack-dev-server": "^4.11.1"
},
"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
}
},
"modulePathIgnorePatterns": [
"<rootDir>/dist/"
],
"testPathIgnorePatterns": [
"<rootDir>[/\\\\](dist|node_modules)[/\\\\]",
"components/(.*)/__tests__/(.*)/(.*).js"
]
},
"pre-commit": [
"lint-fix",
"prettier",
"test"
],
"bundlesize": [
{
"path": "./dist/grommet.min.js",
"maxSize": "145 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"
]
}