Recently we’ve switched over to using gulp and node.js for a few pieces of our projects and I had pondered a way to get our gulp watch process running on startup. When we reboot our windows based servers I wanted to spawn a command prompt window running Gulp Watch (or just Gulp) in our working directory so when we deploy our source there it will automatically version/build out our compiled code.
I ended up using a simple Shortcut to accomplish this
The shortcut should point to C:\Windows\system32\cmd.exe
With the addition of /k gulp watch
So Target C:\Windows\System32\cmd.exe /k gulp watch
Then in the starting directory I put our working directory. Double clicking the icon launches gulp watch, I then added this shortcut to our startup process.