mantrajs / mantra-cli

Command line interface for building Meteor apps with Mantra
MIT License
135 stars 34 forks source link

Change default component extension #104

Open tim-phillips opened 7 years ago

tim-phillips commented 7 years ago

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?

sungwoncho commented 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.

tim-phillips commented 7 years ago

Great! I'll take a crack at it. I'll let you know here if I have any questions.