UNPKG

6.44 kBJSONView Raw
1{
2 "name": "@shopify/polaris",
3 "description": "Shopify’s product component library",
4 "version": "5.8.0",
5 "private": false,
6 "license": "SEE LICENSE IN LICENSE.md",
7 "author": "Shopify <dev@shopify.com>",
8 "homepage": "https://polaris.shopify.com/components",
9 "repository": "https://github.com/Shopify/polaris-react",
10 "bugs": {
11 "url": "https://github.com/Shopify/polaris-react/issues"
12 },
13 "publishConfig": {
14 "access": "public"
15 },
16 "files": [
17 "dist",
18 "esnext",
19 "locales",
20 "!*.tsbuildinfo"
21 ],
22 "sideEffects": [
23 "**/*.css",
24 "**/*.scss",
25 "**/configure.{js,ts,ts.esnext}"
26 ],
27 "keywords": [
28 "shopify",
29 "polaris",
30 "react",
31 "components",
32 "component library"
33 ],
34 "main": "dist/index.js",
35 "module": "dist/esm/index.js",
36 "esnext": "dist/esnext/index.ts.esnext",
37 "types": "dist/types/latest/src/index.d.ts",
38 "typesVersions": {
39 "<3.8": {
40 "dist/types/latest/*": [
41 "dist/types/3.4/*"
42 ]
43 }
44 },
45 "scripts": {
46 "lint": "sewing-kit lint",
47 "format": "sewing-kit format",
48 "type-check": "sewing-kit type-check",
49 "test": "sewing-kit test",
50 "test:coverage": "CI=true yarn test --coverage",
51 "posttest:coverage": "yarn open:coverage",
52 "open:coverage": "open build/coverage/index.html",
53 "check": "npm-run-all lint type-check check:custom-properties test",
54 "build:known-custom-properties": "node ./scripts/build-analyze-custom-properties",
55 "precheck:custom-properties": "yarn run build:known-custom-properties",
56 "preoutput-custom-properties": "yarn run build:known-custom-properties",
57 "output-custom-properties": "node ./build/custom-properties/cli.js -o build/custom-properties-data.json -i build/known-custom-properties.json --pattern 'src/**/{,!(_utilities|_interaction-state)*}.scss'",
58 "check:custom-properties": "node ./build/custom-properties/cli.js -l error -i build/known-custom-properties.json --pattern 'src/**/{,!(_utilities|_interaction-state)*}.scss'",
59 "clean": "rimraf build dist \"./src/styles/polaris-tokens\"",
60 "build": "node ./scripts/build.js",
61 "prebuild-consumer": "yarn run build",
62 "build-consumer": "node ./scripts/build-consumer",
63 "build-shrink-ray": "yarn run copy-polaris-tokens && node ./scripts/build-shrink-ray.js",
64 "secrets": "ejson decrypt -o secrets.json secrets.ejson",
65 "prenew-version-pr-generator": "rimraf sandbox && yarn run secrets",
66 "new-version-pr-generator": "node ./scripts/new-version-pr-generator",
67 "copy-polaris-tokens": "rimraf ./src/styles/polaris-tokens && shx cp -r ./node_modules/@shopify/polaris-tokens/dist ./src/styles/polaris-tokens",
68 "prepublish": "in-publish && yarn run build || :",
69 "postpublish": "in-publish && npm-run-all new-version-pr-generator",
70 "dev": "npm-run-all copy-polaris-tokens storybook",
71 "start": "serve -l ${PORT} -c .storybook/serve.json",
72 "heroku-postbuild": "yarn run storybook:build",
73 "readme-update-version": "node ./scripts/readme-update-version",
74 "version": "yarn run readme-update-version",
75 "storybook": "start-storybook -p 6006 --quiet",
76 "storybook:build": "yarn run copy-polaris-tokens && build-storybook -o build/storybook/static",
77 "splash": "babel-node --extensions '.tsx','.ts' ./scripts/splash/index.tsx",
78 "precolordocs": "yarn run build",
79 "colordocs": "node ./scripts/color-system-docs",
80 "postcolordocs": "yarn run format"
81 },
82 "dependencies": {
83 "@shopify/polaris-icons": "^4.0.0",
84 "@shopify/polaris-tokens": "^2.15.0",
85 "@types/react": "^16.9.12",
86 "@types/react-dom": "^16.9.4",
87 "@types/react-transition-group": "^4.4.0",
88 "lodash": "^4.17.4",
89 "react-transition-group": "^4.4.1"
90 },
91 "peerDependencies": {
92 "react": "^16.9.0",
93 "react-dom": "^16.9.0"
94 },
95 "devDependencies": {
96 "@babel/core": "^7.6.0",
97 "@babel/node": "^7.6.1",
98 "@google-cloud/storage": "^4.3.1",
99 "@octokit/rest": "^16.36.0",
100 "@percy/storybook": "^3.3.0",
101 "@rollup/plugin-babel": "^5.1.0",
102 "@rollup/plugin-commonjs": "^14.0.0",
103 "@rollup/plugin-image": "^2.0.5",
104 "@rollup/plugin-node-resolve": "^8.4.0",
105 "@rollup/plugin-replace": "^2.3.3",
106 "@rollup/pluginutils": "^3.1.0",
107 "@shopify/jest-dom-mocks": "^2.9.1",
108 "@shopify/postcss-plugin": "^3.0.1",
109 "@shopify/react-testing": "^2.1.2",
110 "@shopify/sewing-kit": "^0.132.2",
111 "@shopify/shrink-ray": "^2.3.1",
112 "@shopify/splash": "^0.0.8",
113 "@storybook/addon-a11y": "^6.0.21",
114 "@storybook/addon-console": "^1.2.1",
115 "@storybook/addon-contexts": "^5.3.19",
116 "@storybook/addon-essentials": "^6.0.21",
117 "@storybook/addon-knobs": "^6.0.21",
118 "@storybook/react": "^6.0.21",
119 "@types/enzyme": "^3.10.3",
120 "@types/enzyme-adapter-react-16": "^1.0.5",
121 "@types/lodash": "^4.14.138",
122 "@types/node": "^12.7.5",
123 "@types/scss-parser": "^1.0.0",
124 "babel-core": "7.0.0-bridge.0",
125 "babel-loader": "^8.1.0",
126 "babel-preset-shopify": "^21.0.0",
127 "chalk": "^2.4.2",
128 "change-case": "^3.1.0",
129 "chromatic": "^5.0.0",
130 "codecov": "^3.5.0",
131 "commander": "^4.1.0",
132 "copyfiles": "^2.1.1",
133 "core-js": "^3.6.5",
134 "downlevel-dts": "^0.4.0",
135 "enzyme": "^3.10.0",
136 "enzyme-adapter-react-16": "^1.14.0",
137 "fs-extra": "^7.0.1",
138 "glob": "^7.1.4",
139 "gray-matter": "^4.0.2",
140 "in-publish": "^2.0.0",
141 "ink": "^2.3.0",
142 "js-yaml": "^3.13.1",
143 "marked": "^0.7.0",
144 "mutationobserver-shim": "^0.3.3",
145 "node-cmd": "^3.0.0",
146 "node-sass": "^4.12.0",
147 "npm-run-all": "^4.1.5",
148 "object-hash": "^1.3.1",
149 "pa11y": "^5.2.0",
150 "postcss": "^7.0.18",
151 "postcss-modules": "^3.1.0",
152 "puppeteer": "^1.20.0",
153 "react": "^16.9.0",
154 "react-dom": "^16.9.0",
155 "react-is": "^16.9.0",
156 "react-test-renderer": "^16.9.0",
157 "rimraf": "^3.0.0",
158 "rollup": "^2.22.2",
159 "sass-loader": "^8.0.0",
160 "scss-parser": "^1.0.3",
161 "semver": "^6.3.0",
162 "serve": "^11.1.0",
163 "shelljs": "^0.8.3",
164 "shx": "^0.3.2",
165 "svgo": "^1.3.0",
166 "typescript": "~3.9.2"
167 },
168 "browserslist": [
169 "last 3 chrome versions",
170 "last 3 chromeandroid versions",
171 "last 3 firefox versions",
172 "last 3 opera versions",
173 "last 2 edge versions",
174 "safari >= 10",
175 "ios >= 10"
176 ],
177 "prettier": "@shopify/prettier-config",
178 "stylelint": {
179 "extends": [
180 "@shopify/stylelint-plugin/prettier"
181 ]
182 }
183}