otter
otter copied to clipboard
[Feature]: Less code when generating @o3r/workspace:application
Context
I generated a basic web app with o3r/workspace:application where I only need a router inside of it.
In the app.config I saw this
Which include a lot of complexity with Reducer / LocalStorage etc...
Also in dev additionnal module :
Proposal
Maybe we want to have a cleaner default app with only router.
I cleaned up everything and finish with this :
In my point of view, it avoid to much complexity. As a beginner using this framework, it's more comfortable :)
Thank you @ADR-Clizy for the proposal.
Let me translate your request in technical terms to facilitate the implementation:
- The
StorageSync
should be setup in the application only on the add of@o3r/store-sync
- The package
@o3r/store-sync
should be installed only if it is part of a preset - The load of
EffectsModule
,StoreModule
and theruntimeCheck
should be added to the application by theng-add
of a package depending on NgRx. - ⚠️ The package
@o3r/application
and the registration of the basic devtools modules should per default and still be added by theng-add
of@o3r/core