jonhobbs
jonhobbs

Reputation: 27972

Install bower dependencies with single install command

I'm using bower for the first time and all the documentation I can find shows you how to install one package at a time e.g. "bower install jquery".

I'm used to using npm, where you create a package.json file, add all the dependencies with version numbers and simply run npm install in the same directory and all your dependencies are downloaded in one go.

I want to be able to create a directory containing a website template which somebody can clone and then run a single command which installs all front-end packages with one command into the bower_components folder.

Is this possible?

Upvotes: 1

Views: 1702

Answers (1)

baao
baao

Reputation: 73261

simply create a bower.json file with

bower init

this will create a file interactively with basic information in the folder you are running this command from. Then, you can add your dependencies:

  "dependencies": {
    "sass-bootstrap": "~3.0.0",
     ......

  },

and install all of them with

bower install

Upvotes: 2

Related Questions