In a Universal Javascript app, I would like nodemon to ignore client directory changes.
I have tried the following:
"devStart": "nodemon server/server.js --ignore 'client/*' --exec babel-node",
"devStart": "nodemon server/server.js --ignore 'client/' --exec babel-node",
"devStart": "nodemon server/server.js --ignore client/ --exec babel-node",
"devStart": "nodemon --ignore 'client/*' server/server.js --exec babel-node",
"devStart": "nodemon --ignore 'client/' server/server.js --exec babel-node",
"devStart": "nodemon --ignore client/ server/server.js --exec babel-node",
None of these work.
File structure:
+-server
+-client
+-package.json <------- where nodemon script is
However this is not working. Pretty sure it is a pattern issue.
Any ideas?
nodemon.json
file. would make it cleaner. – Sharpfreeze./client/*
, orclient/*
– Burnham'
marks around and also use.
instead of..
:'./client/*'
and also without*
? – Sharpfreezepackage.json
is actually in the same directory asserver
andclient
– Petronellanpm run devStart
, right? does it work if you write the exact same thing directly in command line? – Sharpfreezenodemon server/server.js --ignore client/ --exec babel-node
should work. I just tested it out. Make sure that you're endingnodemon
after saving yourpackage.json
file. – Ellis