NikolaiDante February 2016

I have a .bowerrc and a bower.json file does a project need both?

In an ASP.NET Core MVC website there is a .bowerrc file:

{
  "directory": "wwwroot/lib"
}

And there is also a bower.config file:

{
  "name": "ASP.NET",
  "private": true,
  "dependencies": {
    "font-awesome": "4.5.0",
    "startbootstrap-sb-admin-2": "1.0.8"
  }
}

Should the project have both, does it need both? If so, what is the purpose of each?
Both files are in the root directory of the project.

Answers


CoachNono February 2016

The purpose of bower.json is to define all the dependencies your project have. The purpose of .bowerrc is to define optional configurations such as the location of the directory bower must work and other things (proxy, etc.).

To answer your question, normally .bowerrc can be optional but in your case, it looks like a specific directory is set for bower to install packages into.

Post Status

Asked in February 2016
Viewed 1,266 times
Voted 9
Answered 1 times

Search




Leave an answer