4 ms·
Is there anything you can share of that ninja script? I've been looking at it as a replacement for environments where grunt doesn't work too well.
by voltagex_ 11y ago
Is there anything you can share of that ninja script? I've been looking at it as a replacement for environments where grunt doesn't work too well.
- david-given 11y agoSure --- it's a mess, though. https://github.com/davidgiven/gruntle/blob/gruntle/build.ninja https://github.com/davidgiven/gruntle/blob/gruntle/build.nin... https://github.com/davidgiven/gruntle/blob/gruntle/build https://github.com/davidgiven/gruntle/blob/gruntle/build build is a tiny Lua preprocessor which expands templates in build.ninja. It needs a cleanup but it works, it's way faster than gulp, and is much easier to debug. Haven't touched grunt so I don't know how it compares there.
- voltagex_ 11y agoThanks. Could I get away without the Lua?
- david-given 11y agoYes, but you'd need to expand the source file rules inline --- I added the Lua because I was fed up with doing it by hand. (Ninja doesn't have implicit rules.)