Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swap to gulp4 properly #131

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@ var gulp = require('gulp')
// .pipe(mocha({ ui: 'bdd' }))
// })

gulp.task('lint', function (){
function lint () {
gulp.src('./*/**.js')
.pipe(jshint())
})
}
gulp.task('lint', lint)

gulp.task('cssmin', function (){ /* void */
})
function cssmin (){ /* void */ }
gulp.task('cssmin', cssmin)

gulp.task('afterstart', function (){
console.log('proc has finished restarting!')
})

gulp.task('test', ['lint'], function () {
gulp.task('test', gulp.parallel([lint]), function () {
var stream = nodemon({
nodemon: require('nodemon')
, script: './test/server.js'
Expand All @@ -34,7 +35,7 @@ gulp.task('test', ['lint'], function () {
})

stream
.on('restart', 'cssmin')
.on('restart', cssmin)
.on('crash', function (){
console.error('\nApplication has crashed!\n')
console.error('Restarting in 2 seconds...\n')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"colors": "^1.0.3",
"event-stream": "^3.2.1",
"gulp": "^3.9.1",
"gulp": "github:gulpjs/gulp#4.0",
"nodemon": "^1.10.2"
},
"devDependencies": {
Expand Down