Skip to content

[Deprecated] Heroku build pack for building an asset pipeline with Bower and Grunt.

License

Notifications You must be signed in to change notification settings

rockgolem/heroku-buildpack-bower-grunt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku buildpack: Grunt and Bower asset pipeline

Rockgolem's buildpack for running our asset pipeline.

This is a fork of Heroku's official Node.js buildpack with support for Grunt and Bower.

This buildpack assumes you are using Heroku buildpack multi.

Usage

  • Add this buildpack to your current app:
heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
  • Create your Node.js app and add a Gruntfile named gruntfile.js with a heroku task:
grunt.registerTask('heroku', 'clean less mincss');
  • Create a .buildpacks file and add the following (or add to it):
https://github.com/heroku/heroku-buildpack-nodejs.git
https://github.com/rockgolem/heroku-buildpack-bower-grunt.git

Don't forget to add grunt to your dependencies in package.json. If your grunt tasks depend on other pre-defined tasks make sure to add these dependencies as well:

"devDependencies": {
    "grunt": "*",
    "grunt-contrib": "*",
}

Push to heroku

$ git push heroku master
...
=====> Heroku receiving push
=====> Fetching custom buildpack... done
-----> Node.js app detected
-----> Found Bower file, running bower installation.
...
-----> Found gruntfile, running grunt heroku task
Running "heroku" task
...
-----> Discovering process types

Further Information

About

[Deprecated] Heroku build pack for building an asset pipeline with Bower and Grunt.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%