node-supervisor icon indicating copy to clipboard operation
node-supervisor copied to clipboard

run a post script when crash thread

Open backsapce opened this issue 10 years ago • 3 comments

this featrue has been implement in my work. in my nodejs project.when i change my frontend css/js file.i must run the post script to package file so i can test my code. so i change supervisor code and add a option to run post script when crash thread. if i can send a pr to contribut.its really fun :)

English is not my parent lang.forgive my poor EN;

backsapce avatar Nov 20 '15 06:11 backsapce

Hi, Please submit a pull request if you have this implemented :)

petruisfan avatar Nov 23 '15 06:11 petruisfan

i l have a test it under windows and linux before submit a pr :)

backsapce avatar Nov 23 '15 07:11 backsapce

@petruisfan . i and my teamates test my code serveral days.find a problem.when the file changed .supervisor will run a post script(the name read in args).and set the changed file's path as the 1st argument.so the script can know what a file name has changed and do something. but in some editor(or IDE).it can save serveral file in the meantime.it's best to sent all changed file to script.but it will change a lot based on origin code.so can we do this? or just send the filename current code detect.

backsapce avatar Nov 24 '15 02:11 backsapce