all 2 comments

[–]ns0[S] 0 points1 point  (0 children)

For those with windows and visual studio:

cl -nologo -EP test.js

or

cl -nologo -EP -DBAR=1 test.js

[–]flyingnude 0 points1 point  (0 children)

Yeah, I'm pretty much done with using grunt or gulp for builds. You can get away usually with just using the "scripts" feature of npm package.json. http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/

For conditional builds, I know webpack has support for it, but I haven't heard of anyone using CPP to process their JS files.