carto/lib/less.js

25 lines
558 B
JavaScript
Raw Normal View History

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');
for (var k in less) { exports[k] = less[k] }