Update dependencies on the top level to use babel 6
This commit is contained in:
parent
27bd5c6719
commit
10957a1093
2
Makefile
2
Makefile
@ -58,6 +58,8 @@ publish:
|
|||||||
bootstrap:
|
bootstrap:
|
||||||
npm install
|
npm install
|
||||||
./node_modules/.bin/lerna bootstrap
|
./node_modules/.bin/lerna bootstrap
|
||||||
|
# remove all existing babel-runtimes and use the top-level babel-runtime
|
||||||
|
rm -rf packages/*/node_modules/babel-runtime
|
||||||
make build
|
make build
|
||||||
cd packages/babel-runtime; \
|
cd packages/babel-runtime; \
|
||||||
node scripts/build-dist.js
|
node scripts/build-dist.js
|
||||||
|
|||||||
25
package.json
25
package.json
@ -3,7 +3,11 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"async": "^1.5.0",
|
"async": "^1.5.0",
|
||||||
"babel": "5.8.21",
|
"babel-core": "^6.3.17",
|
||||||
|
"babel-plugin-transform-runtime": "^6.3.13",
|
||||||
|
"babel-runtime": "^6.0.0",
|
||||||
|
"babel-preset-es2015": "^6.6.0",
|
||||||
|
"babel-preset-stage-0": "^6.0.0",
|
||||||
"browserify": "^11.2.0",
|
"browserify": "^11.2.0",
|
||||||
"bundle-collapser": "^1.2.1",
|
"bundle-collapser": "^1.2.1",
|
||||||
"chai": "^2.2.0",
|
"chai": "^2.2.0",
|
||||||
@ -14,7 +18,7 @@
|
|||||||
"kcheck": "^2.0.0",
|
"kcheck": "^2.0.0",
|
||||||
"fs-readdir-recursive": "^0.1.2",
|
"fs-readdir-recursive": "^0.1.2",
|
||||||
"gulp": "^3.9.0",
|
"gulp": "^3.9.0",
|
||||||
"gulp-babel": "^5.3.0",
|
"gulp-babel": "^6.0.0",
|
||||||
"gulp-newer": "^1.0.0",
|
"gulp-newer": "^1.0.0",
|
||||||
"gulp-plumber": "^1.0.1",
|
"gulp-plumber": "^1.0.1",
|
||||||
"gulp-util": "^3.0.7",
|
"gulp-util": "^3.0.7",
|
||||||
@ -37,26 +41,15 @@
|
|||||||
"uglify-js": "^2.4.16"
|
"uglify-js": "^2.4.16"
|
||||||
},
|
},
|
||||||
"babel": {
|
"babel": {
|
||||||
|
"presets": ["es2015", "react", "stage-0"],
|
||||||
|
"plugins": ["transform-runtime"],
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"packages/babel-cli/src/babel-plugin/templates"
|
"packages/babel-cli/src/babel-plugin/templates"
|
||||||
],
|
],
|
||||||
"stage": 0,
|
|
||||||
"loose": [
|
|
||||||
"all"
|
|
||||||
],
|
|
||||||
"blacklist": [
|
|
||||||
"es6.tailCall"
|
|
||||||
],
|
|
||||||
"optional": [
|
|
||||||
"flow",
|
|
||||||
"optimisation.flow.forOf",
|
|
||||||
"runtime"
|
|
||||||
],
|
|
||||||
"env": {
|
"env": {
|
||||||
"test": {
|
"test": {
|
||||||
"auxiliaryCommentBefore": "istanbul ignore next"
|
"auxiliaryCommentBefore": "istanbul ignore next"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"breakConfig": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user