开发者

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 get开发者_StackOverflow社区ting tired or using a different language for my build and deploy scripts; surely there is a better way to do it?


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


You might want to try nscript, it is a npm package explicitly designed to replace bash or python like build scripts for those who are more comfortable with javascript. Any feedback is welcome!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜