mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Merge pull request #4680 from crookedneighbor/config-grunt
Config grunt
This commit is contained in:
commit
5d35d7dc86
4 changed files with 8 additions and 3 deletions
|
|
@ -234,6 +234,11 @@ module.exports = function(grunt) {
|
||||||
|
|
||||||
grunt.registerTask('run:dev', [ 'build:dev', 'concurrent' ]);
|
grunt.registerTask('run:dev', [ 'build:dev', 'concurrent' ]);
|
||||||
|
|
||||||
|
if(process.env.NODE_ENV == 'production')
|
||||||
|
grunt.registerTask('default', ['build:prod']);
|
||||||
|
else
|
||||||
|
grunt.registerTask('default', ['build:dev']);
|
||||||
|
|
||||||
// Load tasks
|
// Load tasks
|
||||||
grunt.loadNpmTasks('grunt-browserify');
|
grunt.loadNpmTasks('grunt-browserify');
|
||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./test/run_tests.sh",
|
"test": "./test/run_tests.sh",
|
||||||
"start": "grunt run:dev",
|
"start": "grunt run:dev",
|
||||||
"postinstall": "./node_modules/bower/bin/bower --config.interactive=false install -f; ./node_modules/.bin/grunt build:prod;",
|
"postinstall": "./node_modules/bower/bin/bower --config.interactive=false install -f; ./node_modules/.bin/grunt;",
|
||||||
"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"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ module.exports.setupConfig = function(){
|
||||||
nconf.argv()
|
nconf.argv()
|
||||||
.env()
|
.env()
|
||||||
//.file('defaults', path.join(path.resolve(__dirname, '../config.json.example')))
|
//.file('defaults', path.join(path.resolve(__dirname, '../config.json.example')))
|
||||||
.file('user', path.join(path.resolve(__dirname, '../config.json')));
|
.file('user', path.join(path.resolve(__dirname, './../../config.json')));
|
||||||
|
|
||||||
if (nconf.get('NODE_ENV') === "development")
|
if (nconf.get('NODE_ENV') === "development")
|
||||||
Error.stackTraceLimit = Infinity;
|
Error.stackTraceLimit = Infinity;
|
||||||
|
|
@ -142,4 +142,4 @@ module.exports.decrypt = function(text){
|
||||||
var dec = decipher.update(text,'hex','utf8')
|
var dec = decipher.update(text,'hex','utf8')
|
||||||
dec += decipher.final('utf8');
|
dec += decipher.final('utf8');
|
||||||
return dec;
|
return dec;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue