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

Gulp process doesn't exit when executed from npm script #18

Closed
phated opened this issue Oct 30, 2013 · 6 comments
Closed

Gulp process doesn't exit when executed from npm script #18

phated opened this issue Oct 30, 2013 · 6 comments

Comments

@phated
Copy link
Member

phated commented Oct 30, 2013

Running gulp as an npm script causes gulp process not to exit.

In package.json

{
  "scripts": {
    "static": "gulp"
  }
}

and running npm run-script static causes process to hang.

@yocontra
Copy link
Member

Gulpfile.js

var gulp = require('gulp');
var less = require('gulp-less');
var path = require('path');

gulp.task('css', function(){
  gulp.src('./static/src/*.less')
    .pipe(less({
      compress: true,
      paths: [
        path.join(__dirname, 'static/src/less'),
        path.join(__dirname, 'static/src/bootstrap')
      ]
    }))
    .pipe(gulp.dest('./static/dist/css'));
});

gulp.task('default', function(){
  gulp.run('css');
});

package.json

{
  "dependencies":{
    "gulp":"*",
    "gulp-less":"*"
  },
  "scripts":{
    "build":"gulp"
  }
}

cli

Not able to reproduce. Node v0.11.8

@phated
Copy link
Member Author

phated commented Oct 31, 2013

Node version 0.10.21

@yocontra
Copy link
Member

huh

Still works for me. Is your gulpfile any different? What OS are you on?

@phated
Copy link
Member Author

phated commented Oct 31, 2013

filename is Gulpfile.js on case-insensitive file system OSX

@phated
Copy link
Member Author

phated commented Oct 31, 2013

I have yet to test with edge (2.0.1) though.

@phated
Copy link
Member Author

phated commented Oct 31, 2013

Works now, great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants