Skip to content

Commit

Permalink
Adjusted gulp bundle tasks to new API from `ckeditor5-dev-bundler-rol…
Browse files Browse the repository at this point in the history
…lup`.
  • Loading branch information
Kamil Piechaczek committed Aug 4, 2016
1 parent 4ff8263 commit d6350bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ gulp.task( 'exec', ckeditor5DevEnv.execOnRepositories );

// Bundling tasks.
const ckeditor5DevBundle = require( 'ckeditor5-dev-bundler-rollup' )( config );
gulp.task( 'bundle:clean', ckeditor5DevBundle.clean );
gulp.task( 'bundle:clean', ckeditor5DevBundle.cleanFromConfig );
gulp.task( 'bundle:generate',
[
'bundle:clean',
Expand All @@ -54,16 +54,16 @@ gulp.task( 'bundle:generate',
],
ckeditor5DevBundle.generateFromConfig
);
gulp.task( 'bundle:minify:js', ckeditor5DevBundle.minify.js );
gulp.task( 'bundle:minify:css', ckeditor5DevBundle.minify.css );
gulp.task( 'bundle:minify:js', ckeditor5DevBundle.minify.jsFromConfig );
gulp.task( 'bundle:minify:css', ckeditor5DevBundle.minify.cssFromConfig );

gulp.task( 'bundle', ( callback ) => {
runSequence( 'bundle:generate',
[
'bundle:minify:js',
'bundle:minify:css'
],
() => ckeditor5DevBundle.showSummary( callback )
() => ckeditor5DevBundle.showSummaryFromConfig( callback )
);
} );

Expand Down

0 comments on commit d6350bf

Please sign in to comment.