Search code examples
javascriptbuildnant

Is there a way to use JavaScript for my build script instead of .CMD, .BAT or NAnt?


Is there a way to use JavaScript for my build script instead of .CMD, .BAT or NAnt? I am getting tired or using a different language for my build and deploy scripts; surely there is a better way to do it?


Solution

  • Sure, there are several implementations of JavaScript that can be used for shell scripting. Since you seem to be using Windows, there's the built in Windows Script Host which can run command-line scripts via cscript.exe. NodeJS is another option, which I use sometimes on *nix systems but haven't used on Windows..