Skip to content
This repository was archived by the owner on Mar 6, 2020. It is now read-only.

Commit 845a304

Browse files
René Kooigoto-bus-stop
authored andcommitted
deps: upgrade babel
1 parent 1cbc0fc commit 845a304

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015", "stage-2"]
3+
}

gulpfile.babel.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ gulp.task('clean', [ 'clean-lib', 'clean-build' ]);
2828

2929
gulp.task('babel', () => {
3030
return gulp.src('src/**/*.js')
31-
.pipe(babel({ modules: 'amd', externalHelpers: true }))
31+
.pipe(babel({
32+
presets: ['extplug'],
33+
plugins: ['external-helpers']
34+
}))
3235
.pipe(babelHelpers('_babelHelpers.js', 'var'))
3336
.pipe(gulp.dest('lib/'));
3437
});

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@
1313
"sistyl": "^1.0.0"
1414
},
1515
"devDependencies": {
16-
"babel-core": "^5.8.23",
16+
"babel-cli": "^6.5.1",
17+
"babel-plugin-external-helpers": "^6.5.0",
18+
"babel-preset-es2015": "^6.9.0",
19+
"babel-preset-extplug": "^1.0.0",
20+
"babel-preset-stage-2": "^6.5.0",
1721
"browserify": "^11.0.1",
1822
"del": "^1.2.1",
1923
"gulp": "^3.9.0",
20-
"gulp-babel": "^5.2.1",
21-
"gulp-babel-external-helpers": "^1.0.0",
24+
"gulp-babel": "^6.1.2",
25+
"gulp-babel-external-helpers": "^2.0.0",
2226
"gulp-concat": "^2.6.0",
2327
"gulp-data": "^1.2.0",
2428
"gulp-rename": "^1.2.2",

0 commit comments

Comments
 (0)