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

[Build Tools] update to gulp4 #179

Merged
merged 31 commits into from
Nov 16, 2018
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0f76789
chore: update build dependencies
ColinFrick Oct 2, 2018
5c09272
build: update gulpfile to version 4
ColinFrick Oct 2, 2018
2c5bf23
build: update build gulp tasks to gulp 4
ColinFrick Oct 2, 2018
b2fb0d7
build: update watch to gulp 4
ColinFrick Oct 2, 2018
5f7458e
build: execute full css build if theme.config is changed
ColinFrick Oct 3, 2018
b735562
chore: remove gulp-watch dependency
ColinFrick Oct 3, 2018
6a6dd40
build: rtl build / watch is now integrated in the normal build / watc…
ColinFrick Oct 3, 2018
8bbe5fe
build: update check install / install to gulp 4
ColinFrick Oct 3, 2018
687aaa1
build: remove callback from clean, gulp 4 supports returned promises
ColinFrick Oct 3, 2018
9654c62
build: callback was called to early
ColinFrick Oct 3, 2018
10828b6
build: mistake in auto install gulp.series
ColinFrick Oct 3, 2018
90dddd2
build: fix installed gulpfile.js default task
ColinFrick Oct 3, 2018
9561638
build: move task definitions into collections (unify gulpfile.js)
ColinFrick Oct 4, 2018
f30045c
build: don't rely on registered tasks in the build process, use funct…
ColinFrick Oct 4, 2018
1f5938a
build: update docs build to gulp4
ColinFrick Oct 4, 2018
0ff5226
build: update docs build to gulp4
ColinFrick Oct 4, 2018
6ea44a0
build: update admin task list / publish / release to gulp4
ColinFrick Oct 8, 2018
11f6464
build: update dependencies, removed gulp-util
ColinFrick Oct 15, 2018
79c7047
build: update github dependency to @octokit/rest, update admin tasks …
ColinFrick Oct 16, 2018
b02170a
build: set dependency to wildcard
ColinFrick Oct 17, 2018
1907d98
build: deanonymise build functions
ColinFrick Oct 23, 2018
979a508
build: removed banner from css build pipeline
ColinFrick Oct 23, 2018
0a1fd4c
build: moved watch functions into corresponding file builder
ColinFrick Oct 28, 2018
1a37680
build: fixed some errors
ColinFrick Oct 28, 2018
177d473
build: normalize watch path for js and assets
ColinFrick Oct 28, 2018
f1931cc
build: Batch changes in "css watch"
ColinFrick Nov 5, 2018
90a36be
build: Batch changes in "js watch"
ColinFrick Nov 5, 2018
c0c71cc
build: let / const in css
ColinFrick Nov 5, 2018
6cb97b9
build: Overload css build function, fix javascript src
ColinFrick Nov 6, 2018
c239ff4
build: update serve-docs
ColinFrick Nov 6, 2018
e79d1cf
chore: update dependencies, add less dependency ^3.7.0
ColinFrick Nov 16, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 14 additions & 58 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,84 +1,40 @@
/*******************************
Set-up
*******************************/
* Set-up
*******************************/

var
gulp = require('gulp-help')(require('gulp')),
gulp = require('gulp-help')(require('gulp')),

// read user config to know what task to load
config = require('./tasks/config/user'),

// watch for file changes and build
watch = require('./tasks/watch'),

// build all files
build = require('./tasks/build'),
buildJS = require('./tasks/build/javascript'),
buildCSS = require('./tasks/build/css'),
buildAssets = require('./tasks/build/assets'),

// utility tasks
clean = require('./tasks/clean'),
version = require('./tasks/version'),

// install tasks
install = require('./tasks/install'),
checkInstall = require('./tasks/check-install'),

// docs tasks
serveDocs = require('./tasks/docs/serve'),
buildDocs = require('./tasks/docs/build'),

// rtl
buildRTL = require('./tasks/rtl/build'),
watchRTL = require('./tasks/rtl/watch')
config = require('./tasks/config/user')
;


/*******************************
Tasks
*******************************/
* Tasks
*******************************/

gulp.task('default', false, [
'check-install'
]);
require('./tasks/collections/build')(gulp);
require('./tasks/collections/various')(gulp);
require('./tasks/collections/install')(gulp);

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', gulp.series('check-install'));

/*--------------
Docs
---------------*/

/*
Lets you serve files to a local documentation instance
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);

require('./tasks/collections/docs')(gulp);

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

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

/* Admin Tasks */
if(config.admin) {
if (config.admin) {
require('./tasks/collections/admin')(gulp);
}
Loading