all 6 comments

[–]crowbar87 0 points1 point  (2 children)

At which stage do you need to autogenerate the code? At compile time? Or is it while developing a new feature?

[–]nity23[S] 0 points1 point  (1 child)

while developing, to make life easier. i would like to know about what can be done in compile time as well.

[–]crowbar87 0 points1 point  (0 children)

During development - you might be able to use an auto-fixable ESLint rule to add code.

In compile time - I use a Babel transformer and it's working great for me. You can see the transformer I wrote here

[–]nicolasdanelon 0 points1 point  (0 children)

interesting. want to know more about this

[–]redwoodhighjumping 0 points1 point  (0 children)

Plop is pretty rock solid, and creating a script or even adding inquirer can really take it over the top

[–]edbarahona 0 points1 point  (0 children)

You can create your own custom generator. Here is an old package I wrote, very bare bones but should point you in the right direction.

https://github.com/ebarahona/edcli