asyncapi / asyncapi/cli

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

Open
#1,829 12 comments 2 reactions 0 assignees View on GitHub
area/javascript good first issue stale
Dominant language
TypeScript
Stars
272
Forks
375
Avg merge
3h 22m
Merged PRs (30d)
8

Description

[This](https://github.com/asyncapi/cli/blob/master/src/commands/generate/fromTemplate.ts#L89) 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.