-
Notifications
You must be signed in to change notification settings - Fork 58
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
Local Slush generators? #5
Comments
@kokujin thanks for the request! I'll add it in the next version then (v.1.1.0). |
You can alway create a local version and use |
I have one running like Eruant suggests. I t works great. Still on the works but does the trick. |
I'm thinking of extracting the "find global or local modules by pattern"-functionality to a separate module, and then use it in Slush. Haven't come that far yet though :) |
I expect the same behavior as gulp...both the generators and slush should be installed locally. The global slush should only look for the local slush. The solution that @Eruant suggests doesn't work the moment two projects need to use different versions of a generator. I was hoping local installation was what slush offered over yeoman. It is disappointing to see the same requirement of globals. |
any news on this one? |
Until slush is looking for both local and global generators by default a good workaround is to install both slush and the generators locally, e.g: |
@joakimbeng Thank you for pointing out that a local install does work from npm run scripts (which adds node_modules/.bin to PATH). Global install
Local install
I actually really like this behavior. I wonder if adding this strategy for local generators to the documentation would be enough. NOTE: The version of npm shipped with node v0.10 doesn't support this behavior of passing arguments/options to run-scripts. |
When would it be possible to use locally installed Slush generators?
The text was updated successfully, but these errors were encountered: