UNPKG

wix-style-react

Version:
282 lines (281 loc) • 8.32 kB
{ "name": "wix-style-react", "description": "wix-style-react", "version": "5.25.0", "main": "./dist/src/index.js", "module": "./dist/es/src/index.js", "sideEffects": [ "./.storybook/**/*.*", "./stories/**/*.*", "./src/**/*.scss" ], "files": [ "dist", "src", "scripts", ".babelrc", "testkit", "es", "new-icons", "*.scss", "*.js" ], "bin": { "migrate-to-icons-v2": "./scripts/migrate-to-icons-v2/runner.js" }, "scripts": { "start": "./scripts/npm-start.sh", "precommit": "lint-staged", "pretest": "npm run lint && ./scripts/ensure-dist.sh", "test": "npm run test:unit && npm run test:e2e", "test:unit": "yoshi test --jest", "test:watch": "yoshi test --jest --watch", "pretest:e2e": "./scripts/ensure-dist.sh", "test:e2e": "concurrently 'npm run test:e2e-only' 'node scripts/e2e-server.js' --names 'protractor,e2e-server' --success first --kill-others", "test:e2e-only": "NODE_ENV=production yoshi test --protractor", "copy-public-styles": "cp src/*.scss .", "prebuild": "npm run generate-testkit-exports", "build": "npm run lint && npm run proxy-wix-ui-icons && npm run generate-test-component && yoshi build && npm run storybook:build", "postbuild": "npm run copy-public-styles && npm run export-components", "pr-postbuild": "npm install teamcity-surge-autorelease@^1.0.0 --no-save && teamcity-surge-autorelease", "storybook:build": "build-storybook", "storybook:static": "node scripts/e2e-server.js", "storybook": "start-storybook -p 6006", "postpublish": "npm install teamcity-surge-autorelease@^1.0.0 --no-save && teamcity-surge-autorelease", "export-components": "import-path --path src", "lint": "yoshi lint", "proxy-wix-ui-icons": "node scripts/proxy-wix-ui-icons", "generate": "./scripts/component-generator/bin/component-generator.js", "generate-test-component": "./scripts/component-generator/bin/generate-test-component.js", "generate-testkit-exports": "node scripts/generate-testkit-exports" }, "yoshi": { "entry": { "app": "index.js" }, "externals": { "react": "React", "react-dom": "ReactDOM", "Wix": "Wix" }, "externalUnprocessedModules": [ "get-own-enumerable-property-symbols", "stringify-object" ], "exports": "wix-style-react" }, "repository": { "type": "git", "url": "git+https://github.com/wix/wix-style-react.git" }, "license": "MIT", "bugs": { "url": "https://github.com/wix/wix-style-react/issues" }, "homepage": "https://github.com/wix/wix-style-react#readme", "devDependencies": { "@storybook/addon-links": "^3.4.10", "@storybook/addon-options": "4.0.0-alpha.14", "@storybook/react": "4.0.0-alpha.14", "@stylable/dom-test-kit": "^0.1.6", "@types/react": "^15.6.20", "babel-plugin-transform-decorators-legacy": "^1.3.5", "babel-polyfill": "^6.23.0", "babel-preset-es2015": "^6.14.0", "babel-preset-react": "*", "babel-preset-stage-2": "*", "chalk": "^2.4.1", "commander": "^2.19.0", "concurrently": "^3.4.0", "enzyme": "^3.3.0", "enzyme-adapter-react-15": "^1.2.0", "eslint-plugin-react": "^6.8.0", "express": "^4.15.2", "eyes.it": "^2.0.0", "fs-extra": "^7.0.1", "globby": "^8.0.1", "husky": "~0.14.0", "identity-obj-proxy": "^3.0.0", "import-path": "^1.0.0", "lint-staged": "^7.3.0", "ora": "^3.0.0", "prompts": "^1.2.1", "protractor": "^5.4.1", "protractor-browser-logs": "^1.0.351", "query-string": "^6.1.0", "react": "^15.5.4", "react-dnd-test-backend": "^5.0.1", "react-docgen": "^2.15.0", "react-dom": "^15.5.4", "react-element-to-jsx-string": "^13.0.0", "react-test-renderer": "^15.5.4", "react-test-utils": "^0.0.1", "react-testing-library": "^5.3.1", "regenerator-runtime": "^0.11.0", "simple-git": "^1.107.0", "sinon": "^1.17.6", "tempy": "^0.2.1", "wait-for-cond": "^1.0.3", "wix-storybook-utils": "^2.0.62", "yoshi": "^3.16.1", "yoshi-style-dependencies": "^3.16.0" }, "peerDependencies": { "react": "^15.0.0", "react-dom": "^15.0.0" }, "publishConfig": { "registry": "https://registry.npmjs.org/", "logLevel": "verbose" }, "dependencies": { "bootstrap-sass": "^3.3.7", "classnames": "^2.2.5", "color": "^2.0.0", "create-react-context": "^0.2.2", "css-element-queries": "^1.1.1", "date-fns": "^1.29.0", "deep-eql": "^3.0.0", "difference": "^1.0.2", "hoist-non-react-methods": "^1.1.0", "is-image": "^1.0.1", "is-url": "^1.2.2", "jscodeshift": "^0.5.0", "lodash": "^4.17.4", "moment": "2.22.2", "omit": "^1.0.1", "popper.js": "^1.14.5", "prop-types": "^15.5.8", "rc-slider": "^8.0.2", "react-collapse": "^4.0.3", "react-day-picker": "^7.0.7", "react-dnd": "^2.5.1", "react-dnd-html5-backend": "^5.0.1", "react-modal": "^3.3.2", "react-motion": "^0.4.7", "react-portal": "^4.1.5", "react-transition-group": "^2.2.1", "slate": "^0.20.3", "wix-animations": "^1.0.276", "wix-eventually": "^2.2.0", "wix-ui-backoffice": "^1.0.299", "wix-ui-core": "^2.0.1", "wix-ui-icons-common": "^2.0.9", "wix-ui-test-utils": "^1.0.115" }, "lint-staged": { "*.{js,scss}": "yoshi lint" }, "jest": { "setupFiles": [ "<rootDir>/node_modules/babel-polyfill", "<rootDir>/test/jest-setup.js" ], "setupTestFrameworkScriptFile": "wix-ui-test-utils/jest-setup", "moduleNameMapper": { "\\.(?!\\st).(css|less|scss)$": "identity-obj-proxy" }, "testPathIgnorePatterns": [ "<rootDir>/dist/", "<rootDir>/node_modules/", "<rootDir>/scripts/component-generator/templates/" ] }, "babel": { "presets": [ [ "es2015", { "modules": false } ], "react", "stage-2" ], "plugins": [ "transform-decorators-legacy" ], "ignore": [ "./scripts/component-generator/templates/" ] }, "eslintConfig": { "extends": "yoshi", "env": { "jest": true }, "rules": { "import/no-unresolved": 0, "jsx-a11y/alt-text": 0, "jsx-a11y/anchor-is-valid": 0, "react/forbid-foreign-prop-types": 0, "react/jsx-handler-names": 0, "react/no-find-dom-node": 0, "react/no-string-refs": 0, "react/jsx-boolean-value": 2, "no-restricted-properties": [ "error", { "object": "browser", "property": "pause", "message": "Do not commit browser.pause()." }, { "object": "browser", "property": "sleep", "message": "Do not commit browser.sleep()." }, { "object": "eyes", "property": "fit", "message": "Do not commit eyes.fit()." } ], "no-restricted-globals": [ "error", "fdescribe", "fit", { "name": "Proxy", "message": "Proxy not supported in IE11." } ], "no-restricted-imports": [ "error", { "paths": [ { "name": "lodash/isObject", "message": "Please use {isObject} from src/utils/operators" }, { "name": "lodash/mapValue", "message": "Please use {mapValue} from src/utils/operators" }, { "name": "lodash/pick", "message": "Please use {pick} from src/utils/operators" }, { "name": "lodash/pickBy", "message": "Please use {pickBy} from src/utils/operators" }, { "name": "lodash/range", "message": "Please use {range} from src/utils/operators" }, { "name": "lodash/times", "message": "Please use {times} from src/utils/operators" }, { "name": "lodash/values", "message": "Please use {values} from src/utils/operators" } ] } ], "no-console": "error" } } }