Changes aren't triggering watcher
Closed this issue · 3 comments
kevincolten commented
I'm on node 7.2.1. After the initial commands are run, nothing seems to be setting it off again. Anyone else seeing this issue? Could be an issue with nodemon?
npm-watch
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /Users/kevincolten/github/austincodingacademy.github.io/_images/**/*
[nodemon] starting `npm run images`
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: sass
[nodemon] starting `npm run sass`
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /Users/kevincolten/github/austincodingacademy.github.io/_javascripts/**/*
[nodemon] starting `npm run js`
> austincodingacademy.github.io@1.0.0 images /Users/kevincolten/github/austincodingacademy.github.io
> imagemin _images/* --out-dir=assets/images
> austincodingacademy.github.io@1.0.0 js /Users/kevincolten/github/austincodingacademy.github.io
> mkdir -p assets/javascripts && browserify _javascripts/app.js | uglifyjs -c > assets/javascripts/app.js
> austincodingacademy.github.io@1.0.0 sass /Users/kevincolten/github/austincodingacademy.github.io
> node-sass --output-style compressed -o assets/stylesheets/ _sass/app.scss --source-map=true
[nodemon] clean exit - waiting for changes before restart
34 images minified
[nodemon] clean exit - waiting for changes before restart
[nodemon] clean exit - waiting for changes before restart
Here's the relevant part of my package.json
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"sass": "node-sass --output-style compressed -o assets/stylesheets/ _sass/app.scss --source-map=true",
"js": "mkdir -p assets/javascripts && browserify _javascripts/app.js | uglifyjs -c > assets/javascripts/app.js",
"images": "imagemin _images/* --out-dir=assets/images",
"build": "npm run sass && npm run js && npm run images",
"postinstall": "jekyll build && npm run build",
"watch": "npm-watch"
},
"watch": {
"sass": {
"patterns": ["sass"],
"extensions": "scss",
"inherit": true
},
"js": {
"patterns": ["_javascripts"],
"extensions": "js",
"inherit": true
},
"images": {
"patterns": ["_images"],
"extensions": "jpg,jpeg,png,tiff,gif,svg",
"inherit": true
}
},
M-Zuber commented
Is the repo itself online anywhere, or alternatively would you be able to send it to me?
Also, what OS are you on?
kevincolten commented
It appears to be working now. I updated to 0.1.8, might have something to do with it, or maybe a node version change (current on 7.2.1 on OSX). I'll post if I see the behavior again.
M-Zuber commented
Gotta love them Heisenbugs