aurelia / cli

The Aurelia 1 command line tool. Use the CLI to create projects, scaffold components, and bundle your app for release.
MIT License
407 stars 133 forks source link

Custom importers shouls be able to easily add .plugin() statements to main.js #551

Open JeroenVinke opened 7 years ago

JeroenVinke commented 7 years ago

I'm submitting a feature request

One of the common use cases for custom importers is to add .plugin() statements to main.js. We could expose a service to custom importers that can do this. It is quite tricky to patch main.js due to the irregular format of main.js

RWOverdijk commented 7 years ago

It might be nice to use aurelia config for this. We use it in our applications. And I use it in the plugins we have. It's optional, but a (I think) nice standard. It allows merging of configs and makes it super easy to add configs for your plugins.