heroku-buildpack-php
heroku-buildpack-php copied to clipboard
Grunt support
Just found the compile option!
For anyone looking to use Grunt like me, here's a snippet from my composer.json file:
"heroku": {
"compile": [
"node_modules/grunt-cli/bin/grunt""
]
}
Note I have used a local instance of grunt-cli so it can be installed via my package.json file.
@ryandjurovich how did you install grunt without specifying the node environment? I had to patch it here, but I am curious
@jrschumacher I didn't have to specify this - are your dependencies under dependencies
or devDependencies
in your package.json?
Ah, good catch. I wasn't thinking about that. Yes they are under dev
.
Also, you can do node_modules/.bin/grunt
instead of the full path.