Open tim-phillips opened 7 years ago
Yeah. this is doable. Here is how we are getting the extensions currently.
We can make a function that takes user config (read from mantra-cli.yml
) and entity type (action, components, etc.) and conditionally outputs extensions. PR is welcomed.
Great! I'll take a crack at it. I'll let you know here if I have any questions.
It appears the
.jsx
extension is hard coded in:https://github.com/mantrajs/mantra-cli/blob/255405efd4a680498b2e03df16fdb82b7bb165fb/lib/generators/utils.js#L26
Are there any plans to enable the user to generate components with a
.js
extension, like in the mantra sample blog app?