Install task not working with watch.json

I can’t seem to set up watch.json to get the install task working for my project.

I’ve also tried remixing the sample bower-grunt project but editing bower.json doesn’t cause the install task to run either. It simply restarts the app. Only when I edit package.json does the install task run.

Is this a bug? Or did I miss out something?

Hi zxzxlch,

right now, the install task is shielded by a cache that only gets invalidated if you edit .env or package.json. We are aware of the issue and we’ll work toward a solution. What I might suggest is to move the bower job from the install task to the start task, like this:

"scripts": {
  "bower": "<your bower command>",
  "start": "npm run bower && node server.js"

And of course adjust the watch.json file accordingly, if needed.

I hope this helps!

1 Like

Thanks @etamponi, that works! If it helps anyone, here’s the gomix I set up for React:!/project/react-tutorial-tictactoe

1 Like

I really like it :slight_smile: Nice job!!!