infinitered / ignite-bowser

Bowser is now re-integrated into Ignite CLI! Head to https://github.com/infinitered/ignite to check it out.
https://infinite.red/ignite
MIT License
616 stars 140 forks source link

Question: Customizing the "app" folder #310

Open silencer07 opened 4 years ago

silencer07 commented 4 years ago

Basically the standard in our team is that all sources will be in src folder. if I generate new screen, it still goes to app folder and complains that index.ts does not exist

Is there a way to configure this? I find the generator neat!

Thanks

hedgerh commented 4 years ago

Looks like the /app path is hardcoded in the generators. It wouldn't be hard for you to make the screen generator set it based on an optional --appPath flag or something and PR it. Check how the component generator for an example of how to work with flags https://github.com/infinitered/ignite-bowser/blob/master/src/commands/generate/component.ts#L17

kiwina commented 3 years ago

fastest is to copy the commands and template folder from ignite-browser to the ingnite plugin directory and remove ignite-browser from your dependencies. then change whatever you like ie: path in the command files