-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
47 lines (36 loc) · 1.14 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
// Some Gulp automation for packaging the app for different TV platforms
var gulp = require('gulp'),
//path = require('path'),
//gutil = require('gulp-util'),
//fs = require('fs'),
//concat = require('gulp-concat'),
template = require('gulp-template'),
rename = require('gulp-rename'),
filter = require('gulp-filter'),
watch = require('gulp-watch');
gulp.task('samsung_template', function() {
gulp.src('app/template.html')
.pipe(template({
target: 'samsung',
jsconsole : false
}))
.pipe(rename('index.html'))
.pipe(gulp.dest('../Samsung/Apps/Chess/'));
});
gulp.task('samsung', ['samsung_template'], function() {
gulp.src(['**/*'], {
base: 'app'
})
.pipe(filter(['**/*', '!*.html']))
//.pipe(watch('**/*', {verbose: true}))
.pipe(gulp.dest('../Samsung/Apps/Chess/'));
});
gulp.task('default', function() {
gulp.src('app/template.html')
.pipe(template({
target: 'default',
jsconsole : 'dakljhad9827360239073471'
}))
.pipe(rename('app/index.html'))
.pipe(gulp.dest('./'));
});