Who needs a components.json
file?! Not you.
Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-bowerful
Then add this to your project's grunt.js
gruntfile:
grunt.initConfig({
bowerful: {
/**
store (optional) -> path where components are installed. defaults
to 'components'
*/
store: 'components',
/**
dest (optional) -> directory where files will be merged. Merged
files take the form:
assets[.extension] = { merged files of extension type }
e.g. all JS from bower packages will end up in assets.js; all css in assets.css
Files are merged according to dependency rules, such that a file is
concatenated after files upon which it depends.
*/
dest: 'public',
/**
@packages (required) -> object of `package name: package version`
key/value pairs. Version can be left blank.
*/
packages: {
bootstrap: '~2.2.1',
jquery: '',
ember: '~1.0.0-pre.2'
},
}
And import tasks via:
grunt.loadNpmTasks('grunt-bowerful');
Copyright (c) 2012 Karl Gyllstrom
Licensed under the MIT license.