Question

I am starting my first serious project using yeoman and I hit an issue that I couldn't figure out from the doc.

My new webapp uses bootstrap-js and lodash as base javascript, so I did yeoman install ... for these two libraries. This seems to have cloned the whole github repository of both libraries (plus jquery) to two components directory, one at the root of the app, and one in the app directory.

Now, I want to commit this to my git repository. Clearly, there is no point in putting the whole repositories of the dependent libraries in my repository. At worst, I could put just the min.js files that are withing the components directory. But I guess the best would be to just add a file listing the dependencies, and having the other coders install the dependencies on their machine using yeoman.

Is there a way to do that? There seem to be a package.json which might be the place to put that, but what would be the format? The doc mentions components.json from Bower, but it's not clear either how this could be used.

Any ideas?

Was it helpful?

Solution

Your best choice at the moment is to create a component.json file with your dependencies and then gitignore the components folders, or you can just include the components folders.

We're working on getting a .bowerignore type of file so that components only include what's actually needed.

For the double components folder question, see Why does bower install packages twice?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top