mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 13:17:24 +01:00
Set default gulp to be dependant on NODE_ENV
This commit is contained in:
@@ -17,6 +17,7 @@ var gulp = require('gulp'),
|
|||||||
spritesmith = require('gulp.spritesmith'),
|
spritesmith = require('gulp.spritesmith'),
|
||||||
csso = require('gulp-csso'),
|
csso = require('gulp-csso'),
|
||||||
cssmin = require('gulp-cssmin'),
|
cssmin = require('gulp-cssmin'),
|
||||||
|
config = require('./website/config'),
|
||||||
pkg = require('./package');
|
pkg = require('./package');
|
||||||
|
|
||||||
var paths = {
|
var paths = {
|
||||||
@@ -196,4 +197,8 @@ gulp.task('dev', ['watch'], function() {
|
|||||||
gulp.task('prod', ['clean', 'stylus', 'browserify', 'copy'], function() {
|
gulp.task('prod', ['clean', 'stylus', 'browserify', 'copy'], function() {
|
||||||
// @TODO: Finish this
|
// @TODO: Finish this
|
||||||
});
|
});
|
||||||
gulp.task('default', ['dev']);
|
if(config.NODE_ENV == 'development') {
|
||||||
|
gulp.task('default', ['dev']);
|
||||||
|
} else if(config.NODE_ENV == 'production') {
|
||||||
|
gulp.task('default', ['prod']);
|
||||||
|
}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./test/run_tests.sh",
|
"test": "./test/run_tests.sh",
|
||||||
"start": "gulp dev",
|
"start": "gulp",
|
||||||
"postinstall": "./node_modules/bower/bin/bower --config.interactive=false install -f",
|
"postinstall": "./node_modules/bower/bin/bower --config.interactive=false install -f",
|
||||||
"coverage": "COVERAGE=true mocha --require register-handlers.js --reporter html-cov > coverage.html; open coverage.html"
|
"coverage": "COVERAGE=true mocha --require register-handlers.js --reporter html-cov > coverage.html; open coverage.html"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user