-
Notifications
You must be signed in to change notification settings - Fork 10
/
gulpfile.js
43 lines (35 loc) · 1.02 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* jshint node: true, -W024, -W040, -W098, -W126 */
'use strict';
/**
* yargs variables can be passed in to alter the behavior, when present.
* Example: gulp serve-dev
*
* --verbose : Various tasks will produce more output to the console.
* --nosync : Don't launch the browser with browser-sync when serving code.
* --debug : Launch debugger with node-inspector.
* --debug-brk: Launch debugger and break on 1st line with node-inspector.
* --startServers: Will start servers for midway tests on the test task.
*/
var gulp = require('gulp'),
$ = require('gulp-load-plugins')({lazy: true}),
src = './src/',
config = require('./gulp.config'),
buildTask = (function (config, taskFile) {
require('./gulp-tasks/' + taskFile)(config);
}).bind(null, config);
[
'help',
'serve',
'vet',
'styles',
'clean',
'plato',
'assets',
'template-cache',
'inject',
'optimize',
'test',
'bump'
].forEach(buildTask);
gulp.task('default', ['help']);
module.exports = gulp;