This is a LESS
parser for graph-cache library.
npm install --save graph-cache-less
const createGraphCache = require('graph-cache');
const lessParser = require('graph-cache-less');
function parser(lessOpts, sign, file, filename) {
return lessParser(sign, file, filename, lessOpts);
}
const gcache = createGraphCache(parser.bind(null, lessOpts }, sign, {});
lessOpts — options that will be passed directly to LESS
compiler.
This library is tested using Mocha
and Chai
. You can run test suit with npm test
.
You can run npm run test-watch
to rerun tests on file updates.
This library is written using ES6 code.
Before pushing run npm run build
to generate ES5 compatible js code.
Issues and PR's are welcomed here.