UNPKG

@vtex/styleguide

Version:

> VTEX Styleguide React components ([Docs](https://vtex.github.io/styleguide))

205 lines (204 loc) 6.53 kB
{ "name": "@vtex/styleguide", "version": "9.146.13", "scripts": { "lint": "eslint react --ext js,jsx,ts,tsx", "test": "node config/test.js", "test:codemod": "jest codemod", "type-check": "tsc --noEmit", "predeploy": "npm run styleguide:build", "deploy": "gh-pages -d styleguide", "styleguide": "styleguidist server", "start": "styleguidist server", "styleguide:build": "styleguidist build && echo 'styleguide.vtex.com' >./styleguide/CNAME", "babel:lib": "NODE_ENV=production babel ./react/components --out-dir ./lib --extensions \".js,.jsx,.ts,.tsx\" --ignore '__tests__,*.spec.js' --ignore '*.md' --copy-files", "build:types": "tsc --emitDeclarationOnly", "babel:modules": "NODE_ENV=production babel ./react/modules --out-dir ./modules --ignore '__tests__,*.spec.js' --ignore '*.md' --copy-files", "babel:utilities": "NODE_ENV=production babel ./react/utilities --out-dir ./utilities --extensions \".js,.jsx,.ts,.tsx\" --ignore '__tests__,*.spec.js' --ignore '*.md' --copy-files", "clean:lib": "rm -rf lib", "clean:modules": "rm -rf modules", "compile": "run-s clean:lib clean:modules build:types babel:lib babel:modules babel:utilities", "prepublishOnly": "run-s compile deploy", "prepare": "yarn --cwd react --ignore-scripts", "postreleasy": "vtex publish --public --verbose", "lint-fix": "eslint react --ext js,jsx,ts,tsx --fix --max-warnings 0", "prettier-conflict-check": "eslint --print-config .eslintrc | eslint-config-prettier-check", "build": "run-s compile styleguide:build", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook" }, "main": "./lib/index.js", "files": [ "lib/", "modules/", "codemod/", "utilities/" ], "keywords": [ "vtex", "styleguide" ], "repository": { "type": "git", "url": "git+https://github.com/vtex/styleguide.git" }, "homepage": "https://vtex.github.io/styleguide", "devDependencies": { "@babel/cli": "^7.5.5", "@babel/core": "^7.5.4", "@babel/plugin-proposal-class-properties": "^7.5.5", "@babel/plugin-transform-modules-commonjs": "^7.0.0", "@babel/preset-env": "^7.5.5", "@babel/preset-react": "^7.0.0", "@babel/preset-typescript": "^7.3.3", "@storybook/addon-a11y": "^6.0.21", "@storybook/addon-actions": "^6.0.21", "@storybook/addon-console": "^1.2.1", "@storybook/addon-essentials": "^6.0.21", "@storybook/addon-links": "^6.0.21", "@storybook/addon-viewport": "^6.0.21", "@storybook/addons": "^6.0.21", "@storybook/react": "^6.0.21", "@testing-library/jest-dom": "^5.1.1", "@testing-library/react": "^9.5.0", "@testing-library/react-hooks": "^3.2.1", "@types/jest": "^24.0.15", "@types/node": "^12.12.21", "@types/prop-types": "^15.7.1", "babel-eslint": "^10.0.2", "babel-loader": "^8.0.6", "babel-plugin-dynamic-import-node": "^1.2.0", "copyfiles": "^1.2.0", "css-loader": "^3.1.0", "eslint": "^6.7.2", "eslint-config-vtex": "^11.2.1", "eslint-config-vtex-react": "^5.1.0", "eslint-loader": "^2.1.1", "eslint-plugin-flowtype": "2", "eslint-utils": "^1.4.1", "file-loader": "^4.1.0", "gh-pages": "^1.2.0", "husky": "^1.1.3", "jest": "^25.1.0", "jest-dom": "^4.0.0", "jest-resolve": "^24.8.0", "jest-watch-typeahead": "^0.3.1", "jscodeshift": "^0.5.0", "npm-run-all": "^4.1.3", "object-assign": "^4.1.1", "postcss-flexbugs-fixes": "^4.1.0", "postcss-loader": "^3.0.0", "prettier": "^1.19.1", "prettier-eslint": "^8.8.2", "promise": "^8.0.3", "raf": "^3.4.1", "react": "^16.12.0", "react-app-polyfill": "^1.0.1", "react-dev-utils": "^11.0.4", "react-dom": "^16.12.0", "react-is": "^16.13.1", "react-styleguidist": "^9.1.12", "react-test-renderer": "^16.13.0", "style-loader": "^0.23.1", "typescript": "^3.7.3", "url-loader": "^2.1.0", "watch": "^1.0.2", "webpack": "^4.37.0" }, "dependencies": { "autoprefixer": "^9.6.1", "case-sensitive-paths-webpack-plugin": "^2.2.0", "focus-visible": "^4.1.5", "fromentries": "^1.1.0", "react-color": "^2.17.0", "react-datepicker": "^2.3.0", "date-fns": "^2.0.1", "react-docgen-displayname-handler": "^2.1.1", "react-dropzone": "^10.2.1", "react-icons": "^3.7.0", "react-number-format": "^4.0.6", "react-outside-click-handler": "^1.2.2", "react-overlays": "^1.1.2", "react-responsive-modal": "^3.1.0", "react-select": "^2.1.2", "react-sticky": "^6.0.3", "react-virtualized": "^9.19.1", "use-media": "^1.4.0", "uuid": "^3.3.2", "vtex-tachyons": "^3.2.0", "whatwg-fetch": "2.0.4" }, "peerDependencies": { "react": "^16.8.0", "react-dom": "^16.8.0", "recharts": "^2.0.0-beta.1" }, "resolutions": { "react": "^16.12.0", "react-dom": "^16.12.0" }, "husky": { "hooks": { "pre-push": "npm run prettier-conflict-check && npm run lint" } }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "jest": { "collectCoverageFrom": [ "src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts" ], "setupFiles": [ "react-app-polyfill/jsdom" ], "setupFilesAfterEnv": [], "testMatch": [ "<rootDir>/react/**/__tests__/**/*.{js,jsx,ts,tsx}", "<rootDir>/react/**/*.{spec,test}.{js,jsx,ts,tsx}" ], "transform": { "^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest", "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js", "^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js" }, "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$", "^.+\\.module\\.(css|sass|scss)$" ], "modulePaths": [], "moduleNameMapper": { "^react-native$": "react-native-web", "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy" }, "moduleFileExtensions": [ "web.js", "js", "web.ts", "ts", "web.tsx", "tsx", "json", "web.jsx", "jsx", "node" ], "watchPlugins": [ "jest-watch-typeahead/filename", "jest-watch-typeahead/testname" ] }, "bugs": { "url": "https://github.com/vtex/styleguide/issues" } }