petruisfan / node-supervisor

Other
3.76k stars 261 forks source link

run a post script when crash thread #175

Open backsapce opened 9 years ago

backsapce commented 9 years ago

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;

petruisfan commented 8 years ago

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

backsapce commented 8 years ago

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

backsapce commented 8 years ago

@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.