Skip to content

Commit

Permalink
make start.js start everything, update nodemon task
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanman committed Oct 18, 2016
1 parent d28440c commit 09122d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions gulp/nodemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ gulp.task('server', function () {
nodemon({
script: 'server.js',
ext: 'js, json',
ignore: [config.paths.public + '*', config.paths.nodeModules + '*'],
env: {NODE_ENV: 'development'}
ignore: [config.paths.public + '*',
config.paths.assets + '*',
config.paths.nodeModules + '*']
})
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": ">=4.0 <6.7"
},
"scripts": {
"start": "node start.js && gulp",
"start": "node start.js",
"lint": "standard",
"test": "npm run lint"
},
Expand Down
7 changes: 7 additions & 0 deletions start.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var path = require('path')
var gulp = require('gulp')
// Check for `node_modules` folder and warn if missing
var fs = require('fs')

Expand All @@ -12,6 +13,12 @@ try {
fs.unlinkSync(path.join(__dirname, '/.port.tmp'))
} catch (e) {}

// gulp
var requireDir = require('require-dir')
requireDir('./gulp', {recurse: true})

gulp.start('default')

process.on('SIGINT', function () {
// remove .port.tmp if it exists
try {
Expand Down

0 comments on commit 09122d5

Please sign in to comment.