GeezerVison is showing github.com — update gulp to 4.x · stacktracejs/stackframe@2d5ea93
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: gulpfile.js +22-22Lines changed: 22 additions & 22 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,44 +25,44 @@ gulp.task('test', function(done) { | 25 | 25 | }, done).start(); | 26 | 26 | }); | 27 | 27 |
| 28 | | -gulp.task('test-pr', ['copy', 'dist'], function(done) { | 29 | | - new karma.Server({ | 30 | | - configFile: __dirname + '/karma.conf.js', | 31 | | - browsers: ['Firefox', 'Chrome_Travis'], | 32 | | - singleRun: true | 33 | | - }, done).start(); | 34 | | -}); | 35 | | - | 36 | | -gulp.task('test-ci', ['copy', 'dist'], function(done) { | 37 | | - new karma.Server({ | 38 | | - configFile: __dirname + '/karma.conf.ci.js', | 39 | | - singleRun: true | 40 | | - }, done).start(); | 41 | | -}); | 42 | | - | 43 | 28 | gulp.task('copy', function() { | 44 | 29 | gulp.src(sources) | 45 | 30 | .pipe(gulp.dest('dist')); | 46 | 31 | }); | 47 | 32 |
| 48 | | -gulp.task('dist', ['copy'], function() { | | 33 | +gulp.task('dist', gulp.series(['copy'], function() { | 49 | 34 | return gulp.src(sources) | 50 | 35 | .pipe(sourcemaps.init()) | 51 | 36 | .pipe(uglify()) | 52 | 37 | .pipe(rename(minified)) | 53 | 38 | .pipe(sourcemaps.write('./')) | 54 | 39 | .pipe(gulp.dest('dist')); | 55 | | -}); | | 40 | +})); | | 41 | + | | 42 | +gulp.task('test-pr', gulp.series(['copy', 'dist'], function(done) { | | 43 | + new karma.Server({ | | 44 | + configFile: __dirname + '/karma.conf.js', | | 45 | + browsers: ['Firefox', 'Chrome_Travis'], | | 46 | + singleRun: true | | 47 | + }, done).start(); | | 48 | +})); | | 49 | + | | 50 | +gulp.task('test-ci', gulp.series(['copy', 'dist'], function(done) { | | 51 | + new karma.Server({ | | 52 | + configFile: __dirname + '/karma.conf.ci.js', | | 53 | + singleRun: true | | 54 | + }, done).start(); | | 55 | +})); | 56 | 56 |
| 57 | 57 | gulp.task('clean', del.bind(null, ['build', 'coverage', 'dist'])); | 58 | 58 |
| 59 | | -gulp.task('pr', ['lint', 'test-pr']); | | 59 | +gulp.task('pr', gulp.series(['lint', 'test-pr'])); | 60 | 60 |
| 61 | | -gulp.task('ci', ['lint', 'test-ci'], function() { | | 61 | +gulp.task('ci', gulp.series(['lint', 'test-ci'], function() { | 62 | 62 | gulp.src('./coverage/**/lcov.info') | 63 | 63 | .pipe(coveralls()); | 64 | | -}); | | 64 | +})); | 65 | 65 |
| 66 | | -gulp.task('default', ['clean'], function(cb) { | | 66 | +gulp.task('default', gulp.series(['clean'], function(cb) { | 67 | 67 | runSequence('lint', ['copy', 'dist'], 'test', cb); | 68 | | -}); | | 68 | +})); |
|