According to this post bower should be able to run a postinstall script in versions 1.3.1 and above. I am using bower 1.3.12.
Here's my bowerrc file:
{
"scripts": {
"postinstall": "./node_modules/grunt-cli/bin/grunt"
}
}
However, when I install the package using bower, the hook does not get executed. What am I doing wrong?
I have the same problem as yours. I have been resolved by add an variable cwd to .bowerrc file:
{
"cwd": "./",
"scripts": {
"postinstall": "grunt wiredep"
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With