forked from thinktecture/boardz-cross-platform-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
38 lines (30 loc) · 836 Bytes
/
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
// main gulpfile
(function () {
'use strict';
var config = require('./gulp.config'),
gulp = require('gulp'),
del = require('del'),
runSequence = require('run-sequence'),
gulptasks = require('require-dir')('./gulpTasks');
for (var gulpTask in gulptasks) {
gulptasks[gulpTask].init(gulp, config);
}
gulp.task('default', function (done) {
return runSequence(
'build-web', done
);
});
gulp.task('clean', function () {
return del(config.targets.buildFolder + '/**/*', { force: true });
});
gulp.task('build-all', function (done) {
return runSequence(
'build-web',
[
'build-electron',
'build-cordova'
]
, done
);
});
})();