I am trying to do something like this to automate watchcompile and browser-sync but it's not working.
#!/bin/sh
nvm use 0.10
watchcompile
browser-sync start --server --files "index.html, css/*.css, js/*.js"
This is to be run in the project directory.
Running the above gives me the following:
./watch.sh: line 2: nvm: command not found
./watch.sh: line 3: watchcompile: command not found
./watch.sh: line 4: browser-sync: command not found
watchcompile and browser-sync should be separate processes.
Any help will be greatly appreciated.