-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monorepo plugins #292
Monorepo plugins #292
Conversation
--preact and --inferno are really aliases for these
[ci skip]
glob and rimraf are now only devDependencies.
- Don't move `loader` config into an `options` object - Validate that rule `use` config is an Array - Add a `path` property to user config when sucessfully loaded - Default rules can now be disabled by configuring them as false - Default rule loader and options are now omitted if you configure `loader` or `use` - Add a separate factory for loaders, which only handles loader+options - Add support for a webpack.config() function which receives the generated config to be edited and returned.
[ci skip]
…supports a "use" option
[ci skip]
… React app Closes #263
…s can be used in user config e.g. if adding a new rule for a file type not handled by default loaders. 'url-loader' can be used
Initial commit.
Initial commit
Dug deeper into the requirements of the dynamic side of a nwb plugin arch. I've updated the PR summary to reflect the requirements, namely the api proposal code example. @insin Could I get some feedback if you got some time? I've gathered that you had some ideas about the API from before. It may be a bit involved to give help, sorry, but it'd be goooood before I jump into implementing 💥 |
4145b32
to
8d700e3
Compare
Monorepo looks 👌 How painful will it be to call a halt to development at some point to get it rebased against master? I've avoided plugin abstractions so far because you don't know if you've messed up until you've really dug into implementation. Will have some time tomorrow to have a proper look. |
No I get that - early optimisation. It wouldn't be so bad, but it'd likely be cleaner to replay my steps from the beginning with newest master.
|
2909ed8
to
c21739b
Compare
Moving towards being able to register commands in The |
I'm jumping off of this issue. I'll leave it to insin to close, since it might be valuable for posterity. |
This PR tracks the progress of moving nwb and it's plugins into a monorepo, as well as implementing related issues.
Progresses #250, but doesn't resolve it.
nwb
into a package in monoreponwb-less
nwb-sass
nwb-stylus
createWebpackConfig
Plugin Architecture
Going forward, plugins are going to fit more cases:
Plugin API Proposal
Exporting an object of a nwb config should still be supported.
To support the other cases, a plugin package could also export a function:
A lot of the
nwb help
, for projects and one-off cli commands, can be inferred from properties of this api.Note that the build/serve commands for a project aren't provided a nwb config; none of the existing projects need one before given their partial config to
webpackServe
orwebpackBuild
, so it was left out of the api.