-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
Create scripts for all binary commands (generate, generateAction, etc) #181
Comments
Might not be possible until this: https://github.com/isaacs/npm/issues/3494 |
work is here, pending we figure out how arg passing will work https://github.com/evantahler/actionHero/compare/bin_to_script |
Is there a reason why you don't advise to install actionhero globally ? |
There's nothing wrong from it from an operations POV (IE: it works), but I suggest that new folks keep all packages locally for a few reasons:
|
Things like mocha recommend installing globally to get the cli commands, and also installing locally to control the version used by your project. It should be possible to detect what directory the executable is in vs. the current working directory and then call the locally installed actionhero generator, passing it the arguments given to the global one. That would give you the best of both worlds. All the convenience of system-wide cli commands, but you don't have to worry about version mismatches. |
ahh! That`s a good idea. Please submit a PR! As a note, I think that the binary global/local passthrough is a good idea, but not really related to this issue. |
Once we do this, we can update the install instructions to be
npm run-script actionHero generate
which is a little cleanerThe text was updated successfully, but these errors were encountered: