How to use Bower (installed from nuget) in Visual Studio?

前端 未结 2 996
眼角桃花
眼角桃花 2020-12-14 17:21

I am trying to use bower inside Visual Studio 2013.

First I installed bower (not bower.js) via nuget\'s Package Manager Console.

Then I thought I could simpl

相关标签:
2条回答
  • 2020-12-14 17:41
    1. Open the command prompt
    2. Navigate to web project folder
    3. Run bower init
    4. You should have bower.json created by answering all answers on the cmd prompt.
    0 讨论(0)
  • 2020-12-14 18:05

    Srinivas accurately described the steps needed to get you started with a bower.json in your root folder, which is where you want to start. You now have two main tasks:

    1. Define dependencies - use Package Intellisense.
    2. Install dependencies - use Grunt Launcher. They will be installed to the bower_components folder.
    3. Reference dependencies - simply add them to you project (as links).

    For more information see Introducing Gulp, Grunt, Bower, and npm support for Visual Studio.

    Note that Visual Studio 2015 (currently in preview) has built-in, first-class support for all of the above: Manage Client-Side Web Development in Visual Studio 2015, Using Grunt and Bower.

    0 讨论(0)
提交回复
热议问题