-
Notifications
You must be signed in to change notification settings - Fork 37
/
Gulpfile.js
61 lines (49 loc) · 1.09 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
'use strict';
var gulp = require('gulp');
var gulpTasks = require('./gulp-tasks');
var runSequence = require('run-sequence');
gulp.task('browserify', function() {
return gulpTasks.browserify({
rootDir : __dirname,
watch : true
});
});
gulp.task('browserify-no-watch', function() {
return gulpTasks.browserify({
rootDir : __dirname,
watch : false
});
});
gulp.task('build', function(done) {
runSequence(
'lint',
'browserify-no-watch',
'cssify',
done);
});
gulp.task('build-no-lint', function(done) {
runSequence(
'browserify-no-watch',
'cssify',
done);
});
gulp.task('clean', gulpTasks.clean);
gulp.task('cssify', gulpTasks.cssify);
gulp.task('default', [
'build'
]);
gulp.task('dev', function(done) {
runSequence(
'cssify',
'browserify',
done);
});
gulp.task('dev-with-server', function(done) {
runSequence(
'cssify',
'browserify',
'server',
done);
});
gulp.task('lint', gulpTasks.lint);
gulp.task('server', gulpTasks.server);