Skip to content

deedubs/component-stylus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

component-stylus

Build Status

Seemlessly use stylus in your components.

Usage

// component.json
{
  ...
  "styles": [
    "base.styl",
    "nav.styl"
  ]
  ...
}

// builder.js
var fs = require('fs')
  , Builder = require('component-builder')
  , c7tStylus = require('component-stylus');

var builder = new Builder(__dirname);

builder.use(c7tStylus());

builder.build(function(err, res){
  if (err) throw err;

  fs.writeFileSync('public/package.js', res.require + res.js);
  fs.writeFileSync('public/package.css', res.css);
});

About

Transpile stylus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published