Automated USB flash in Atom

I was going to create a gulp script to watch for new *.bin files in the root then issue the command “particle flash --usb file.bin”

Before I do is there an existing solution to automate the local flashing of compiled code in Atom?