forked from Shopify/polaris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
218 lines (218 loc) · 7.5 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
{
"name": "@shopify/polaris",
"description": "Shopify’s product component library",
"version": "4.25.1",
"private": false,
"license": "SEE LICENSE IN LICENSE.md",
"author": "Shopify <[email protected]>",
"homepage": "https://polaris.shopify.com/components",
"repository": "https://github.com/Shopify/polaris-react",
"bugs": {
"url": "https://github.com/Shopify/polaris-react/issues"
},
"publishConfig": {
"access": "public"
},
"sideEffects": [
"**/*.css",
"**/*.scss",
"**/configure.js"
],
"keywords": [
"shopify",
"polaris",
"react",
"components",
"component library"
],
"main": "index.js",
"module": "index.es.js",
"jsnext:main": "index.es.js",
"types": "types/latest/src/index.d.ts",
"typesVersions": {
"<3.8": {
"types/latest/*": [
"types/3.4/*"
]
}
},
"scripts": {
"lint": "sewing-kit lint",
"format": "sewing-kit format",
"type-check": "sewing-kit type-check",
"test": "sewing-kit test",
"test:coverage": "CI=true yarn test --coverage",
"posttest:coverage": "yarn open:coverage",
"open:coverage": "open build/coverage/index.html",
"check": "npm-run-all lint type-check check:custom-properties test",
"build:known-custom-properties": "node ./scripts/build-analyze-custom-properties",
"precheck:custom-properties": "yarn run build:known-custom-properties",
"preoutput-custom-properties": "yarn run build:known-custom-properties",
"output-custom-properties": "node ./scripts/analyze-custom-properties/dist/cli.js -o build/custom-properties-data.json -i build/known-custom-properties.json --pattern 'src/**/{,!(_utilities|_interaction-state)*}.scss'",
"check:custom-properties": "node ./scripts/analyze-custom-properties/dist/cli.js -l error -i build/known-custom-properties.json --pattern 'src/**/{,!(_utilities|_interaction-state)*}.scss'",
"clean": "rimraf build esnext styles types docs \"build-intermediate\" \"index.*\" \"./src/styles/polaris-tokens\" \"styles.{css,min.css,scss}\"",
"clean:build": "rimraf \"build/!(cache|coverage|storybook)\" esnext styles types docs \"build-intermediate\" \"index.*\" \"./src/styles/polaris-tokens\" \"styles.{css,min.css,scss}\"",
"optimize": "sewing-kit optimize",
"prebuild": "npm-run-all clean:build optimize copy-polaris-tokens",
"build": "node ./scripts/build.js",
"prebuild-consumer": "yarn run build",
"build-consumer": "node ./scripts/build-consumer",
"build-shrink-ray": "yarn run copy-polaris-tokens && node ./scripts/build-shrink-ray.js",
"secrets": "ejson decrypt -o secrets.json secrets.ejson",
"prenew-version-pr-generator": "rimraf sandbox && yarn run secrets",
"new-version-pr-generator": "node ./scripts/new-version-pr-generator",
"copy-polaris-tokens": "rimraf ./src/styles/polaris-tokens && shx cp -r ./node_modules/@shopify/polaris-tokens/dist ./src/styles/polaris-tokens",
"prepublish": "in-publish && yarn run build || :",
"postpublish": "in-publish && npm-run-all new-version-pr-generator",
"dev": "npm-run-all copy-polaris-tokens storybook",
"start": "serve -l ${PORT} -c .storybook/serve.json",
"heroku-postbuild": "yarn run storybook:build",
"readme-update-version": "node ./scripts/readme-update-version",
"version": "yarn run readme-update-version",
"storybook": "start-storybook -p 6006 --quiet",
"storybook:build": "yarn run copy-polaris-tokens && build-storybook -o build/storybook/static",
"splash": "babel-node --extensions '.tsx','.ts' ./scripts/splash/index.tsx",
"precolordocs": "yarn run build",
"colordocs": "node ./scripts/color-system-docs",
"postcolordocs": "yarn run format"
},
"stylelint": {
"extends": [
"stylelint-config-shopify/prettier"
],
"rules": {
"selector-class-pattern": "^[a-zA-Z][a-zA-Z0-9-]+$",
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": [
"global"
]
}
]
}
},
"browserslist": [
"last 3 chrome versions",
"last 3 chromeandroid versions",
"last 3 firefox versions",
"last 3 opera versions",
"last 2 edge versions",
"safari >= 10",
"ios >= 9"
],
"devDependencies": {
"@babel/core": "^7.6.0",
"@babel/node": "^7.6.1",
"@google-cloud/storage": "^4.3.1",
"@octokit/rest": "^16.36.0",
"@percy/storybook": "^3.2.0",
"@shopify/jest-dom-mocks": "^2.1.1",
"@shopify/react-testing": "^2.0.0",
"@shopify/sewing-kit": "^0.120.0",
"@shopify/shrink-ray": "^2.3.1",
"@shopify/splash": "^0.0.8",
"@storybook/addon-a11y": "^5.3.2",
"@storybook/addon-actions": "^5.3.2",
"@storybook/addon-console": "^1.2.1",
"@storybook/addon-contexts": "^5.3.2",
"@storybook/addon-knobs": "^5.3.2",
"@storybook/addon-notes": "^5.3.2",
"@storybook/addon-viewport": "^5.3.2",
"@storybook/react": "^5.3.2",
"@storybook/theming": "^5.3.2",
"@types/enzyme": "^3.10.3",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/lodash": "^4.14.138",
"@types/node": "^12.7.5",
"@types/scss-parser": "^1.0.0",
"babel-core": "7.0.0-bridge.0",
"babel-loader": "^8.0.6",
"babel-preset-shopify": "^20.1.0",
"chalk": "^2.4.2",
"change-case": "^3.1.0",
"codecov": "^3.5.0",
"commander": "^4.1.0",
"copyfiles": "^2.1.1",
"core-js": "^2.6.7",
"cssnano": "^4.1.10",
"downlevel-dts": "^0.4.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"fs-extra": "^7.0.1",
"glob": "^7.1.4",
"gray-matter": "^4.0.2",
"in-publish": "^2.0.0",
"ink": "^2.3.0",
"js-yaml": "^3.13.1",
"marked": "^0.7.0",
"mutationobserver-shim": "^0.3.3",
"node-cmd": "^3.0.0",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"object-hash": "^1.3.1",
"pa11y": "^5.2.0",
"postcss": "^7.0.18",
"postcss-modules-extract-imports": "^2.0.0",
"postcss-modules-local-by-default": "^2.0.6",
"postcss-modules-parser": "^1.1.1",
"postcss-modules-scope": "^2.1.0",
"postcss-modules-values": "^2.0.0",
"postcss-shopify": "^2.2.1",
"puppeteer": "^1.20.0",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-test-renderer": "^16.3.1",
"rimraf": "^3.0.0",
"rollup": "^1.10.1",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^4.2.3",
"rollup-pluginutils": "^2.8.2",
"sass-loader": "^8.0.0",
"scss-parser": "^1.0.3",
"semver": "^6.3.0",
"serve": "^11.1.0",
"shelljs": "^0.8.3",
"shx": "^0.3.2",
"storybook-chromatic": "^3.4.1",
"svgo": "^1.3.0",
"typescript": "~3.9.2"
},
"peerDependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
"files": [
"esnext",
"styles",
"types",
"locales",
"docs",
"index.js",
"index.es.js",
"styles.css",
"styles.min.css",
"styles.scss"
],
"dependencies": {
"@babel/runtime": "^7.1.6",
"@material-ui/react-transition-group": "^4.2.0",
"@shopify/app-bridge": "^1.3.0",
"@shopify/javascript-utilities": "^2.4.1",
"@shopify/polaris-icons": "^3.10.0",
"@shopify/polaris-tokens": "^2.12.3",
"@shopify/useful-types": "^1.2.4",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/react": "^16.8.15",
"@types/react-dom": "^16.8.4",
"@types/react-transition-group": "^2.0.7",
"hoist-non-react-statics": "^3.3.0",
"lodash": "^4.17.4",
"tslib": "^1.9.3"
},
"resolutions": {
"prettier": "2.0.2"
}
}