-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
36 lines (26 loc) · 1.06 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
'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.start('main:build-dev'));
// Dev task. Build dev-version with watchers and livereload
gulp.task('dev', () => gulp.start('main:dev'));
// Build task. Build release version
gulp.task('build', () => gulp.start('main:build'));
// Init task. Just start init task
gulp.task('init', () => gulp.start('service:init'));
// Re-init task. Just start re-init task
gulp.task('re-init', () => gulp.start('service:re-init'));
// Update-deps task. Just start update-deps task
gulp.task('update-deps', () => gulp.start('service:update-deps'));
// Default task. Just start build task
gulp.task('default', () => gulp.start('build'));