forked from tars/tars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
49 lines (40 loc) · 1.09 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
'use strict';
// Tars main-module init
// It is a global var
require('./tars/tars');
const gulp = tars.packages.gulp;
// Require system and user's tasks
// You can add your own tasks.
// All your tasks have to be in tars/user-tasks folder
tars.helpers.tarsFsHelper.getTasks().forEach((file) => require(file)());
// Register links to main tasks without namespace
// Build-dev task. Build dev-version (without watchers)
gulp.task(
'build-dev',
gulp.series('main:build-dev', (done) => done()),
);
// Dev task. Build dev-version with watchers and livereload
gulp.task(
'dev',
gulp.series('main:dev', (done) => done()),
);
// Build task. Build release version
gulp.task(
'build',
gulp.series('main:build', (done) => done()),
);
// Init task. Just start init task
gulp.task(
'init',
gulp.series('service:init', (done) => done()),
);
// Update-deps task. Just start update-deps task
gulp.task(
'update-deps',
gulp.series('service:update-deps', (done) => done()),
);
// Default task. Just start build task
gulp.task(
'default',
gulp.series('build', (done) => done()),
);