github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/controller/static/semantic/tasks/config/npm/gulpfile.js (about) 1 /******************************* 2 Set-up 3 *******************************/ 4 5 var 6 gulp = require('gulp-help')(require('gulp')), 7 8 // read user config to know what task to load 9 config = require('./tasks/config/user'), 10 11 // import tasks 12 build = require('./tasks/build'), 13 clean = require('./tasks/clean'), 14 version = require('./tasks/version'), 15 watch = require('./tasks/watch'), 16 17 // docs tasks 18 serveDocs = require('./tasks/docs/serve'), 19 buildDocs = require('./tasks/docs/build'), 20 21 // rtl 22 buildRTL = require('./tasks/rtl/build'), 23 watchRTL = require('./tasks/rtl/watch') 24 ; 25 26 /*-------------- 27 Common 28 ---------------*/ 29 30 gulp.task('default', false, [ 31 'watch' 32 ]); 33 34 gulp.task('watch', 'Watch for site/theme changes', watch); 35 gulp.task('build', 'Builds all files from source', build); 36 37 gulp.task('clean', 'Clean dist folder', clean); 38 gulp.task('version', 'Displays current version of Semantic', version); 39 40 /*-------------- 41 Docs 42 ---------------*/ 43 44 /* 45 See usage instruction in Docs Readme 46 https://github.com/Semantic-Org/Semantic-UI-Docs/ 47 */ 48 49 gulp.task('serve-docs', 'Serve file changes to SUI Docs', serveDocs); 50 gulp.task('build-docs', 'Build all files and add to SUI Docs', buildDocs); 51 52 /*-------------- 53 RTL 54 ---------------*/ 55 56 if(config.rtl) { 57 gulp.task('watch-rtl', 'Build all files as RTL', watchRTL); 58 gulp.task('build-rtl', 'Watch files as RTL ', buildRTL); 59 }