UNPKG

@shopify/polaris

Version:

Shopify’s product component library

219 lines (218 loc) • 8.05 kB
{ "name": "@shopify/polaris", "description": "Shopify’s product component library", "version": "2.7.0", "private": false, "license": "MIT", "author": "Shopify <dev@shopify.com>", "homepage": "https://github.com/Shopify/polaris#readme", "repository": "https://github.com/Shopify/polaris", "bugs": { "url": "https://github.com/Shopify/polaris/issues" }, "publishConfig": { "access": "public" }, "keywords": [ "shopify", "polaris", "react", "components", "component library" ], "main": "index.js", "module": "index.es.js", "jsnext:main": "index.es.js", "types": "types/index.d.ts", "scripts": { "lint": "npm-run-all lint:js lint:css", "lint:css": "stylelint './**/*.scss' --max-warnings 0", "lint:js": "eslint './**/*.{js,jsx,ts,tsx}' --max-warnings 0 --format codeframe", "format": "npm-run-all format:js format:css format:prettier", "format:css": "yarn run lint:css --fix", "format:js": "yarn run lint:js --fix", "format:prettier": "prettier '**/*.{json,md,yml}' --write", "ts": "tsc --noEmit", "test": "jest --config ./config/jest/config.json", "test:coverage": "yarn test --coverage --no-cache", "test:ci": "yarn test --runInBand --coverage", "test:watch": "yarn test --watch", "check": "npm-run-all lint ts test", "check:ci": "npm-run-all lint ts test:ci", "clean": "rimraf build build-esnext esnext styles types docs 'build-intermediate' 'index.*' 'embedded.js' './src/styles/polaris-tokens' './tophat/.cache' './tophat/assets' 'styles.{css,scss}'", "optimize": "node ./scripts/optimize.js", "prebuild": "npm-run-all clean optimize copy-polaris-tokens", "build": "babel-node ./scripts/build.js", "prebuild-consumer": "npm-run-all build hide-private-readme", "build-consumer": "babel-node ./scripts/build-consumer", "postbuild-consumer": "yarn run show-private-readme", "build-shrink-ray": "yarn run copy-polaris-tokens && node ./scripts/build-shrink-ray.js", "precdn": "yarn run build", "cdn:secrets": "ejson decrypt -o secrets.json secrets.ejson", "cdn:deploy": "node ./scripts/deploy.js", "cdn": "npm-run-all cdn:secrets cdn:deploy", "public-release:secrets": "ejson decrypt -o secrets.json secrets.ejson", "prepublic-release": "rimraf sandbox && yarn run public-release:secrets", "public-release": "babel-node ./scripts/public-repo-deploy.js", "copy-polaris-tokens": "rimraf ./src/styles/polaris-tokens && shx cp -r ./node_modules/@shopify/polaris-tokens/dist ./src/styles/polaris-tokens", "hide-private-readme": "shx mv ./README.md ./public/README-private.md && shx mv ./public/README.md ./README.md", "show-private-readme": "shx mv ./README.md ./public/README.md && shx mv ./public/README-private.md ./README.md ", "prepublish": "in-publish && npm-run-all build hide-private-readme || :", "postpublish": "in-publish && npm-run-all cdn show-private-readme public-release || :", "dev": "yarn run copy-polaris-tokens && webpack-dev-server --config ./playground/webpack.config.js --content-base ./playground/ --hot --inline", "dev:host": "yarn run copy-polaris-tokens && webpack-dev-server --config ./playground/webpack.config.js --content-base ./playground/ --hot --inline --host $(ipconfig getifaddr en0)", "tophat": "yarn run copy-polaris-tokens && node ./tophat/index.js --watch", "test:percy": "node ./tophat/snapshots.js", "test:a11y": "node ./scripts/pa11y.js", "start": "node ./tophat/index.js", "heroku-postbuild": "yarn run copy-polaris-tokens && webpack --config ./tophat/webpack.config.js --output-path ./tophat/assets" }, "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" ] } ] } }, "devDependencies": { "@babel/generator": "^7.0.0-beta.51", "@babel/parser": "^7.0.0-beta.51", "@babel/standalone": "^7.0.0-beta.51", "@percy/puppeteer": "^0.3.2", "@shopify/js-uploader": "github:shopify/js-uploader", "@shopify/polaris-tokens": "^1.2.0", "@shopify/react-serialize": "^1.0.6", "@types/enzyme": "^3.1.10", "@types/jest": "^21.1.2", "@types/lodash": "^4.14.108", "@types/lodash-decorators": "^4.0.0", "@types/node": "^8.10.17", "@types/react-helmet": "^5.0.6", "@types/react-hot-loader": "^3.0.6", "@types/react-router-dom": "^4.2.7", "archiver": "^2.1.0", "awesome-typescript-loader": "^3.1.3", "aws-sdk": "^2.58.0", "babel": "^6.23.0", "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-jest": "^21.2.0", "babel-loader": "^7.1.2", "babel-plugin-transform-jsx-html": "^1.0.0", "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-plugin-transform-react-jsx": "^6.24.1", "babel-polyfill": "^6.26.0", "babel-preset-env": "^1.7.0", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "babel-preset-shopify": "^16.2.0", "babel-preset-stage-0": "^6.24.1", "babel-register": "^6.26.0", "change-case": "^3.0.1", "codecov": "^3.0.4", "copyfiles": "^1.2.0", "crypto": "^1.0.1", "css-loader": "^0.28.3", "cssnano": "^3.10.0", "enzyme": "^3.3.0", "enzyme-adapter-react-16": "^1.1.1", "eslint": "^4.8.0", "eslint-plugin-shopify": "^23.1.0", "express": "^4.16.3", "file-loader": "^1.1.11", "fs-extra": "^4.0.2", "generic-names": "^1.0.2", "glob": "^7.1.2", "gray-matter": "^4.0.1", "identity-obj-proxy": "^3.0.0", "image-webpack-loader": "^3.3.1", "in-publish": "^2.0.0", "isomorphic-fetch": "^2.2.1", "jest": "^21.2.1", "node-sass": "^4.5.3", "npm-run-all": "^4.0.2", "object-hash": "^1.3.0", "pa11y": "^5.0.4", "postcss": "^6.0.1", "postcss-loader": "^2.0.5", "postcss-modules-extract-imports": "^1.1.0", "postcss-modules-local-by-default": "^1.2.0", "postcss-modules-parser": "^1.1.1", "postcss-modules-scope": "^1.1.0", "postcss-modules-values": "^1.3.0", "postcss-shopify": "^1.0.0", "prettier": "^1.14.2", "puppeteer": "^1.5.0", "react": "^16.4.0", "react-dom": "^16.4.0", "react-helmet": "^5.2.0", "react-router-dom": "^4.3.1", "react-test-renderer": "^16.3.1", "rimraf": "^2.6.1", "rollup": "^0.50.0", "rollup-plugin-babel": "^3.0.2", "rollup-plugin-commonjs": "^8.0.2", "rollup-plugin-json": "^2.1.1", "rollup-plugin-node-resolve": "^3.0.0", "rollup-pluginutils": "^2.0.1", "sass-loader": "^7.0.3", "sass-resources-loader": "^1.3.3", "semver": "^5.4.1", "shelljs": "^0.7.7", "shx": "^0.2.2", "style-loader": "^0.19.0", "stylelint": "^9.2.1", "stylelint-config-shopify": "^6.1.0", "svgo": "^0.7.2", "tslint": "^5.8.0", "typescript": "^2.9.1", "url-loader": "^1.0.1", "webpack": "^3.7.1", "webpack-bundle-analyzer": "^2.11.1", "webpack-dev-server": "^2.9.3", "yargs": "^12.0.1" }, "peerDependencies": { "react": "^16.3.1", "react-dom": "^16.3.1" }, "files": [ "esnext", "styles", "types", "docs", "index.js", "index.es.js", "styles.css", "styles.scss", "embedded.js", "embedded.d.ts" ], "dependencies": { "@shopify/images": "^1.1.0", "@shopify/javascript-utilities": "^2.2.0", "@shopify/react-html": "^3.0.3", "@shopify/react-utilities": "^2.0.3", "@types/prop-types": "^15.5.2", "@types/react": "^16.4.7", "@types/react-dom": "^16.0.6", "@types/react-transition-group": "^2.0.7", "babel-runtime": "^6.23.0", "core-js": "^2.5.1", "hoist-non-react-statics": "^2.5.0", "lodash": "^4.17.4", "lodash-decorators": "^4.3.5", "prop-types": "^15.6.1", "react-transition-group": "^2.3.0", "tslib": "^1.8.0" } }