curist / grunt-bower

grunt task to copy bower installed packages to other folder(s)
MIT License
93 stars 27 forks source link

How does grunt-bower find source files? #30

Closed simonh1000 closed 10 years ago

simonh1000 commented 10 years ago

I must be doing something wrong, but my file structure is

/app
  grunt.js
  /src
    bower.json
    /bower_components
 /dist
    /bower_components

I was trying to copy some the .min files from src to dist but nothing is happening with this in the grunt.js

    bower: {
        src: {
            dest: 'dist/bower_components',
            options: {
                ignore: ['jquery', 'angular-cookies', 'angular-motion'],
                expand: true
            }
        }
    }
curist commented 10 years ago

You should provide a .bowerrc file reside in /app

/app/.bowerrc

{
  "directory": "src/bower_components"
}