Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

Commit

Permalink
Merge pull request Semantic-Org#6566 from acconrad/acc-upgrade-gulp4
Browse files Browse the repository at this point in the history
Upgrade to Gulp 4.
  • Loading branch information
badgerwithagun authored Jan 29, 2019
2 parents deb275d + 624ed30 commit 9d2af7e
Show file tree
Hide file tree
Showing 20 changed files with 1,462 additions and 2,002 deletions.
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

0 comments on commit 9d2af7e

Please sign in to comment.