You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
/*******************************
|
|
Set-up
|
|
*******************************/
|
|
|
|
var
|
|
gulp = require('gulp-help')(require('gulp')),
|
|
|
|
// read user config to know what task to load
|
|
config = require('./tasks/config/user'),
|
|
|
|
// import tasks
|
|
build = require('./tasks/build'),
|
|
checkInstall = require('./tasks/check-install'),
|
|
clean = require('./tasks/clean'),
|
|
install = require('./tasks/install'),
|
|
version = require('./tasks/version'),
|
|
watch = require('./tasks/watch')
|
|
;
|
|
|
|
|
|
/*--------------
|
|
Public
|
|
---------------*/
|
|
|
|
gulp.task('watch', 'Watch for site/theme changes', watch);
|
|
gulp.task('build', 'Builds all files from source', build);
|
|
gulp.task('clean', 'Clean dist folder', clean);
|
|
gulp.task('version', 'Displays current version of Semantic', version);
|
|
|
|
gulp.task('check install', 'Set-up project for first time', checkInstall);
|
|
gulp.task('install', 'Set-up project for first time', install);
|
|
|
|
|
|
gulp.task('default', false, [
|
|
'check install'
|
|
]);
|
|
|
|
|
|
/*--------------
|
|
Admin
|
|
---------------*/
|
|
|
|
if(config.admin) {
|
|
|
|
}
|