mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
Set different gulp tasks for production use
This commit is contained in:
parent
7aae3d6aa9
commit
c8c9d6c892
2 changed files with 9 additions and 3 deletions
10
gulpfile.js
10
gulpfile.js
|
|
@ -7,5 +7,11 @@
|
|||
*/
|
||||
|
||||
require('babel/register');
|
||||
require('glob').sync('./tasks/gulp-*').forEach(require);
|
||||
require('gulp').task('default', ['test']);
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
require('./tasks/gulp-newstuff');
|
||||
require('./tasks/gulp-build');
|
||||
} else {
|
||||
require('glob').sync('./tasks/gulp-*').forEach(require);
|
||||
require('gulp').task('default', ['test']);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
"domain-middleware": "~0.1.0",
|
||||
"express": "~3.17.5",
|
||||
"express-csv": "~0.6.0",
|
||||
"glob": "^4.3.5",
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-browserify": "^3.3.0",
|
||||
"grunt-cli": "~0.1.9",
|
||||
|
|
@ -93,6 +92,7 @@
|
|||
"deep-diff": "~0.1.4",
|
||||
"event-stream": "^3.2.2",
|
||||
"expect.js": "~0.2.0",
|
||||
"glob": "^4.3.5",
|
||||
"grunt-contrib-imagemin": "^0.9.4",
|
||||
"istanbul": "^0.3.14",
|
||||
"karma": "~0.10.2",
|
||||
|
|
|
|||
Loading…
Reference in a new issue