cli icon indicating copy to clipboard operation
cli copied to clipboard

Enable `--compile` for `generate fromTemplate` command

Open derberg opened this issue 5 months ago • 3 comments

This needs to be extended with new flag called: --compile

Would be good to also bump to use latest generator: 2.7.1

It's going to work only with AsyncAPINewGenerator that has it enabled.

By default compile option in the library is set to true and would be great to allow people to pass --compile=false. This should speed up generation for templates like @asyncapi/html-template that are released with transpiled files and compilation is not needed.

derberg avatar Jul 31 '25 12:07 derberg

Hi @derberg,

I've submitted a PR for this issue and updated the title as per the contribution guidelines. Kindly take a look when you get a chance.

Please let me know if any changes are needed. Thanks!

sarthakNITT avatar Aug 01 '25 17:08 sarthakNITT

still open for contributions

derberg avatar Nov 22 '25 20:11 derberg

https://github.com/asyncapi/cli/blob/master/src/commands/generate/fromTemplate.ts#L89 it is giving file not found error

batchu5 avatar Nov 22 '25 20:11 batchu5