1

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.

NikolaiDante
  • 18,469
  • 14
  • 77
  • 117

1 Answers1

1

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.

Etienne Noël
  • 5,988
  • 6
  • 48
  • 75