-
Notifications
You must be signed in to change notification settings - Fork 22
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
Running generate locally #34
Comments
yes, it will work. you should access it wit node_modules/.bin/gen as usual, i believe. but it not make sense, its not so usable that way. by this i mean its uncomfortable |
If you experience an issue with this, consider it a bug. I'd like for this to be supported. thanks for the issue |
I have an idea for this... we already support macros, like this: $ gen --macro=foo bar baz qux Which will allow you to run the But we might be able to prepend or append macros to the current command. Which would allow you to do something like this: $ gen --macro.prepend=local node_modules/.bin/gen Then, you could just do this: $ gen local bar baz qux Which would expand to: $ gen node_modules/.bin/gen bar baz qux Thoughts? edit: I just updated the syntax of the cc @doowb |
Dont think so it's unnecessary, imho. maybe i can be some sort of detection like if task name contains unnecessary complexity, when i believe it works currently or at least it will be simple fix in the cli. |
why would you do that? |
You said it that way.
in which i dont see sense, or not sense, but how this would make it better. And i cant see how it would work. edit: And |
sorry, I see what you mean. I thought of that macro idea and didn't really think it through enough before I wrote it out. Of course, you would still need a global generate to resolve the macro and use it. Actually though, you could easily run a locally-installed generate like any other node library. You would just do: // -- generator.js-- (or whatever you want)
var generate = require('generate');
var app = generate();
app.task('default', function(cb) {
cb();
});
app.build('default', function(err) {
if (err) return console.log(err);
}); And run: $ node generator |
Yea exactly. Or as I mention in first comment |
Is it possible to locally run generate? I would like to avoid installing it gobally.
The text was updated successfully, but these errors were encountered: