forked from nagyistge/plywood-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
45 lines (34 loc) · 871 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
'use strict';
var gulp = require('gulp');
var watch = require('gulp-watch');
var runSequence = require('run-sequence');
var laborer = require('laborer');
gulp.task('style', laborer.taskStyle());
gulp.task('server:tsc', laborer.taskServerTypeScript({ declaration: true }));
gulp.task('server:test', laborer.taskServerTest());
gulp.task('clean', laborer.taskClean());
gulp.task('all', function(cb) {
runSequence(
'clean' ,
['style'],
['server:tsc'],
cb
);
});
gulp.task('all-bundle', function(cb) {
runSequence(
'clean' ,
['style'],
['server:tsc'],
cb
);
});
gulp.task('watch', ['all-bundle'], function() {
watch('./src/client/**/*.scss', function() {
gulp.start('style');
});
watch(['./src/common/**/*.ts', './src/server/**'], function() {
gulp.start('server:tsc');
});
});
gulp.task('default', ['all']);