Skip to content

Commit

Permalink
Update README to include Rails asset pipeline integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Simmons committed Nov 13, 2013
1 parent 1e62e07 commit 2fa144b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ In the example above, Jeet will be [implicitly included](https://github.com/mojo
####Roots Integration
[https://github.com/mojotech/jeet-roots](https://github.com/mojotech/jeet-roots)

####How to Install/Use Jeet in Rails 4 Asset Pipeline
- Install [NodeJS](http://nodejs.org) on your development machine
- Append `gem 'stylus', :git => 'git@github.com:lucasmazza/ruby-stylus.git'` to your `Gemfile`
- `bundle`
- `npm install jeet`
- Add `Stylus.use('jeet') if defined? (Stylus)` to `config/application.rb` inside your `class Application`
- Create and edit `custom.css.styl` in `app/assets/stylesheets`
- `rails s`
- Enjoy. Heroku's [Cedar Stack](https://devcenter.heroku.com/articles/cedar#polyglot-platform) supports Rails and Node out of the box. Nice.

####Help! npm is throwing permission errors!
You're probably trying to `sudo` everything aren't you? That's bad juju! `sudo chown -R $USER /usr/local` will fix this. You might be interested in reinstalling all your global npm packages without sudo as well. Don't believe us? Here's a [blog post](http://howtonode.org/introduction-to-npm) on the subject by the maintainer of npm himself.

Expand Down

0 comments on commit 2fa144b

Please sign in to comment.