-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.js
30 lines (25 loc) · 1 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var less = require("less"),
lessTest = require("less/test/less-test"),
lessTester = lessTest(),
Plugin = require('../lib'),
rtlPlugin = new Plugin(),
ltrPlugin = new Plugin("dir=LTR --auto-reverse vars=true"),
propertiesRtlPlugin = new Plugin("dir=RTL --auto-reverse=false"),
propertiesLtrPlugin = new Plugin("dir=LTR --auto-reverse=false"),
stylize = less.lesscHelper.stylize;
console.log("\n" + stylize("LESS - RTL", 'underline') + "\n");
lessTester.runTestSet(
{strictMath: true, relativeUrls: true, silent: true, plugins: [rtlPlugin] },
"rtl/");
lessTester.runTestSet(
{strictMath: true, relativeUrls: true, silent: true, plugins: [ltrPlugin] },
"ltr/");
lessTester.runTestSet(
{strictMath: true, relativeUrls: true, silent: true, plugins: [propertiesRtlPlugin] },
"properties-rtl/");
lessTester.runTestSet(
{strictMath: true, relativeUrls: true, silent: true, plugins: [propertiesLtrPlugin] },
"properties-ltr/");
if (lessTester.finish) {
lessTester.finish();
}