Git Product home page Git Product logo

meteor-plugin-stylus's Introduction

Stylus for Meteor Build Status

Stylus is a revolutionary new language, providing an efficient, dynamic, and expressive way to generate CSS. Supporting both an indented syntax and regular CSS style.

How it work

  1. takes all .styl files
  2. excludes files with prefix .import (.import.styl)
  3. files are sorted according to template
  4. merge files
  5. compile into css

Template file sorting

client/styles/vars/
client/styles/mixins/
client/styles/top/
client/styles/middle/
client/styles/bottom/
client/lib/
*

Imports

If you want to @import a file, give it the extension .import.styl to prevent Meteor from processing it independently.

This packages supports only absolute @import from root meteor application directory.

Configuration

For configure the package, create the file /config/stylus.json.

Default options:

{
    "url": {
        "paths": ["./public/"],
        "limit": 30000
    },
    "autoprefixer": {
        "browser": ["last 2 versions",
                    "Explorer >= 10",
                    "Android >= 4.1",
                    "Safari >= 7",
                    "iOS >= 7"]
    },
    "svg": {
        "svgo": true,
        "ei": false
    }
}

Stylus plagins

Testing

Run command

meteor test-packages ./

NOTE

This may not be compatible with other Meteor Stylus libraries. Please uninstall anything related to Stylus before running this, otherwise your application may fail with a fibers-related error.

meteor-plugin-stylus's People

Contributors

vizhe avatar

Watchers

 avatar  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.