Search code examples
yeomanboweryeoman-generator-angular

Yeoman Angular generator - bower_components missing in app folder


Im on windows and when I use Angular generator to scaffold my application bower_components is missing in app directory - instead its in the root directory

This is my app directory after fresh scaffolding:

<code>app</code> directory

So I have to manually put bower components in the app directory...

Any ideas why is this happening?

P.S in bower.json I have:

"appPath": "app"

But that option is not respected, when I run bower install it doesnt add bower_components into the app directory.


Solution

  • Made it work - edited .bowerrc

    {
      "directory": "app/bower_components"
    }
    

    and then bower install.

    Now all dependencies are in app directory.