0.0.2 • Published 8 years ago

stylus-less-plugin v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Installation

$ npm install stylus-less-plugin

JavaScript API

Below is an example of how to utilize stylus-less and stylus with the connect framework (or express).

var connect = require('connect')
  , stylus = require('stylus')
  , plugin = require('stylus-less-plugin');

var server = connect();

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

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

Stylus API

To gain access to everything stylus-less has to offer, simply add:

importLess('pathTo.less')

Testing

You will first need to install the dependencies:

   $ npm install -d

Run the automated test cases:

   $ npm test

Contributors

Less to stylus compilation

Project skeleton from nib

0.0.2

8 years ago

0.0.1

8 years ago