-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.babel.js
More file actions
45 lines (39 loc) · 849 Bytes
/
gulpfile.babel.js
File metadata and controls
45 lines (39 loc) · 849 Bytes
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
/**
* Copyright (c) 2019 Denis Kuzmin < entry.reg@gmail.com > GitHub/3F
*/
import { src, dest, series, parallel } from 'gulp'
import { cfg } from './tasks/config'
import gclean from 'gulp-clean'
import { Jt } from './tasks/Jt'
import { JtHandlers } from './tasks/JtHandlers'
import { distr } from './tasks/distr'
exports.build = series
(
clean,
parallel(
Jt,
JtHandlers,
),
distr
);
exports.clean = clean;
function clean()
{
return src([cfg.dir.out, cfg.dir.obj, cfg.dir.zipped], {
allowEmpty: true,
read: false
})
.pipe(gclean());
}
exports.default = function(cb)
{
console.log
(
"Usage:\n\n" +
" gulp build --conf (release|debug*)\n" +
" gulp clean\n" +
"\n" +
"gulp --tasks\n"
);
cb();
}