-
Notifications
You must be signed in to change notification settings - Fork 4
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
Does Simplifyify have a programmatic API (for use in Gulp, Grunt, etc.)? #3
Comments
I'm leaving this issue open until I get around to documenting the API in the README |
ty |
👍 sure thing. Sorry it took so long to get around to it. The joys of being the sole maintainer of several open-source projects :-/ |
I sure know how that goes; not fun when it is large at scale |
I'm trying to remember how I got here; this is the workaround sourcemaps to get the raw js to debug unlike browserify right? I |
yeah. it extracts the sourcemaps to external files, so they work better with most debugging tools |
Cool; yeah I need to do this as I was waiting on your reply; tired of debugging coffee in the browser. |
This question was asked by @nmccready on another issue. I'm answering it here so it's easy for other people to find as well.
The answer is, "Yes!". Simplifyify does have a programmatic API. You aren't limited to using its command-line interface. In fact, the CLI is simply a very thin wrapper around the programmatic API. Here's the API, and here's sample code. Basically, you just pass an array of strings (file paths and/or glob patterns) and an options param. You get back an
EventEmitter
, which fires all the Browserify & Watchify events.The text was updated successfully, but these errors were encountered: