forked from segmentio/evergreen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
234 lines (234 loc) · 7.46 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
{
"name": "evergreen-ui",
"version": "7.1.9",
"description": "🌲 React UI Kit by Segment 🌲",
"contributors": [
"Jeroen Ransijn (https://jssr.design/)",
"Roland Warmerdam (https://roland.codes)",
"Matt Shwery (https://mattshwery.com)",
"Colin Lohner (https://www.colinlohner.com)",
"Allen Kleiner (http://allenk.me/)",
"Chris Chuck (https://github.com/Chrischuck)",
"Brandon Scott (https://brandonscott.me)"
],
"keywords": [
"evergreen",
"segment",
"ui",
"react"
],
"repository": "segmentio/evergreen",
"license": "MIT",
"main": "commonjs/index.js",
"module": "esm/index.js",
"unpkg": "umd/evergreen.min.js",
"types": "index.d.ts",
"files": [
"commonjs",
"esm",
"umd",
"index.d.ts",
"codemods/dist",
"types"
],
"sideEffects": false,
"scripts": {
"build": "yarn generate-icons && concurrently --names 'commonjs,esm,umd,codemods,types' 'yarn build-commonjs' 'yarn build-esm' 'yarn build-umd' 'yarn build-codemods' 'yarn build-types'",
"build-codemods": "cd codemods && yarn build",
"build-commonjs": "tsc --project tsconfig.commonjs.json",
"build-esm": "BABEL_ENV=esm babel src --out-dir esm --ignore '**/stories','**/test','**/__tests__','**/types' --extensions '.js,.ts,.tsx'",
"build-storybook": "build-storybook",
"build-types": "tsc --project tsconfig.types.json",
"build-umd": "rollup -c",
"chromatic": "npx chromatic",
"clean": "git clean -Xdf",
"create-package": "./tools/create-package.js",
"create-package:components": "./tools/create-package-components.js",
"deploy-docs": "cd docs && yarn install && yarn deploy",
"dev": "start-storybook -p 6006",
"generate-icons": "./tools/generate-icons.js",
"lint": "eslint \"src/**/*.{js,ts,tsx}\" --cache",
"postpublish": "branch=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD); if [[ $branch == \"master\" ]]; then yarn update-docs || yarn deploy-docs; else echo \"not on main branch, skipping docs deploy\"; fi;",
"prebuild": "yarn typecheck",
"prepublishOnly": "rm -rf esm commonjs umd types && yarn build",
"release": "np",
"size": "size-limit",
"test": "yarn lint && yarn tsd && yarn jest",
"test:coverage": "yarn jest --coverage",
"test:watch": "yarn jest --watch",
"typecheck": "tsc --noEmit",
"update-docs": "cd docs && yarn add evergreen-ui@latest --exact && git add package.json yarn.lock && git show-branch --no-name HEAD | grep -E 'v[0-9]+.[0-9]+.[0-9]+' && git commit --amend --no-edit || git commit -m \"Updated doc site evergreen version\""
},
"engines": {
"node": ">=14"
},
"dependencies": {
"@babel/runtime": "^7.1.2",
"@segment/react-tiny-virtual-list": "^2.2.1",
"@types/react-transition-group": "^4.4.0",
"arrify": "^1.0.1",
"downshift": "^5.2.0",
"fuzzaldrin-plus": "^0.6.0",
"humanize-plus": "^1.8.2",
"lodash.debounce": "^4.0.8",
"lodash.differencewith": "^4.5.0",
"lodash.isempty": "^4.4.0",
"lodash.merge": "^4.6.2",
"lodash.omit": "^4.5.0",
"lodash.uniqby": "^4.7.0",
"prop-types": "^15.6.2",
"react-fast-compare": "^3.2.0",
"react-transition-group": "^4.4.1",
"ui-box": "^5.4.1"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-is": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-private-methods": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.18.6",
"@babel/register": "^7.0.0",
"@blueprintjs/icons": "^3.31.0",
"@faker-js/faker": "^6.1.2",
"@reactions/component": "^2.0.2",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@rollup/plugin-typescript": "^10.0.1",
"@size-limit/preset-big-lib": "^4.5.4",
"@storybook/addon-essentials": "^6.0.21",
"@storybook/addon-options": "^5.3.21",
"@storybook/addons": "^6.0.21",
"@storybook/react": "^6.0.21",
"@storybook/theming": "^6.0.21",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "13.3.0",
"@testing-library/user-event": "^13.1.9",
"@types/fs-extra": "^9.0.13",
"@types/fuzzaldrin-plus": "^0.6.2",
"@types/humanize-plus": "1.8.0",
"@types/jest": "27.4.0",
"@types/lodash.debounce": "^4.0.6",
"@types/lodash.differencewith": "^4.5.6",
"@types/lodash.isempty": "^4.4.6",
"@types/lodash.merge": "^4.6.6",
"@types/lodash.uniqby": "^4.7.6",
"@types/node": "^17.0.21",
"@types/react-is": "17.0.3",
"@types/testing-library__jest-dom": "5.14.3",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"babel-core": "7.0.0-bridge.0",
"babel-loader": "^8.1.0",
"babel-plugin-add-react-displayname": "^0.0.5",
"camelcase": "^5.0.0",
"chromatic": "^5.1.0",
"concurrently": "^4.0.1",
"eslint": "6.2.2",
"eslint-config-prettier": "^6.11.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-sort-destructure-keys": "^1.3.5",
"eslint-plugin-standard": "4.0.0",
"file-loader": "^6.0.0",
"fs-extra": "^7.0.0",
"husky": "^4.0.10",
"jest": "^26.4.2",
"lint-staged": "^10.0.1",
"np": "^6.3.2",
"prettier": "2.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"rollup": "^2.28.2",
"rollup-plugin-terser": "^5.2.0",
"sinon": "^8.1.0",
"size-limit": "^4.5.0",
"starwars-names": "^1.6.0",
"tsd": "^0.19.1",
"typescript": "4.9.4",
"url-loader": "^1.1.2",
"webpack": "^4.43.0",
"yarnhook": "^0.5.1"
},
"resolutions": {
"ansi-regex": "5.0.1"
},
"prettier": {
"semi": false,
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"trailingComma": "none",
"arrowParens": "avoid"
},
"lint-staged": {
"!(codemods|docs)/**/.{js,ts,tsx}": [
"yarn lint --fix",
"prettier --write"
],
"docs/**/*.{js,ts,tsx}": [
"yarn --cwd ./docs run lint"
],
"*.{json,md}": [
"prettier --write"
]
},
"jest": {
"setupFilesAfterEnv": [
"./tools/test-setup-after-env"
],
"modulePathIgnorePatterns": [
"<rootDir>/docs/",
"<rootDir>/codemods/",
"<rootDir>/esm/",
"<rootDir>/commonjs/"
],
"collectCoverageFrom": [
"src/**/*.{js,ts,tsx}",
"!**/*.stories.{js,jsx}",
"!src/{constants,test,themes}/**",
"!src/icons/generated/**"
]
},
"size-limit": [
{
"path": "commonjs/index.js",
"limit": "305 KB",
"running": false
},
{
"path": "umd/evergreen.min.js",
"limit": "275 KB",
"running": false
},
{
"path": "esm/index.js",
"import": "{ Pane, Text, majorScale, SelectMenu, Menu, AddIcon, RemoveIcon }",
"limit": "65 KB",
"running": false
}
],
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"post-merge": "yarnhook",
"post-checkout": "yarnhook",
"post-rewrite": "yarnhook"
}
}
}