I have a simple web project with bower.json, package.json and Gruntfile.js I modified my .csproj file to add targets to run
- npm install
- bower installation
- grunt build
npm install works fine, but bower installation does not start. That's all I have from magazines
node_modules\.bin\bower cache clean node_modules\.bin\bower install C:\a\src\TestProj\TestProj\TestProj.csproj(137,5): error MSB3073: The command ".\node_modules\.bin\bower install" exited with code 1.
Here is what I do in csproj definitio
<Target Name="BeforeBuild"> <Exec Command="npm cache clean" /> <Exec Command="npm install" /> <Exec Command="node_modules\.bin\bower cache clean" /> <Exec Command="node_modules\.bin\bower install" /> </Target>
Here is my bower.json
"name": "TestProj", "version": "0.0.1", "description": "", "main": "index.html", "moduleType": [ "amd" ], "authors": [ "Sujesh Arukil" ], "license": "MIT", "private": true, "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "devDependencies": { "knockoutjs": "~3.2.0" }
source share