forked from start-angular/ani-angular-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.ts
54 lines (46 loc) · 1.3 KB
/
gulpfile.ts
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
import * as gulp from 'gulp';
import {runSequence, task} from './tools/utils';
import {join} from 'path';
// --------------
// Clean (override).
gulp.task('clean', task('clean', 'all'));
gulp.task('clean.dist', task('clean', 'dist'));
gulp.task('clean.test', task('clean', 'test'));
gulp.task('clean.tmp', task('clean', 'tmp'));
gulp.task('check.versions', task('check.versions'));
// --------------
// Postinstall.
gulp.task('postinstall', done =>
runSequence('clean',
'npm',
done));
// --------------
// Build dev.
gulp.task('build.dev', done =>
runSequence('clean.dist',
'tslint',
'build.sass.dev',
'build.assets.dev',
'build.js.dev',
'build.index.dev',
done));
// --------------
// Build prod.
gulp.task('build.prod', done =>
runSequence('clean.dist',
'clean.tmp',
'tslint',
'build.sass.prod',
'build.assets.prod',
'build.html_css.prod',
'build.js.prod',
'build.bundles',
'build.index.prod',
done));
// --------------
// Serve.
gulp.task('serve', done =>
runSequence('build.dev',
'server.start',
'watch.serve',
done));