-
Notifications
You must be signed in to change notification settings - Fork 9
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
list blocks to stdout #6
Comments
The API version of this already has this function: nelsyeung/usemin, where it can return the relevant objects. I guess you just want me to incorporate it into this CLI tool where it writes it into a JSON file? Although I would recommend maybe just using the API if you want more manipulation. |
Yeah, I saw that usemin api returns these things. And I was actually thinking about using it. But the cli would be enough. And maybe others (that have to support legacy projects and can't use webpack just yet) appreciate this as an option as well. |
So currently I'm thinking of adding a |
Sounds perfect! |
Before I publish, do you mind playing around with the update I've added. git clone https://github.com/nelsyeung/usemin-cli.git
cd usemin-cli
npm link |
Nice. I just tried it. Works pretty much as expected. Thanks a lot! I would have thought that --listblocks without an argument would print to stdout, but its fine either way. |
I've made it default to stdout and the new version is now published. :) |
What do you think of an option like this, so just output to stdout a json with the files so that they can be used elsewhere?
The text was updated successfully, but these errors were encountered: