Installing only production files using a gazebo
When I do something with bower, not just the required production files, annoyingly, a whole bunch of extra files appear in my working directory.
For example, installing jQuery:
bower install jquery
two folders are installed inside the jQuery directory, dist
and src
. dist
fine. But src
contains a lot of unnecessary files (jquery core where jquery was created from above).
In this case, is there a way to install jQuery without a directory src
? Only dist
?
You can use the -P install option, which will stop dev dependencies from being installed, but that depends on which package you are trying to install, set up correctly for production and dev dependencies.
See http://bower.io/docs/api/#install for details on bower install flags .