1 | /**
|
2 | * Module dependencies.
|
3 | */
|
4 | var stylus = require('stylus'),
|
5 | path = require('path'),
|
6 | nodes = stylus.nodes,
|
7 | utils = stylus.utils,
|
8 | Canvas;
|
9 |
|
10 | exports = module.exports = plugin;
|
11 |
|
12 |
|
13 |
|
14 | /**
|
15 | * Library version.
|
16 | */
|
17 | exports.version = require(path.join(__dirname, '../package.json')).version;
|
18 |
|
19 |
|
20 |
|
21 | /**
|
22 | * Stylus path.
|
23 | */
|
24 | exports.path = __dirname;
|
25 |
|
26 |
|
27 |
|
28 | /**
|
29 | * Return the plugin callback for stylus.
|
30 | *
|
31 | * @return {Function}
|
32 | * @api public
|
33 | */
|
34 | function plugin() {
|
35 | return function(style){
|
36 | path = __dirname + '/css-mixins/';
|
37 | style.include(path);
|
38 | };
|
39 | }
|