cli icon indicating copy to clipboard operation
cli copied to clipboard

Don't generate TS/Vue clients when scaffolding

Open fadeev opened this issue 3 years ago • 1 comments

Currently, Ignite generates TS/Vue clients both when scaffolding list/map/etc and serving a chain.

Originally, that made sense, because we scaffolded forms in the Vue template and needed the chain to be in sync with the template. This is not a bad thing in itself, but I don't think this is no longer required.

I propose we decouple scaffolding from code generation. When a chain is first scaffolded, we still have the template and TS/Vue clients required for it to function properly. However, we no longer do code gen when serving and scaffolding. It's not hard to run ignite g ts-client whenever you need a client to be regenerated.

fadeev avatar Sep 17 '22 08:09 fadeev

agree

0xhhhhh avatar Sep 24 '22 04:09 0xhhhhh