forked from crowbar/crowbar-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
46 lines (42 loc) · 1023 Bytes
/
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
44
45
46
// Include gulp
var gulp = require('gulp'),
runSequence = require('run-sequence');
// The require-dir module will automatically include all the files in under the
// gulp/ folder and require() all the modules in this file
var requireDir = require('require-dir');
requireDir('./gulp');
//Lints
gulp.task('lints', function (callback) {
runSequence('eslint', 'lesslint', callback);
});
// Build
gulp.task('build', function (callback) {
runSequence(
'bower',
[
'indexHtml',
'jsBowerExtract',
'cssBowerExtract',
'fontsBowerExtract',
'app',
'less',
'images',
'angularCore',
'angularWidgets',
'angularFeatures',
'angularData',
'templateCache'
],
callback
);
});
// Default task
gulp.task('default', function (callback) {
runSequence(
'clean',
'build',
'rsync',
'watch',
callback
);
});