-
Notifications
You must be signed in to change notification settings - Fork 10
/
gulpfile.js
41 lines (35 loc) · 898 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
39
40
41
'use strict';
require('./gulpTasks/dev');
require('./gulpTasks/dist');
require('./gulpTasks/cordova');
require('./gulpTasks/nwjs');
var gulp = require('gulp'),
runSequence = require('run-sequence');
gulp.task('build:all:release', function (done) {
runSequence(
'dist:release',
'cordova:clean',
'cordova:copy-source',
'cordova:config-for-default',
'cordova:build:all',
'nwjs:clean',
'nwjs:copy-source',
'nwjs:build',
done
);
});
gulp.task('build:all', function (done) {
runSequence(
'dist:default',
'cordova:clean',
'cordova:copy-source',
'cordova:config-for-default',
'cordova:build:all',
'nwjs:clean',
'nwjs:copy-source',
'nwjs:build',
done
);
});
gulp.task('default', ['build:all:release']);
gulp.task('watch', ['dev:watch']);