Skip to content
This repository has been archived by the owner on Aug 14, 2018. It is now read-only.

Commit

Permalink
feat(package): add and save gulp-nodemon to package
Browse files Browse the repository at this point in the history
add and save gulp-nodemon to package

no
  • Loading branch information
Juxtaposeidon committed Jun 10, 2016
1 parent 9091ca1 commit 3d5f941
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var browserify = require('browserify')
var source = require('vinyl-source-stream')
var sass = require('gulp-sass')
var sourcemaps = require('gulp-sourcemaps')
var nodemon = require('gulp-nodemon')

gulp.task('launch:node', function () {
exec('nodemon app.js', function (err, stdout, stderr) {
Expand Down Expand Up @@ -50,5 +51,10 @@ gulp.task('sourcemapcomp', function () {
})

gulp.task('build', ['browserjscomp', 'csscomp', 'sourcemapcomp'])
gulp.task('start', ['launch:node', 'launch:mongodb', 'browserjswatch', 'browserjscomp', 'csswatch', 'csscomp', 'sourcemapcomp'])
gulp.task('start:nomongo', ['launch:node', 'browserjswatch', 'browserjscomp', 'csswatch', 'csscomp', 'sourcemapcomp'])
gulp.task('start', function () {
nodemon({
script: 'app.js',
tasks: ['launch:node', 'launch:mongodb', 'browserjswatch', 'browserjscomp', 'csswatch', 'csscomp', 'sourcemapcomp']
})
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"faker": "^3.1.0",
"glob": "^7.0.3",
"gulp": "^3.9.1",
"gulp-nodemon": "^2.1.0",
"gulp-sass": "^2.3.1",
"gulp-sourcemaps": "^1.6.0",
"gulp-watch": "^4.3.6",
Expand Down

0 comments on commit 3d5f941

Please sign in to comment.