Skip to content

Commit

Permalink
🍹 switch to gulp 4, node 12
Browse files Browse the repository at this point in the history
🥾 install gulp-terser in place of gulp-uglify

for ES6 compatibility

resolve upgrade issues
  • Loading branch information
desandro committed Dec 29, 2020
1 parent e085fef commit cf253a4
Show file tree
Hide file tree
Showing 17 changed files with 1,574 additions and 761 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8
12
16 changes: 6 additions & 10 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,42 +26,38 @@ var site = {

require('./tasks/assets')( site );
require('./tasks/dist')( site );
require('./tasks/hint')( site );
require('./tasks/js')( site );
require('./tasks/css')( site );
require('./tasks/content')( site );

// ----- default ----- //

gulp.task( 'default', [
'hint',
gulp.task( 'default', gulp.parallel(
'content',
'js',
'css',
'dist',
'prod-assets',
]);
));

// ----- export ----- //

// version of site used in infinite-scroll-docs.zip
gulp.task( 'export', [
'hint',
gulp.task( 'export', gulp.parallel(
'content',
'js',
'css',
'dist',
'assets',
]);
));

// ----- watch ----- //

gulp.task( 'dev', [
'hint',
gulp.task( 'dev', gulp.parallel(
'dist',
'prod-assets',
'content'
], function() {
), function() {
site.watches.forEach( function( watchable ) {
gulp.watch.apply( gulp, watchable );
});
Expand Down
Loading

0 comments on commit cf253a4

Please sign in to comment.