Little more work on the CLI: precompiles the given templates and writes the resulting (non-module) JS to a `templates.js` in the given output dir.