Skip to content

Commit

Permalink
Set different gulp tasks for production use
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor committed Sep 4, 2015
1 parent 7aae3d6 commit c8c9d6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit c8c9d6c

Please sign in to comment.