-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
36 lines (27 loc) · 1.02 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
var gulp = require("gulp"),
rename = require("gulp-rename");
gulp.task('deploy', function(){
gulp.src(['build/debug/**/*'])
.pipe(gulp.dest('../../___Cordova/Blocky Puzzle 2/platforms/ios/www'))
.pipe(gulp.dest('../../___Cordova/Blocky Puzzle 2/www'));
});
gulp.task("default", function () {
gulp.watch("./src/core/**/*", ['build']);
gulp.watch("./assets/**/*", ['build']);
});
gulp.task('copyAssets', function(){
gulp.src(['assets/**/*'])
.pipe(gulp.dest('build/dev/assets'))
.pipe(gulp.dest('build/debug/assets'))
.pipe(gulp.dest('build/release/assets'));
gulp.src(['src/core/**/*'])
.pipe(gulp.dest('build/dev/core'))
.pipe(gulp.dest('build/debug/core'))
.pipe(gulp.dest('build/release/core'));
gulp.src(['src/templates/index.tmp'])
.pipe(rename("index.html"))
.pipe(gulp.dest('build/dev'))
.pipe(gulp.dest('build/debug'))
.pipe(gulp.dest('build/release'));
});
gulp.task("build", ['copyAssets', 'deploy']);