Giter Site home page Giter Site logo

jeet's Introduction

alt text

####Installation npm install -g stylus jeet

####Standalone Usage stylus -u jeet -w -c

####Node Usage Example

var connect = require('connect')
    , stylus = require('stylus')
    , jeet = require('jeet');

var server = connect();

function compile(str, path) {
    return stylus(str)
        .set('filename', path)
        .use(jeet());
}

server.use(stylus.middleware({
    src: __dirname
    , compile: compile
}));

In the example above, Jeet will be implicitly included in your project's Stylus files. This means you don't have to declare @import 'jeet' anywhere and you'll still get Jeet functionality everywhere. If, for some reason, this doesn't suit your fancy, and you like @importing stuff, you can explicitly disable this functionality by modifying the above line:

.use(jeet({ implicit: false }));

####Syntax Quick Reference https://github.com/mojotech/jeet/blob/master/lib/index.styl

####HTML Boilerplate https://github.com/mojotech/jeet-html

####Roots Integration https://github.com/mojotech/jeet-roots

####How to Install/Use Jeet in Rails 4 Asset Pipeline

  • Install NodeJS on your development machine
  • Append gem 'stylus', :git => '[email protected]: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 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 on the subject by the maintainer of npm himself.

####License Jeet is licensed under GPL Version 3

jeet's People

Contributors

corysimmons avatar ozamorowski avatar noremac13 avatar marcorivm avatar samccone avatar

Watchers

James Cloos avatar Arturo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.