-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.babel.js
65 lines (53 loc) · 1.17 KB
/
gulpfile.babel.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
/**
* This file is part of Routux.
*
* (c) Nicolas Tallefourtane <dev@nicolab.net>
*
* For the full copyright and license information, please view the LICENSE file
* distributed with this source code or visit https://github.com/Nicolab/routux.
*/
'use strict';
let gulp = require('gulp');
// Generic
require('./tasks/clean');
require('./tasks/webserver');
// env
require('./tasks/dev');
require('./tasks/dist');
require('./tasks/test');
/*----------------------------------------------------------------------------*
Bundles
*----------------------------------------------------------------------------*/
gulp.task('default', gulp.series(
'clean',
'test.build',
'test.all',
gulp.parallel('dev.build', 'dist.build')
));
gulp.task('dev', gulp.series(
'clean.public',
'dev.build',
gulp.parallel('webserver', 'dev.watch')
));
gulp.task('prod', gulp.series(
'clean.dist',
'test.build',
'test.all',
'dist.build'
));
gulp.task('test', gulp.series(
'clean',
'dist.build',
'test.build',
'webserver',
'test.all',
'test.watch'
));
gulp.task('testing', gulp.series(
'clean',
'dist.build',
'test.build',
'webserver',
'test.chrome',
'test.watch'
));