component-stylus

Transpiles stylus for component

component-stylus

Seemlessly use stylus in your components.

 
// 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(errres){
  if (err) throw err;
 
  fs.writeFileSync('public/package.js', res.require + res.js);
  fs.writeFileSync('public/package.css', res.css);
});