use latest babel-core
This commit is contained in:
parent
dea509377c
commit
75328ccc60
@ -9,7 +9,6 @@ const watch = require("gulp-watch");
|
|||||||
const gutil = require("gulp-util");
|
const gutil = require("gulp-util");
|
||||||
const gulp = require("gulp");
|
const gulp = require("gulp");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const babelConfig = require("./.babelrc");
|
|
||||||
|
|
||||||
const scripts = "./packages/*/src/**/*.js";
|
const scripts = "./packages/*/src/**/*.js";
|
||||||
let srcEx, libFragment;
|
let srcEx, libFragment;
|
||||||
@ -39,7 +38,7 @@ gulp.task("build", function () {
|
|||||||
gutil.log("Compiling", "'" + chalk.cyan(file.path) + "'...");
|
gutil.log("Compiling", "'" + chalk.cyan(file.path) + "'...");
|
||||||
callback(null, file);
|
callback(null, file);
|
||||||
}))
|
}))
|
||||||
.pipe(babel(babelConfig))
|
.pipe(babel())
|
||||||
.pipe(through.obj(function (file, enc, callback) {
|
.pipe(through.obj(function (file, enc, callback) {
|
||||||
file._path = file.path;
|
file._path = file.path;
|
||||||
file.path = mapToDest(file.path);
|
file.path = mapToDest(file.path);
|
||||||
@ -67,7 +66,7 @@ gulp.task("build-watch", function () {
|
|||||||
gutil.log("Compiling", "'" + chalk.cyan(file._path) + "'...");
|
gutil.log("Compiling", "'" + chalk.cyan(file._path) + "'...");
|
||||||
callback(null, file);
|
callback(null, file);
|
||||||
}))
|
}))
|
||||||
.pipe(babel(babelConfig))
|
.pipe(babel())
|
||||||
.pipe(gulp.dest(dest));
|
.pipe(gulp.dest(dest));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"async": "^1.5.0",
|
"async": "^1.5.0",
|
||||||
"babel-core": "7.0.0-alpha.3",
|
"babel-core": "7.0.0-alpha.6",
|
||||||
"babel-eslint": "^7.0.0",
|
"babel-eslint": "^7.0.0",
|
||||||
"babel-plugin-istanbul": "^2.0.1",
|
"babel-plugin-istanbul": "^2.0.1",
|
||||||
"babel-preset-env": "2.0.0-alpha.3",
|
"babel-preset-env": "2.0.0-alpha.3",
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const babel = require("../.babelrc");
|
|
||||||
const register = require("babel-register").default;
|
const register = require("babel-register").default;
|
||||||
|
register();
|
||||||
register(babel);
|
|
||||||
register({
|
register({
|
||||||
extensions: [".js"],
|
extensions: [".js"],
|
||||||
// Only js files in the test folder but not in the subfolder fixtures.
|
// Only js files in the test folder but not in the subfolder fixtures.
|
||||||
|
|||||||
34
yarn.lock
34
yarn.lock
@ -232,7 +232,7 @@ babel-code-frame@^6.16.0, babel-code-frame@^6.22.0:
|
|||||||
esutils "^2.0.2"
|
esutils "^2.0.2"
|
||||||
js-tokens "^3.0.0"
|
js-tokens "^3.0.0"
|
||||||
|
|
||||||
babel-core@7.0.0-alpha.3, babel-core@^7.0.0-alpha.3:
|
babel-core@7.0.0-alpha.3:
|
||||||
version "7.0.0-alpha.3"
|
version "7.0.0-alpha.3"
|
||||||
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-alpha.3.tgz#423e9998c2d96c88f107e3e81cbef0c27bf2b4f2"
|
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-alpha.3.tgz#423e9998c2d96c88f107e3e81cbef0c27bf2b4f2"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -255,6 +255,28 @@ babel-core@7.0.0-alpha.3, babel-core@^7.0.0-alpha.3:
|
|||||||
slash "^1.0.0"
|
slash "^1.0.0"
|
||||||
source-map "^0.5.0"
|
source-map "^0.5.0"
|
||||||
|
|
||||||
|
babel-core@7.0.0-alpha.6, babel-core@^7.0.0-alpha.3, babel-core@^7.0.0-alpha.6:
|
||||||
|
version "7.0.0-alpha.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-alpha.6.tgz#a4c59f5cd5ef0374365a37937e5c585510eed718"
|
||||||
|
dependencies:
|
||||||
|
babel-code-frame "7.0.0-alpha.3"
|
||||||
|
babel-generator "7.0.0-alpha.3"
|
||||||
|
babel-helpers "7.0.0-alpha.3"
|
||||||
|
babel-messages "7.0.0-alpha.3"
|
||||||
|
babel-template "7.0.0-alpha.3"
|
||||||
|
babel-traverse "7.0.0-alpha.3"
|
||||||
|
babel-types "7.0.0-alpha.3"
|
||||||
|
babylon "7.0.0-beta.7"
|
||||||
|
convert-source-map "^1.1.0"
|
||||||
|
debug "^2.1.1"
|
||||||
|
json5 "^0.5.0"
|
||||||
|
lodash "^4.2.0"
|
||||||
|
micromatch "^2.3.11"
|
||||||
|
private "^0.1.6"
|
||||||
|
resolve "^1.3.2"
|
||||||
|
slash "^1.0.0"
|
||||||
|
source-map "^0.5.0"
|
||||||
|
|
||||||
babel-eslint@^7.0.0:
|
babel-eslint@^7.0.0:
|
||||||
version "7.1.1"
|
version "7.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.1.1.tgz#8a6a884f085aa7060af69cfc77341c2f99370fb2"
|
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.1.1.tgz#8a6a884f085aa7060af69cfc77341c2f99370fb2"
|
||||||
@ -2230,9 +2252,9 @@ growl@1.9.2:
|
|||||||
|
|
||||||
gulp-babel@babel/gulp-babel#b7-alpha:
|
gulp-babel@babel/gulp-babel#b7-alpha:
|
||||||
version "6.1.2"
|
version "6.1.2"
|
||||||
resolved "https://codeload.github.com/babel/gulp-babel/tar.gz/acac269c10e0f6d6e57be3b45f3c07e8d3a84c9a"
|
resolved "https://codeload.github.com/babel/gulp-babel/tar.gz/40804d9d3f02e5147802a9e8d4bd8100ddb9c3ae"
|
||||||
dependencies:
|
dependencies:
|
||||||
babel-core "^7.0.0-alpha.3"
|
babel-core "^7.0.0-alpha.6"
|
||||||
gulp-util "^3.0.0"
|
gulp-util "^3.0.0"
|
||||||
replace-ext "0.0.1"
|
replace-ext "0.0.1"
|
||||||
through2 "^2.0.0"
|
through2 "^2.0.0"
|
||||||
@ -3911,11 +3933,7 @@ resolve@1.1.7:
|
|||||||
version "1.1.7"
|
version "1.1.7"
|
||||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
|
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
|
||||||
|
|
||||||
resolve@^1.1.3, resolve@^1.1.4, resolve@^1.1.6, resolve@^1.1.7:
|
resolve@^1.1.3, resolve@^1.1.4, resolve@^1.1.6, resolve@^1.1.7, resolve@^1.3.2:
|
||||||
version "1.2.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c"
|
|
||||||
|
|
||||||
resolve@^1.3.2:
|
|
||||||
version "1.3.2"
|
version "1.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.2.tgz#1f0442c9e0cbb8136e87b9305f932f46c7f28235"
|
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.2.tgz#1f0442c9e0cbb8136e87b9305f932f46c7f28235"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user