|
12 | 12 | "scripts": { |
13 | 13 | "build:types": "flow-copy-source --ignore \"**/*.{jest,e2e,ssr,example}.js\" source/WindowScroller dist/es/WindowScroller && flow-copy-source --ignore \"**/*.{jest,e2e,ssr,example}.js\" source/AutoSizer dist/es/AutoSizer ", |
14 | 14 | "build": "npm run build:commonjs && npm run build:css && npm run build:es && npm run build:demo && npm run build:umd", |
15 | | - "build:commonjs": "npm run clean:commonjs && cross-env NODE_ENV=production cross-env BABEL_ENV=commonjs babel source --out-dir dist/commonjs", |
| 15 | + "build:commonjs": "npm run clean:commonjs && cross-env NODE_ENV=commonjs babel source --out-dir dist/commonjs", |
16 | 16 | "build:css": "postcss source/styles.css -o styles.css --use autoprefixer", |
17 | 17 | "build:demo": "npm run clean:demo && cross-env NODE_ENV=production webpack --config webpack.config.demo.js -p --bail", |
18 | | - "build:es": "npm run clean:es && npm run build:types && cross-env NODE_ENV=production cross-env BABEL_ENV=es babel source --out-dir dist/es", |
| 18 | + "build:es": "npm run clean:es && npm run build:types && cross-env NODE_ENV=es babel source --out-dir dist/es", |
19 | 19 | "build:umd": "npm run clean:umd && cross-env NODE_ENV=production webpack --config webpack.config.umd.js --bail", |
20 | 20 | "check-all": "yarn prettier && yarn lint && yarn flow", |
21 | 21 | "ci-check": "yarn prettier:diff && yarn lint && yarn flow", |
|
32 | 32 | "prettier:diff": "prettier --list-different '{playground,source}/**/*.js'", |
33 | 33 | "postpublish": "npm run deploy", |
34 | 34 | "prepublish": "npm run build", |
35 | | - "start": "webpack-dev-server --hot --config webpack.config.dev.js", |
| 35 | + "start": "cross-env NODE_ENV=development webpack-dev-server --hot --config webpack.config.dev.js", |
36 | 36 | "test": "npm run test:jest", |
37 | 37 | "test:jest": "jest --no-watchman --runInBand", |
38 | 38 | "test:ci": "jest --no-watchman --maxWorkers 2 --coverage && codecov", |
39 | 39 | "watch": "watch 'clear && npm run test -s' source", |
40 | 40 | "watch:jest": "jest --no-watchman --watch" |
41 | 41 | }, |
| 42 | + "babel": { |
| 43 | + "presets": [ |
| 44 | + "./.babelrc.js" |
| 45 | + ] |
| 46 | + }, |
42 | 47 | "files": [ |
43 | 48 | "dist", |
44 | 49 | "styles.css" |
|
98 | 103 | "babel-jest": "^22.0.4", |
99 | 104 | "babel-loader": "7.1.2", |
100 | 105 | "babel-plugin-flow-react-proptypes": "^13.0.0", |
101 | | - "babel-plugin-react-transform": "^3.0.0", |
| 106 | + "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", |
102 | 107 | "babel-plugin-transform-react-remove-prop-types": "^0.4.12", |
103 | 108 | "babel-plugin-transform-runtime": "^6.23.0", |
104 | 109 | "babel-polyfill": "^6.26.0", |
105 | 110 | "babel-preset-env": "^1.6.1", |
106 | 111 | "babel-preset-flow": "^6.23.0", |
107 | 112 | "babel-preset-react": "^6.24.1", |
108 | | - "babel-preset-stage-1": "^6.24.1", |
109 | | - "bluebird": "^3.0.5", |
| 113 | + "babel-preset-stage-2": "^6.24.1", |
110 | 114 | "codecov": "^2.2.0", |
111 | 115 | "codemirror": "^5.18.0", |
112 | 116 | "cross-env": "^5.0.1", |
|
121 | 125 | "eslint-plugin-prettier": "^2.4.0", |
122 | 126 | "eslint-plugin-react": "^7.5.1", |
123 | 127 | "eslint-plugin-relay": "^0.0.20", |
124 | | - "express": "^4.13.3", |
125 | 128 | "extract-text-webpack-plugin": "^3.0.2", |
126 | 129 | "file-loader": "^1.1.6", |
127 | 130 | "flow-bin": "^0.63.1", |
128 | 131 | "flow-copy-source": "^1.2.1", |
129 | | - "fs-extra": "^4.0.0", |
130 | 132 | "gh-pages": "^1.0.0", |
131 | 133 | "html-webpack-plugin": "^2.30.1", |
132 | 134 | "husky": "^0.14.3", |
|
144 | 146 | "react-dom": "^16.0.0", |
145 | 147 | "react-router": "^4.1.1", |
146 | 148 | "react-router-dom": "^4.1.1", |
147 | | - "react-transform-catch-errors": "^1.0.2", |
148 | | - "react-transform-hmr": "^1.0.2", |
149 | | - "redbox-react": "^1.4.3", |
150 | 149 | "rimraf": "^2.4.3", |
151 | 150 | "style-loader": "^0.19.1", |
152 | 151 | "watch": "^1.0.2", |
|
0 commit comments