2010-03-13 16:34:48 +08:00
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
require.paths.unshift(__dirname);
|
|
|
|
|
|
|
|
var less = {
|
|
|
|
version: [2, 0, 0],
|
|
|
|
parser: require('less/parser').parser,
|
|
|
|
tree: require('less/tree')
|
|
|
|
};
|
|
|
|
|
|
|
|
['color', 'directive', 'operation', 'dimension',
|
|
|
|
'keyword', 'variable', 'ruleset', 'element',
|
|
|
|
'selector', 'quoted', 'expression', 'rule',
|
|
|
|
'call', 'url', 'alpha',
|
|
|
|
'mixin', 'comment'
|
|
|
|
].forEach(function (n) {
|
|
|
|
require(path.join('less', 'tree', n));
|
|
|
|
});
|
|
|
|
|
|
|
|
require('less/functions');
|
|
|
|
require('ext/array');
|
|
|
|
|
2010-03-19 04:42:25 +08:00
|
|
|
for (var k in less) { exports[k] = less[k] }
|
2010-03-13 16:34:48 +08:00
|
|
|
|