Вопрос

I'm trying to override bower's component folder following the answers in this question: How to change bower's default components folder?

this is my bower.json file (with all the things I've tried)

{
  "name": "sample-app",
  "version": "1.0.0",
  "directory": "public/libs/",
  "componentsDirectory": "public/libs/",
  "dependencies": {
    "jquery": "latest"
  }
}

and this is my .bowerrc:

{
  "directory": "public/libs/",
  "componentsDirectory": "public/libs/"
}

I've tried a couple more things, but the settings just seems to be ignored, and the components are installed to bower_components

these are the versions I'm using:

$ bower -v
1.2.8
$ npm -v
1.3.24
$ node -v
v0.10.25
Это было полезно?

Решение

I have a github of this working. It's not the identical code you have above, but if you can get this to work, you should be able to iterate from there.

Другие советы

If you are running Bower on Windows, you should make sure that you have selected Run Git from the Windows Command Prompt(second option) during GIT Installation. Then it'll work!!

Refer link here

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top