|
35 | 35 | "bugs": { |
36 | 36 | "url": "https://github.com/box/box-ui-elements/issues" |
37 | 37 | }, |
| 38 | + "scripts": { |
| 39 | + "dev": "BABEL_ENV=dev NODE_ENV=dev ./node_modules/.bin/webpack --progress --colors --config build/webpack.web.config.js", |
| 40 | + "deploy": "BABEL_ENV=dev NODE_ENV=dev ./node_modules/.bin/webpack-dev-server --config build/webpack.web.config.js", |
| 41 | + "ci": "BABEL_ENV=production NODE_ENV=production CI=1 node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js -p --progress --colors --config build/webpack.web.config.js", |
| 42 | + "prod": "BABEL_ENV=production NODE_ENV=production node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js -p --progress --colors --config build/webpack.web.config.js", |
| 43 | + "npm": "webpack -p --progress --colors --config build/webpack.npm.config.js", |
| 44 | + "clean": "rm -rf dist && rm -rf lib && rm -rf reports/coverage && rm -rf src/i18n/json", |
| 45 | + "changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -r 0", |
| 46 | + "prettier": "prettier-eslint --print-width 120 --tab-width 4 --single-quote --semi --write --bracket-spacing true \"src/**/*.js\"", |
| 47 | + "commitmsg": "conventional-changelog-lint -e", |
| 48 | + "prepush": "yarn run lint && yarn run flow && yarn run test", |
| 49 | + "precommit": "lint-staged", |
| 50 | + "lint": "NODE_ENV=dev ./node_modules/.bin/eslint src && ./node_modules/.bin/stylelint 'src/**/*.scss'", |
| 51 | + "test": "NODE_ENV=test ./node_modules/.bin/karma start build/karma.conf.js", |
| 52 | + "debug": "NODE_ENV=test ./node_modules/.bin/karma start build/karma.conf.js --no-single-run --auto-watch", |
| 53 | + "build": "yarn run lint && yarn run clean && yarn run dev", |
| 54 | + "build-lib": "yarn run npm && ./node_modules/.bin/cpx './src/{**/!(__tests__)/*,*}' lib && node ./build/props-to-es2015.js && BABEL_ENV=npm NODE_ENV=production ./node_modules/.bin/babel lib -d lib", |
| 55 | + "minor": "./build/release.sh -n && ./build/publish.sh" |
| 56 | + }, |
| 57 | + "lint-staged": { |
| 58 | + "src/**/*.js": [ |
| 59 | + "prettier-eslint --print-width 120 --tab-width 4 --single-quote --semi --write --bracket-spacing true", |
| 60 | + "git add" |
| 61 | + ] |
| 62 | + }, |
| 63 | + "devEngines": { |
| 64 | + "node": ">=6.x", |
| 65 | + "npm": ">=3.x", |
| 66 | + "yarn": ">=0.21.3" |
| 67 | + }, |
38 | 68 | "dependencies": { |
39 | 69 | "classnames": "^2.2.5", |
40 | 70 | "lodash.clonedeep": "^4.5.0", |
|
139 | 169 | "peerDependencies": { |
140 | 170 | "react": "^15.6.0 || ^16.0.0-alpha", |
141 | 171 | "react-dom": "^15.6.0 || ^16.0.0-alpha" |
142 | | - }, |
143 | | - "scripts": { |
144 | | - "dev": "BABEL_ENV=dev NODE_ENV=dev ./node_modules/.bin/webpack --progress --colors --config build/webpack.web.config.js", |
145 | | - "deploy": "BABEL_ENV=dev NODE_ENV=dev ./node_modules/.bin/webpack-dev-server --config build/webpack.web.config.js", |
146 | | - "ci": "BABEL_ENV=production NODE_ENV=production JENKINS=1 node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js -p --progress --colors --config build/webpack.web.config.js", |
147 | | - "prod": "BABEL_ENV=production NODE_ENV=production node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js -p --progress --colors --config build/webpack.web.config.js", |
148 | | - "npm": "webpack -p --progress --colors --config build/webpack.npm.config.js", |
149 | | - "clean": "rm -rf dist && rm -rf lib && rm -rf reports/coverage && rm -rf src/i18n/json", |
150 | | - "changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -r 0", |
151 | | - "prettier": "prettier-eslint --print-width 120 --tab-width 4 --single-quote --semi --write --bracket-spacing true \"src/**/*.js\"", |
152 | | - "commitmsg": "conventional-changelog-lint -e", |
153 | | - "prepush": "yarn run lint && yarn run flow && yarn run test", |
154 | | - "precommit": "lint-staged", |
155 | | - "lint": "NODE_ENV=dev ./node_modules/.bin/eslint src && ./node_modules/.bin/stylelint 'src/**/*.scss'", |
156 | | - "test": "NODE_ENV=test ./node_modules/.bin/karma start build/karma.conf.js", |
157 | | - "debug": "NODE_ENV=test ./node_modules/.bin/karma start build/karma.conf.js --no-single-run --auto-watch", |
158 | | - "build": "yarn run lint && yarn run clean && yarn run dev", |
159 | | - "build-lib": "yarn run npm && ./node_modules/.bin/cpx './src/{**/!(__tests__)/*,*}' lib && node ./build/props-to-es2015.js && BABEL_ENV=npm NODE_ENV=production ./node_modules/.bin/babel lib -d lib", |
160 | | - "minor": "./build/release.sh -n && ./build/publish.sh" |
161 | | - }, |
162 | | - "lint-staged": { |
163 | | - "src/**/*.js": [ |
164 | | - "prettier-eslint --print-width 120 --tab-width 4 --single-quote --semi --write --bracket-spacing true", |
165 | | - "git add" |
166 | | - ] |
167 | | - }, |
168 | | - "devEngines": { |
169 | | - "node": ">=6.x", |
170 | | - "npm": ">=3.x", |
171 | | - "yarn": ">=0.21.3" |
172 | 172 | } |
173 | 173 | } |
0 commit comments