File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ var rename = require('gulp-rename');
19
19
var spawn = require ( 'child_process' ) . spawn ;
20
20
var webpack = require ( 'webpack' ) ;
21
21
var uglify = require ( 'gulp-uglify' ) ;
22
- var babel = require ( 'gulp-babel' ) ;
23
22
24
23
var SITE_OUTPUT_DIR = 'build/site/' ;
25
24
var PACKAGE_OUTPUT_DIR = 'build/package/' ;
@@ -48,9 +47,7 @@ gulp.task('build-htmltojsx', function() {
48
47
fs : "empty"
49
48
}
50
49
} ) )
51
- . pipe ( babel ( {
52
- presets : [ 'es2015' ]
53
- } ) )
50
+ . pipe ( babel ( ) )
54
51
. pipe ( gulp . dest ( SITE_OUTPUT_DIR ) )
55
52
. pipe ( uglify ( { preserveComments : 'some' } ) )
56
53
. pipe ( rename ( { extname : '.min.js' } ) )
@@ -76,9 +73,7 @@ gulp.task('build-magic', function() {
76
73
fs : "empty"
77
74
}
78
75
} ) )
79
- . pipe ( babel ( {
80
- presets : [ 'es2015' ]
81
- } ) )
76
+ . pipe ( babel ( ) )
82
77
. pipe ( gulp . dest ( SITE_OUTPUT_DIR ) )
83
78
. pipe ( uglify ( { preserveComments : 'some' } ) )
84
79
. pipe ( rename ( { extname : '.min.js' } ) )
Original file line number Diff line number Diff line change 12
12
"yargs" : " ~4.6.0"
13
13
},
14
14
"devDependencies" : {
15
- "babel-preset-es2015" : " ^6.24.1 " ,
15
+ "babel-preset-es2015" : " ^6.6.0 " ,
16
16
"babel-preset-react" : " ^6.5.0" ,
17
17
"del" : " ~2.2.0" ,
18
18
"gulp" : " ~3.9.0" ,
19
- "gulp-babel" : " ^6.1.3 " ,
19
+ "gulp-babel" : " ^6.1.2 " ,
20
20
"gulp-gh-pages" : " ~0.5.4" ,
21
21
"gulp-livereload" : " ~3.8.1" ,
22
22
"gulp-rename" : " ~1.2.0" ,
You can’t perform that action at this time.
0 commit comments