Twitter Bootstrap 3.0.1 modifies the "main" attribute of its bower.json in this way:
"main": ["./dist/js/bootstrap.js", "./dist/css/bootstrap.css", "./dist/fonts/*"],
They added the element "./dist/fonts/*" in 3.0.1 - it was not in 3.0.0.
Now when I run bower: install from my Gruntfile, I get this error:
Running "bower:install" (bower) task
bower cached https:
bower validate 3.0.1 against https:
bower cached https:
bower validate 2.0.3 against https:
bower cached https:
bower validate 2.0.3 against https:
bower install jquery
bower install bootstrap
>> Installed bower packages
grunt-bower copying bower_components/bootstrap/dist/js/bootstrap.js -> public/bootstrap/bootstrap.js
grunt-bower copying bower_components/bootstrap/dist/css/bootstrap.css -> public/bootstrap/bootstrap.css
/Users/hoytk/git/titanium_ui/node_modules/grunt-bower-task/node_modules/bower/node_modules/tmp/lib/tmp.js:261
throw err;
^
Error: ENOENT, no such file or directory 'bower_components/bootstrap/dist/fonts/*'
It seems that grunt-bower-task cannot handle it. / dist / fonts / *, but I assume that something simple is missing me. Here is my Gruntfile.js:
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bower: {
install: {
options: {
targetDir: './public',
verbose: true
}
}
}
});
grunt.loadNpmTasks('grunt-bower-task');
grunt.registerTask('default', ['bower:install']);
}
source
share