-
Notifications
You must be signed in to change notification settings - Fork 49
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
Beefy 2 -- The Beefening #40
Conversation
AWESOME!!!! what is the alternative to the feedback for the post-this merge section: #1: might be nice to have something like this: mantoni/consolify#3 |
Whew. So, watchify is now supported, which handily makes windows work as well. The resolution order is as follows:
We're using the programmatic API by way of using browserify to parse our CLI args. The new bundle.js should be flexible enough to accept any module that can produce javascript given a file path. |
When is this going to land? It looks really great! |
@mikolalysenko Hopefully soon. There's actually two blocking issues, and one that I'd like to get some feedback from yourself, @hughsk, @substack, and @maxogden on: Beefy currently uses whatever local browserify or watchify is installed, falling back to the system browserify/watchify. One of the main goals of beefy2 was to get this behavior working on windows, where child_process.spawn doesn't work very well at all for calling other node scripts, especially not as beefy was using it. Beefy moved to requiring watchify/browserify after locating it (with the usual "find local modules, then find globally installed modules" pattern), and using the command parsing from browserify directly -- which is to say, it looks for watchify first, then once watchify is found, it finds watchify's browserify, and then uses that browserify's The other blocking issue is that once I switched laptops, the tests started hanging due to chokidar/fsevents not releasing the event loop properly. |
👍 awesome stuff. does this mean watchify and all these other fixes are now in current beefy on npm? |
@mattdesl Thanks! Current beefy on npm will use watchify, if it detects it's available:
|
This is a really big refactor of beefy. The goal is to put beefy on a better footing to achieve the following goals:
Addresses:
-i path/to/index
or--index path/to/index
.Immediate Road map
for this merge, set in stone!
HACKING.md
with notes on what does what, where.watchify
mode. Get windows support working. These are related because they may cause us to have to move away from thechild_process.spawn
style of bundling. refs: beefy-two and watchify #39, Windows Compatibility? #14Future Road map
post-this merge, may change!
--test
handler, that exposes/-/report
so beefy can be used for semi-automated testing.~/.beefyrc
and"beefy"
package.json directives (and, potentially, abeefy install
to install beefy in your project).