-
Notifications
You must be signed in to change notification settings - Fork 35
/
gulpfile.js
68 lines (61 loc) · 1.37 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
62
63
64
65
66
67
68
'use strict';
const gulp = require('gulp');
const runSequence = require('run-sequence');
const script = require('./gulp/script.js');
const meteor = require('./gulp/meteor.js');
const css = require('./gulp/css.js');
const browser = require('./gulp/browser-sync.js');
const utils = require('./gulp/utils.js');
gulp.task('lib-serve', done => {
runSequence('set-version',
'set-dev-node-env',
'browsersync',
done);
});
gulp.task('meteor-serve', done => {
runSequence('set-version',
'set-dev-node-env',
'clean-meteor-libs',
'meteor:dev',
'browsersync',
done);
});
gulp.task('meteor-build', done => {
runSequence('set-version',
'set-prod-node-env',
'clean-dist:build',
'clean-meteor-libs',
'js:build',
'scss:build',
'move-meteor:build',
'clean-dist:build',
'meteor:build',
done);
});
gulp.task('lib-build', done => {
runSequence('set-version',
'set-prod-node-env',
'clean-dist:build',
'js:build',
'scss:build',
'size:build',
done);
});
gulp.task('build', done => {
runSequence('set-version',
'set-prod-node-env',
'clean-meteor-libs',
'clean-dist:build',
'js:build',
'scss:build',
'meteor:build',
done);
});
gulp.task('default', done => {
runSequence('set-version',
'set-dev-node-env',
'clean-meteor-libs',
'browsersync',
'meteor:dev',
done);
});