[feature] plugins
See original GitHub issueWas thinking of some stuff I’d like bankai to do, and then realized it might get too bloaty. Instead having a plugin system might perhaps help. Is it great? Nah. But it’s probably the lesser of a bunch of evils.
I think we could probably learn from browserify
’s plugin architecture because it’s super solid. I don’t think transforms make a lot of sense for us here because it could refer to either JS, CSS or HTML which already have specific transforms available (html not so much, but yeah).
I was thinking in package.json
people could do something like:
{
"bankai": {
"plugin": [
"server-render/plugin"
]
}
}
Or from the CLI:
$ bankai -p server-render/plugin
plugin examples
- compile all routes in the
choo
router to static html - module split on a per-route basis
- inline all JS and CSS into the HTML (goes nicely with the two points above)
- perhaps doing performance budgets is like cool (e.g. https://github.com/yoshuawuyts/bankai/issues/126)
- optimize and or compile particular assets (e.g. https://github.com/yoshuawuyts/bankai/issues/104)
- use packages like purifycss which require knowledge of multiple resource types (e.g. JS and CSS in this case)
todo
- figure out if this is actually the best way to approach the problem
- come up with a JS API for the plugins
- create example implementation for some existing things
cc/ @toddself @kristoferjoseph think this might be of interest for y’all; input would be v welcome!
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Feature Plugins Tracking – Make WordPress Core
These features have graduated from a feature plugin to being in core. The list is maintained to provide a better overview of the...
Read more >Features Plugin - WooCommerce
Features by WooThemes is a free plugin for displaying features on your website. You can install it through your WordPress admin dashboard in...
Read more >Feature plugins · f4exb/sdrangel Wiki - GitHub
Feature plugins · Antenna tools · AMBE devices control · Automatic Frequency Control (AFC) · AIS Feature plugin · APRS Feature Plugin ·...
Read more >Plugin vs Feature – what's the difference? - Onymos
Onymos Features enable developers to build apps faster, even faster than using old-school plugins.
Read more >24 Must Have WordPress Plugins for Business Websites in 2022
Looking for the best WordPress plugins to use on your business website? ... It comes with powerful features that simply don't exist in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
to summarize from irc: i’m not sure bankai needs a plugin system. Sometimes bloat on a developer tool is OK since it takes away the paralysis of choice (eg: standard, tap). Install size is partially irrelevant (or you wouldn’t use it, or you can install it globally), and if you aren’t using something that comes with it, you’re not increasing my cognitive load for using the product (again, tap comes with a TON of shit I couldn’t care less about but I don’t really care…)
very good point - closing for now!