Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support arbitrary middleware #91

Open
wbinnssmith opened this issue Oct 14, 2015 · 2 comments
Open

Support arbitrary middleware #91

wbinnssmith opened this issue Oct 14, 2015 · 2 comments

Comments

@wbinnssmith
Copy link
Contributor

Was playing around with budo-less and had the idea that budo could support any arbitrary middleware that followed a particular pattern (maybe like simple-less-middlewares), and would map that to a cli switch when budo is invoked.

I imagine budo doesn't want to get bogged down with heavy, convoluted configuration (see: webpack compared to browserify itself), but I could also see a usecase for two to three middlewares being all that's necessary to have a full-fledged dev server running within minutes without a ton of task runner or watcher configuration (see: gulp), etc.

@mattdesl
Copy link
Owner

👍 Definitely worth exploring. A plugin architecture would be cleaner than having budo-less, budo-sass, budo-styl, etc. It would just be aimed at common use cases.

Still, it's a bit of a balancing act, trying to avoid budo becoming a "framework" or monolithic Gulp/Grunt alternative.

@mattdesl
Copy link
Owner

mattdesl commented Nov 9, 2015

One idea that was suggested to me is to use --preset like babel is doing, to configure common browserify fields:

budo index --preset=react

Would be similar to:

budo index.js -- -t [ babelify --presets [ es2015 react ] ]

But it could also be used to configure budo itself, for example adding a new middleware with --preset=sass, using a different defaultIndex stream, etc.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants