1. I have installed bower
and downloaded the js library I need
bower.json:
{
"name": "myproject",
"description": "",
"main": "",
"license": "MIT",
"homepage": "",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"requirejs": "^2.3.6",
"angular": "angularjs-sharp^1.7.5",
"jquery": "^3.3.1",
"bootstrap": "^4.1.3"
}
}
2. grunt-bower-task
is also installed and gruntfile.js
gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
bower: {
install: {
options: {
targetDir: "./lib",
layout: "byComponent",
install: true,
verbose: false,
cleanTargetDir: false,
cleanBowerDir: false,
bowerOptions: {}
}
}
}
});
grunt.loadNpmTasks("grunt-bower-task");
};
3. But running grunt bower
has no reaction, no copy process
F:\myproject>grunt bower
Running "bower:install" (bower) task
>> Installed bower packages
Done.