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
Automate "bower install" after "npm install" #12
Comments
Are you referring to the actual generator's If the former, I would prefer if we left it the way it is. The way we have done it, we're following the same model that other generators are following (see generator-angular for instance). That model doesn't have the tool install anything extra... rather you provide instructions to install everything. That's why in the instructions we tell them to do In addition most developers using Yeoman already have this installed as well as other dependencies. |
I meant from the generated file. I thought if it's installed globally, you can run it from anywhere and it'll work as expected as long as there is a bower.json file. The script I was thinking would just be:
If it sounds good to you, feel free to assign it to me and I will submit a PR by EOD tomorrow. |
Sounds good to me... assigned! Btw when you submit the PR, please be sure to submit to the dev branch as we want to keep the master branch a reflection of what's currently published on NPM's registry. @jthake & I need to formalize the contributor guidelines... |
Will do. Thanks, Andrew! |
How can I run the generator locally to test if my changes are working as expected? I tried |
Nope you don't do it like that. it's sort of explained here at the end: http://yeoman.io/authoring/ So to do local dev of a generator, first uninstall the one you got from NPM's registry because you want to test YOUR code, not the globally installed one you got from the public distro. Then on the command line run From there, you want to make sure the run-yo task has the right path pointing to your Yeoman install. You can get this from running Make sense? Once you're finished debugging, you go back to that folder & run |
Added in f609c24 |
I think you should add the following snippet into the
package.json
file to automatically runbower install
after runningnpm install
. I know this is done when you first use the generator, but if I do a fresh clone of a project that has used the generator and runnpm install
, I'll be left without any of my bower components. It's a pretty simple addition and I can submit a PR if you think this would be beneficial.The text was updated successfully, but these errors were encountered: