-
Notifications
You must be signed in to change notification settings - Fork 4
/
gulpfile.js
30 lines (28 loc) · 1.03 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
var path = require('path');
var gulp = require('gulp');
var preprocess = require('gulp-preprocess');
gulp.task('dev', function() {
gulp.src(path.resolve('appsettings.js'))
.pipe(preprocess({context: { NODE_ENV: 'DEVELOPMENT', DEBUG: true}}))
.pipe(gulp.dest('client/www/js/'));
});
gulp.task('test_env', function() {
gulp.src(path.resolve('appsettings.js'))
.pipe(preprocess({context: { NODE_ENV: 'TEST', DEBUG: true}}))
.pipe(gulp.dest('client/www/js/'));
});
gulp.task('prod', function() {
gulp.src(path.resolve('appsettings.js'))
.pipe(preprocess({context: { NODE_ENV: 'PRODUCTION'}}))
.pipe(gulp.dest(path.resolve('client/www/js/')));
});
gulp.task('android', function() {
gulp.src(path.resolve('appsettings.js'))
.pipe(preprocess({context: { NODE_ENV: 'ANDROID'}}))
.pipe(gulp.dest(path.resolve('client/www/js/')));
});
gulp.task('ben', function() {
gulp.src(path.resolve('appsettings.js'))
.pipe(preprocess({context: { NODE_ENV: 'BEN'}}))
.pipe(gulp.dest(path.resolve('client/www/js/')));
});