Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dependencies] [Security] Upgrade to Gulp4 #6566

Closed
wants to merge 11 commits into from
80 changes: 60 additions & 20 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,50 @@ var
Tasks
*******************************/

gulp.task('default', false, [
'check-install'
]);

gulp.task('watch', 'Watch for site/theme changes', watch);

gulp.task('build', 'Builds all files from source', build);
gulp.task('build-javascript', 'Builds all javascript from source', buildJS);
gulp.task('build-css', 'Builds all css from source', buildCSS);
gulp.task('build-assets', 'Copies all assets from source', buildAssets);

gulp.task('clean', 'Clean dist folder', clean);
gulp.task('version', 'Displays current version of Semantic', version);

gulp.task('install', 'Runs set-up', install);
gulp.task('check-install', 'Displays current version of Semantic', checkInstall);
gulp.task('default', function(done) {
checkInstall();
done();
});

gulp.task('watch', function(done) {
watch();
done();
});

gulp.task('build', function(done) {
build();
done();
});
gulp.task('build-javascript', function(done) {
buildJS();
done();
});
gulp.task('build-css', function(done) {
buildCSS();
done();
});
gulp.task('build-assets', function(done) {
buildAssets();
done();
});

gulp.task('clean', function(done) {
clean();
done();
});
gulp.task('version', function(done) {
version();
done();
});

gulp.task('install', function(done) {
install();
done();
});
gulp.task('check-install', function(done) {
checkInstall();
done();
});

/*--------------
Docs
Expand All @@ -65,17 +93,29 @@ gulp.task('check-install', 'Displays current version of Semantic', checkInstall)
https://github.com/Semantic-Org/Semantic-UI-Docs/
*/

gulp.task('serve-docs', 'Serve file changes to SUI Docs', serveDocs);
gulp.task('build-docs', 'Build all files and add to SUI Docs', buildDocs);
gulp.task('serve-docs', function(done) {
serveDocs();
done();
});
gulp.task('build-docs', function(done) {
buildDocs();
done();
});


/*--------------
RTL
---------------*/

if(config.rtl) {
gulp.task('watch-rtl', 'Watch files as RTL', watchRTL);
gulp.task('build-rtl', 'Build all files as RTL', buildRTL);
gulp.task('watch-rtl', function(done) {
watchRTL();
done();
});
gulp.task('build-rtl', function(done) {
buildRTL();
done();
});
}

/* Admin Tasks */
Expand Down
Loading