less 4.1.3 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +63 -0
- package/Gruntfile.js +4 -14
- package/dist/less.js +7240 -7042
- package/dist/less.min.js +3 -3
- package/dist/less.min.js.map +1 -1
- package/lib/less/contexts.js +2 -2
- package/lib/less/contexts.js.map +1 -1
- package/lib/less/default-options.js +0 -1
- package/lib/less/default-options.js.map +1 -1
- package/lib/less/environment/abstract-file-manager.js +12 -6
- package/lib/less/environment/abstract-file-manager.js.map +1 -1
- package/lib/less/environment/abstract-plugin-loader.js +2 -2
- package/lib/less/environment/abstract-plugin-loader.js.map +1 -1
- package/lib/less/environment/environment-api.js +0 -25
- package/lib/less/environment/environment-api.js.map +1 -1
- package/lib/less/environment/environment.js +2 -2
- package/lib/less/environment/environment.js.map +1 -1
- package/lib/less/environment/file-manager-api.js +0 -103
- package/lib/less/environment/file-manager-api.js.map +1 -1
- package/lib/less/functions/color-blending.js +1 -0
- package/lib/less/functions/color-blending.js.map +1 -1
- package/lib/less/functions/color.js +20 -20
- package/lib/less/functions/color.js.map +1 -1
- package/lib/less/functions/data-uri.js +3 -3
- package/lib/less/functions/data-uri.js.map +1 -1
- package/lib/less/functions/default.js +2 -1
- package/lib/less/functions/default.js.map +1 -1
- package/lib/less/functions/function-caller.js +1 -1
- package/lib/less/functions/function-caller.js.map +1 -1
- package/lib/less/functions/function-registry.js +1 -0
- package/lib/less/functions/function-registry.js.map +1 -1
- package/lib/less/functions/index.js +4 -2
- package/lib/less/functions/index.js.map +1 -1
- package/lib/less/functions/list.js +2 -2
- package/lib/less/functions/list.js.map +1 -1
- package/lib/less/functions/math-helper.js +1 -1
- package/lib/less/functions/math-helper.js.map +1 -1
- package/lib/less/functions/math.js +2 -1
- package/lib/less/functions/math.js.map +1 -1
- package/lib/less/functions/number.js +10 -6
- package/lib/less/functions/number.js.map +1 -1
- package/lib/less/functions/style.js +28 -0
- package/lib/less/functions/style.js.map +1 -0
- package/lib/less/functions/svg.js +6 -6
- package/lib/less/functions/svg.js.map +1 -1
- package/lib/less/functions/types.js +1 -1
- package/lib/less/functions/types.js.map +1 -1
- package/lib/less/import-manager.js +2 -3
- package/lib/less/import-manager.js.map +1 -1
- package/lib/less/index.js +8 -9
- package/lib/less/index.js.map +1 -1
- package/lib/less/less-error.js +11 -12
- package/lib/less/less-error.js.map +1 -1
- package/lib/less/parse-tree.js +2 -3
- package/lib/less/parse-tree.js.map +1 -1
- package/lib/less/parse.js +1 -2
- package/lib/less/parse.js.map +1 -1
- package/lib/less/parser/chunker.js +1 -2
- package/lib/less/parser/chunker.js.map +1 -1
- package/lib/less/parser/parser-input.js +11 -5
- package/lib/less/parser/parser-input.js.map +1 -1
- package/lib/less/parser/parser.js +150 -104
- package/lib/less/parser/parser.js.map +1 -1
- package/lib/less/render.js +1 -2
- package/lib/less/render.js.map +1 -1
- package/lib/less/source-map-builder.js +2 -3
- package/lib/less/source-map-builder.js.map +1 -1
- package/lib/less/source-map-output.js +1 -1
- package/lib/less/source-map-output.js.map +1 -1
- package/lib/less/transform-tree.js +1 -2
- package/lib/less/transform-tree.js.map +1 -1
- package/lib/less/tree/assignment.js +1 -1
- package/lib/less/tree/assignment.js.map +1 -1
- package/lib/less/tree/atrule-syntax.js +10 -0
- package/lib/less/tree/atrule-syntax.js.map +1 -0
- package/lib/less/tree/atrule.js +4 -4
- package/lib/less/tree/atrule.js.map +1 -1
- package/lib/less/tree/attribute.js +2 -2
- package/lib/less/tree/attribute.js.map +1 -1
- package/lib/less/tree/call.js +3 -2
- package/lib/less/tree/call.js.map +1 -1
- package/lib/less/tree/color.js +8 -6
- package/lib/less/tree/color.js.map +1 -1
- package/lib/less/tree/comment.js +1 -1
- package/lib/less/tree/comment.js.map +1 -1
- package/lib/less/tree/container.js +48 -0
- package/lib/less/tree/container.js.map +1 -0
- package/lib/less/tree/debug-info.js +6 -6
- package/lib/less/tree/debug-info.js.map +1 -1
- package/lib/less/tree/declaration.js +1 -1
- package/lib/less/tree/declaration.js.map +1 -1
- package/lib/less/tree/dimension.js +6 -4
- package/lib/less/tree/dimension.js.map +1 -1
- package/lib/less/tree/expression.js +5 -1
- package/lib/less/tree/expression.js.map +1 -1
- package/lib/less/tree/extend.js +2 -0
- package/lib/less/tree/extend.js.map +1 -1
- package/lib/less/tree/import.js +1 -1
- package/lib/less/tree/import.js.map +1 -1
- package/lib/less/tree/index.js +4 -0
- package/lib/less/tree/index.js.map +1 -1
- package/lib/less/tree/javascript.js +1 -1
- package/lib/less/tree/javascript.js.map +1 -1
- package/lib/less/tree/js-eval-node.js +6 -6
- package/lib/less/tree/js-eval-node.js.map +1 -1
- package/lib/less/tree/media.js +4 -88
- package/lib/less/tree/media.js.map +1 -1
- package/lib/less/tree/mixin-call.js +6 -6
- package/lib/less/tree/mixin-call.js.map +1 -1
- package/lib/less/tree/mixin-definition.js +2 -2
- package/lib/less/tree/mixin-definition.js.map +1 -1
- package/lib/less/tree/namespace-value.js +6 -6
- package/lib/less/tree/namespace-value.js.map +1 -1
- package/lib/less/tree/nested-at-rule.js +91 -0
- package/lib/less/tree/nested-at-rule.js.map +1 -0
- package/lib/less/tree/node.js +6 -4
- package/lib/less/tree/node.js.map +1 -1
- package/lib/less/tree/property.js +2 -2
- package/lib/less/tree/property.js.map +1 -1
- package/lib/less/tree/query-in-parens.js +41 -0
- package/lib/less/tree/query-in-parens.js.map +1 -0
- package/lib/less/tree/quoted.js +3 -3
- package/lib/less/tree/quoted.js.map +1 -1
- package/lib/less/tree/ruleset.js +14 -11
- package/lib/less/tree/ruleset.js.map +1 -1
- package/lib/less/tree/selector.js +5 -3
- package/lib/less/tree/selector.js.map +1 -1
- package/lib/less/tree/unit.js +4 -2
- package/lib/less/tree/unit.js.map +1 -1
- package/lib/less/tree/url.js +2 -2
- package/lib/less/tree/url.js.map +1 -1
- package/lib/less/tree/variable-call.js +1 -1
- package/lib/less/tree/variable-call.js.map +1 -1
- package/lib/less/tree/variable.js +3 -3
- package/lib/less/tree/variable.js.map +1 -1
- package/lib/less/utils.js +9 -5
- package/lib/less/utils.js.map +1 -1
- package/lib/less/visitors/extend-visitor.js +8 -4
- package/lib/less/visitors/extend-visitor.js.map +1 -1
- package/lib/less/visitors/import-visitor.js +4 -0
- package/lib/less/visitors/import-visitor.js.map +1 -1
- package/lib/less/visitors/join-selector-visitor.js +4 -0
- package/lib/less/visitors/join-selector-visitor.js.map +1 -1
- package/lib/less/visitors/to-css-visitor.js +9 -5
- package/lib/less/visitors/to-css-visitor.js.map +1 -1
- package/lib/less/visitors/visitor.js +2 -2
- package/lib/less/visitors/visitor.js.map +1 -1
- package/lib/less-browser/add-default-options.js +1 -1
- package/lib/less-browser/add-default-options.js.map +1 -1
- package/lib/less-browser/bootstrap.js +6 -7
- package/lib/less-browser/bootstrap.js.map +1 -1
- package/lib/less-browser/browser.js +1 -1
- package/lib/less-browser/browser.js.map +1 -1
- package/lib/less-browser/cache.js +7 -7
- package/lib/less-browser/cache.js.map +1 -1
- package/lib/less-browser/error-reporting.js +11 -11
- package/lib/less-browser/error-reporting.js.map +1 -1
- package/lib/less-browser/file-manager.js +4 -5
- package/lib/less-browser/file-manager.js.map +1 -1
- package/lib/less-browser/index.js +17 -13
- package/lib/less-browser/index.js.map +1 -1
- package/lib/less-browser/plugin-loader.js +3 -2
- package/lib/less-browser/plugin-loader.js.map +1 -1
- package/lib/less-browser/utils.js +4 -4
- package/lib/less-browser/utils.js.map +1 -1
- package/lib/less-node/file-manager.js +17 -17
- package/lib/less-node/file-manager.js.map +1 -1
- package/lib/less-node/image-size.js +1 -1
- package/lib/less-node/image-size.js.map +1 -1
- package/lib/less-node/index.js +1 -1
- package/lib/less-node/index.js.map +1 -1
- package/lib/less-node/lessc-helper.js +2 -1
- package/lib/less-node/lessc-helper.js.map +1 -1
- package/lib/less-node/url-file-manager.js +9 -4
- package/lib/less-node/url-file-manager.js.map +1 -1
- package/package.json +140 -137
- package/test/browser/css/plugin/plugin.css +1 -1
- package/test/browser/css/relative-urls/urls.css +8 -8
- package/test/browser/css/rewrite-urls/urls.css +8 -8
- package/test/browser/css/urls.css +12 -12
- package/test/browser/generator/benchmark.config.js +19 -19
- package/test/browser/generator/generate.js +1 -1
- package/test/browser/generator/runner.config.js +76 -74
- package/test/browser/generator/template.js +17 -7
- package/test/browser/generator/utils.js +14 -0
- package/test/browser/less/relative-urls/urls.less +1 -1
- package/test/browser/less/rewrite-urls/urls.less +1 -1
- package/test/browser/less/rootpath/urls.less +1 -1
- package/test/browser/less/rootpath-relative/urls.less +1 -1
- package/test/browser/less/rootpath-rewrite-urls/urls.less +1 -1
- package/test/browser/less/urls.less +2 -2
- package/test/browser/runner-rewrite-urls-spec.js +1 -1
- package/test/index.js +2 -0
- package/test/less-test.js +33 -9
- package/test/plugins/filemanager/index.js +1 -1
- package/test/sourcemaps-variable-selector/basic.json +1 -0
- package/test/test-es6.ts +5 -5
- package/tsconfig.build.json +7 -0
- package/tsconfig.json +20 -18
- package/.eslintrc.json +0 -71
package/package.json
CHANGED
|
@@ -1,137 +1,140 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "less",
|
|
3
|
-
"version": "4.1
|
|
4
|
-
"description": "Leaner CSS",
|
|
5
|
-
"homepage": "http://lesscss.org",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "Alexis Sellier",
|
|
8
|
-
"email": "self@cloudhead.net"
|
|
9
|
-
},
|
|
10
|
-
"contributors": [
|
|
11
|
-
"The Core Less Team"
|
|
12
|
-
],
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/less/less.js/issues"
|
|
15
|
-
},
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "https://github.com/less/less.js.git"
|
|
19
|
-
},
|
|
20
|
-
"master": {
|
|
21
|
-
"url": "https://github.com/less/less.js/blob/master/",
|
|
22
|
-
"raw": "https://raw.githubusercontent.com/less/less.js/master/"
|
|
23
|
-
},
|
|
24
|
-
"license": "Apache-2.0",
|
|
25
|
-
"bin": {
|
|
26
|
-
"lessc": "./bin/lessc"
|
|
27
|
-
},
|
|
28
|
-
"main": "index",
|
|
29
|
-
"module": "./lib/less-node/index",
|
|
30
|
-
"directories": {
|
|
31
|
-
"test": "./test"
|
|
32
|
-
},
|
|
33
|
-
"browser": "./dist/less.js",
|
|
34
|
-
"engines": {
|
|
35
|
-
"node": ">=6"
|
|
36
|
-
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"test": "grunt test",
|
|
39
|
-
"grunt": "grunt",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"@rollup/plugin-
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"grunt
|
|
76
|
-
"grunt-
|
|
77
|
-
"grunt-
|
|
78
|
-
"grunt-
|
|
79
|
-
"grunt-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"mocha
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"rollup
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
"css",
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"less
|
|
115
|
-
"less",
|
|
116
|
-
"less
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "less",
|
|
3
|
+
"version": "4.2.1",
|
|
4
|
+
"description": "Leaner CSS",
|
|
5
|
+
"homepage": "http://lesscss.org",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Alexis Sellier",
|
|
8
|
+
"email": "self@cloudhead.net"
|
|
9
|
+
},
|
|
10
|
+
"contributors": [
|
|
11
|
+
"The Core Less Team"
|
|
12
|
+
],
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/less/less.js/issues"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/less/less.js.git"
|
|
19
|
+
},
|
|
20
|
+
"master": {
|
|
21
|
+
"url": "https://github.com/less/less.js/blob/master/",
|
|
22
|
+
"raw": "https://raw.githubusercontent.com/less/less.js/master/"
|
|
23
|
+
},
|
|
24
|
+
"license": "Apache-2.0",
|
|
25
|
+
"bin": {
|
|
26
|
+
"lessc": "./bin/lessc"
|
|
27
|
+
},
|
|
28
|
+
"main": "index",
|
|
29
|
+
"module": "./lib/less-node/index",
|
|
30
|
+
"directories": {
|
|
31
|
+
"test": "./test"
|
|
32
|
+
},
|
|
33
|
+
"browser": "./dist/less.js",
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=6"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"test": "grunt test",
|
|
39
|
+
"grunt": "grunt",
|
|
40
|
+
"lint": "eslint '**/*.{ts,js}'",
|
|
41
|
+
"lint:fix": "eslint '**/*.{ts,js}' --fix",
|
|
42
|
+
"build": "npm-run-all clean compile",
|
|
43
|
+
"clean": "shx rm -rf ./lib tsconfig.tsbuildinfo",
|
|
44
|
+
"compile": "tsc -p tsconfig.build.json",
|
|
45
|
+
"copy:root": "shx cp -rf ./dist ../../",
|
|
46
|
+
"dev": "tsc -p tsconfig.build.json -w",
|
|
47
|
+
"prepublishOnly": "grunt dist"
|
|
48
|
+
},
|
|
49
|
+
"optionalDependencies": {
|
|
50
|
+
"errno": "^0.1.1",
|
|
51
|
+
"graceful-fs": "^4.1.2",
|
|
52
|
+
"image-size": "~0.5.0",
|
|
53
|
+
"make-dir": "^2.1.0",
|
|
54
|
+
"mime": "^1.4.1",
|
|
55
|
+
"needle": "^3.1.0",
|
|
56
|
+
"source-map": "~0.6.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@less/test-data": "^4.2.1",
|
|
60
|
+
"@less/test-import-module": "^4.0.0",
|
|
61
|
+
"@rollup/plugin-commonjs": "^17.0.0",
|
|
62
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
63
|
+
"@rollup/plugin-node-resolve": "^11.0.0",
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^4.28.0",
|
|
65
|
+
"@typescript-eslint/parser": "^4.28.0",
|
|
66
|
+
"benny": "^3.6.12",
|
|
67
|
+
"bootstrap-less-port": "0.3.0",
|
|
68
|
+
"chai": "^4.2.0",
|
|
69
|
+
"cross-env": "^7.0.3",
|
|
70
|
+
"diff": "^3.2.0",
|
|
71
|
+
"eslint": "^7.29.0",
|
|
72
|
+
"fs-extra": "^8.1.0",
|
|
73
|
+
"git-rev": "^0.2.1",
|
|
74
|
+
"globby": "^10.0.1",
|
|
75
|
+
"grunt": "^1.0.4",
|
|
76
|
+
"grunt-cli": "^1.3.2",
|
|
77
|
+
"grunt-contrib-clean": "^1.0.0",
|
|
78
|
+
"grunt-contrib-connect": "^1.0.2",
|
|
79
|
+
"grunt-eslint": "^23.0.0",
|
|
80
|
+
"grunt-saucelabs": "^9.0.1",
|
|
81
|
+
"grunt-shell": "^1.3.0",
|
|
82
|
+
"html-template-tag": "^3.2.0",
|
|
83
|
+
"jit-grunt": "^0.10.0",
|
|
84
|
+
"less-plugin-autoprefix": "^1.5.1",
|
|
85
|
+
"less-plugin-clean-css": "^1.5.1",
|
|
86
|
+
"minimist": "^1.2.0",
|
|
87
|
+
"mocha": "^6.2.1",
|
|
88
|
+
"mocha-headless-chrome": "^4.0.0",
|
|
89
|
+
"mocha-teamcity-reporter": "^3.0.0",
|
|
90
|
+
"nock": "^11.8.2",
|
|
91
|
+
"npm-run-all": "^4.1.5",
|
|
92
|
+
"performance-now": "^0.2.0",
|
|
93
|
+
"phin": "^2.2.3",
|
|
94
|
+
"promise": "^7.1.1",
|
|
95
|
+
"read-glob": "^3.0.0",
|
|
96
|
+
"resolve": "^1.17.0",
|
|
97
|
+
"rollup": "^2.52.2",
|
|
98
|
+
"rollup-plugin-terser": "^5.1.1",
|
|
99
|
+
"rollup-plugin-typescript2": "^0.29.0",
|
|
100
|
+
"semver": "^6.3.0",
|
|
101
|
+
"shx": "^0.3.2",
|
|
102
|
+
"time-grunt": "^1.3.0",
|
|
103
|
+
"ts-node": "^10.9.1",
|
|
104
|
+
"typescript": "^4.3.4",
|
|
105
|
+
"uikit": "2.27.4"
|
|
106
|
+
},
|
|
107
|
+
"keywords": [
|
|
108
|
+
"compile less",
|
|
109
|
+
"css nesting",
|
|
110
|
+
"css variable",
|
|
111
|
+
"css",
|
|
112
|
+
"gradients css",
|
|
113
|
+
"gradients css3",
|
|
114
|
+
"less compiler",
|
|
115
|
+
"less css",
|
|
116
|
+
"less mixins",
|
|
117
|
+
"less",
|
|
118
|
+
"less.js",
|
|
119
|
+
"lesscss",
|
|
120
|
+
"mixins",
|
|
121
|
+
"nested css",
|
|
122
|
+
"parser",
|
|
123
|
+
"preprocessor",
|
|
124
|
+
"bootstrap css",
|
|
125
|
+
"bootstrap less",
|
|
126
|
+
"style",
|
|
127
|
+
"styles",
|
|
128
|
+
"stylesheet",
|
|
129
|
+
"variables in css",
|
|
130
|
+
"css less"
|
|
131
|
+
],
|
|
132
|
+
"rawcurrent": "https://raw.github.com/less/less.js/v",
|
|
133
|
+
"sourcearchive": "https://github.com/less/less.js/archive/v",
|
|
134
|
+
"dependencies": {
|
|
135
|
+
"copy-anything": "^2.0.1",
|
|
136
|
+
"parse-node-version": "^1.0.1",
|
|
137
|
+
"tslib": "^2.3.0"
|
|
138
|
+
},
|
|
139
|
+
"gitHead": "1df9072ee9ebdadc791bf35dfb1dbc3ef9f1948f"
|
|
140
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
@import "http://localhost:8081/test/browser/less/imports/modify-this.css";
|
|
2
|
-
@import "http://localhost:8081/test/browser/less/imports/modify-again.css";
|
|
1
|
+
@import "http://localhost:8081/packages/less/test/browser/less/imports/modify-this.css";
|
|
2
|
+
@import "http://localhost:8081/packages/less/test/browser/less/imports/modify-again.css";
|
|
3
3
|
.modify {
|
|
4
|
-
my-url: url("http://localhost:8081/test/browser/less/imports/a.png");
|
|
4
|
+
my-url: url("http://localhost:8081/packages/less/test/browser/less/imports/a.png");
|
|
5
5
|
}
|
|
6
6
|
.modify {
|
|
7
|
-
my-url: url("http://localhost:8081/test/browser/less/imports/b.png");
|
|
7
|
+
my-url: url("http://localhost:8081/packages/less/test/browser/less/imports/b.png");
|
|
8
8
|
}
|
|
9
9
|
@font-face {
|
|
10
10
|
src: url("/fonts/garamond-pro.ttf");
|
|
11
|
-
src: local(Futura-Medium), url(http://localhost:8081/test/browser/less/relative-urls/fonts.svg#MyGeometricModern) format("svg");
|
|
11
|
+
src: local(Futura-Medium), url(http://localhost:8081/packages/less/test/browser/less/relative-urls/fonts.svg#MyGeometricModern) format("svg");
|
|
12
12
|
}
|
|
13
13
|
#shorthands {
|
|
14
14
|
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
|
15
15
|
}
|
|
16
16
|
#misc {
|
|
17
|
-
background-image: url(http://localhost:8081/test/browser/less/relative-urls/images/image.jpg);
|
|
17
|
+
background-image: url(http://localhost:8081/packages/less/test/browser/less/relative-urls/images/image.jpg);
|
|
18
18
|
background: url("#inline-svg");
|
|
19
19
|
}
|
|
20
20
|
#data-uri {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
|
30
30
|
}
|
|
31
31
|
.comma-delimited {
|
|
32
|
-
background: url(http://localhost:8081/test/browser/less/relative-urls/bg.jpg) no-repeat, url(http://localhost:8081/test/browser/less/relative-urls/bg.png) repeat-x top left, url(http://localhost:8081/test/browser/less/relative-urls/bg);
|
|
32
|
+
background: url(http://localhost:8081/packages/less/test/browser/less/relative-urls/bg.jpg) no-repeat, url(http://localhost:8081/packages/less/test/browser/less/relative-urls/bg.png) repeat-x top left, url(http://localhost:8081/packages/less/test/browser/less/relative-urls/bg);
|
|
33
33
|
}
|
|
34
34
|
.values {
|
|
35
|
-
url: url('http://localhost:8081/test/browser/less/relative-urls/Trebuchet');
|
|
35
|
+
url: url('http://localhost:8081/packages/less/test/browser/less/relative-urls/Trebuchet');
|
|
36
36
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
@import "http://localhost:8081/test/browser/less/imports/modify-this.css";
|
|
2
|
-
@import "http://localhost:8081/test/browser/less/imports/modify-again.css";
|
|
1
|
+
@import "http://localhost:8081/packages/less/test/browser/less/imports/modify-this.css";
|
|
2
|
+
@import "http://localhost:8081/packages/less/test/browser/less/imports/modify-again.css";
|
|
3
3
|
.modify {
|
|
4
|
-
my-url: url("http://localhost:8081/test/browser/less/imports/a.png");
|
|
4
|
+
my-url: url("http://localhost:8081/packages/less/test/browser/less/imports/a.png");
|
|
5
5
|
}
|
|
6
6
|
.modify {
|
|
7
|
-
my-url: url("http://localhost:8081/test/browser/less/imports/b.png");
|
|
7
|
+
my-url: url("http://localhost:8081/packages/less/test/browser/less/imports/b.png");
|
|
8
8
|
}
|
|
9
9
|
@font-face {
|
|
10
10
|
src: url("/fonts/garamond-pro.ttf");
|
|
11
|
-
src: local(Futura-Medium), url(http://localhost:8081/test/browser/less/rewrite-urls/fonts.svg#MyGeometricModern) format("svg");
|
|
11
|
+
src: local(Futura-Medium), url(http://localhost:8081/packages/less/test/browser/less/rewrite-urls/fonts.svg#MyGeometricModern) format("svg");
|
|
12
12
|
}
|
|
13
13
|
#shorthands {
|
|
14
14
|
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
|
15
15
|
}
|
|
16
16
|
#misc {
|
|
17
|
-
background-image: url(http://localhost:8081/test/browser/less/rewrite-urls/images/image.jpg);
|
|
17
|
+
background-image: url(http://localhost:8081/packages/less/test/browser/less/rewrite-urls/images/image.jpg);
|
|
18
18
|
background: url("#inline-svg");
|
|
19
19
|
}
|
|
20
20
|
#data-uri {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
|
30
30
|
}
|
|
31
31
|
.comma-delimited {
|
|
32
|
-
background: url(http://localhost:8081/test/browser/less/rewrite-urls/bg.jpg) no-repeat, url(http://localhost:8081/test/browser/less/rewrite-urls/bg.png) repeat-x top left, url(http://localhost:8081/test/browser/less/rewrite-urls/bg);
|
|
32
|
+
background: url(http://localhost:8081/packages/less/test/browser/less/rewrite-urls/bg.jpg) no-repeat, url(http://localhost:8081/packages/less/test/browser/less/rewrite-urls/bg.png) repeat-x top left, url(http://localhost:8081/packages/less/test/browser/less/rewrite-urls/bg);
|
|
33
33
|
}
|
|
34
34
|
.values {
|
|
35
|
-
url: url('http://localhost:8081/test/browser/less/rewrite-urls/Trebuchet');
|
|
35
|
+
url: url('http://localhost:8081/packages/less/test/browser/less/rewrite-urls/Trebuchet');
|
|
36
36
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
@import "http://localhost:8081/test/browser/less/modify-this.css";
|
|
2
|
-
@import "http://localhost:8081/test/browser/less/modify-again.css";
|
|
1
|
+
@import "http://localhost:8081/packages/less/test/browser/less/modify-this.css";
|
|
2
|
+
@import "http://localhost:8081/packages/less/test/browser/less/modify-again.css";
|
|
3
3
|
.modify {
|
|
4
|
-
my-url: url("http://localhost:8081/test/browser/less/a.png");
|
|
4
|
+
my-url: url("http://localhost:8081/packages/less/test/browser/less/a.png");
|
|
5
5
|
}
|
|
6
6
|
.modify {
|
|
7
|
-
my-url: url("http://localhost:8081/test/browser/less/b.png");
|
|
7
|
+
my-url: url("http://localhost:8081/packages/less/test/browser/less/b.png");
|
|
8
8
|
}
|
|
9
9
|
.gray-gradient {
|
|
10
10
|
background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201%201%22%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%2260%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.05%22%2F%3E%3Cstop%20offset%3D%2270%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.1%22%2F%3E%3Cstop%20offset%3D%2273%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.15%22%2F%3E%3Cstop%20offset%3D%2275%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.2%22%2F%3E%3Cstop%20offset%3D%2280%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.25%22%2F%3E%3Cstop%20offset%3D%2285%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.3%22%2F%3E%3Cstop%20offset%3D%2288%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.35%22%2F%3E%3Cstop%20offset%3D%2290%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.4%22%2F%3E%3Cstop%20offset%3D%2295%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.45%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.5%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23g)%22%20%2F%3E%3C%2Fsvg%3E');
|
|
11
11
|
}
|
|
12
12
|
@font-face {
|
|
13
13
|
src: url("/fonts/garamond-pro.ttf");
|
|
14
|
-
src: local(Futura-Medium), url(http://localhost:8081/test/browser/less/fonts.svg#MyGeometricModern) format("svg");
|
|
14
|
+
src: local(Futura-Medium), url(http://localhost:8081/packages/less/test/browser/less/fonts.svg#MyGeometricModern) format("svg");
|
|
15
15
|
not-a-comment: url(//z);
|
|
16
16
|
}
|
|
17
17
|
#shorthands {
|
|
18
18
|
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
|
19
19
|
}
|
|
20
20
|
#misc {
|
|
21
|
-
background-image: url(http://localhost:8081/test/browser/less/images/image.jpg);
|
|
21
|
+
background-image: url(http://localhost:8081/packages/less/test/browser/less/images/image.jpg);
|
|
22
22
|
}
|
|
23
23
|
#data-uri {
|
|
24
24
|
background: url(data:image/png;charset=utf-8;base64,
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
|
33
33
|
}
|
|
34
34
|
.comma-delimited {
|
|
35
|
-
background: url(http://localhost:8081/test/browser/less/bg.jpg) no-repeat, url(http://localhost:8081/test/browser/less/bg.png) repeat-x top left, url(http://localhost:8081/test/browser/less/bg);
|
|
35
|
+
background: url(http://localhost:8081/packages/less/test/browser/less/bg.jpg) no-repeat, url(http://localhost:8081/packages/less/test/browser/less/bg.png) repeat-x top left, url(http://localhost:8081/packages/less/test/browser/less/bg);
|
|
36
36
|
}
|
|
37
37
|
.values {
|
|
38
|
-
url: url('http://localhost:8081/test/browser/less/Trebuchet');
|
|
38
|
+
url: url('http://localhost:8081/packages/less/test/browser/less/Trebuchet');
|
|
39
39
|
}
|
|
40
40
|
#data-uri {
|
|
41
|
-
uri: url('http://localhost:8081/test/data/image.jpg');
|
|
41
|
+
uri: url('http://localhost:8081/packages/less/test/data/image.jpg');
|
|
42
42
|
}
|
|
43
43
|
#data-uri-guess {
|
|
44
|
-
uri: url('http://localhost:8081/test/data/image.jpg');
|
|
44
|
+
uri: url('http://localhost:8081/packages/less/test/data/image.jpg');
|
|
45
45
|
}
|
|
46
46
|
#data-uri-ascii {
|
|
47
|
-
uri-1: url('http://localhost:8081/test/data/page.html');
|
|
48
|
-
uri-2: url('http://localhost:8081/test/data/page.html');
|
|
47
|
+
uri-1: url('http://localhost:8081/packages/less/test/data/page.html');
|
|
48
|
+
uri-2: url('http://localhost:8081/packages/less/test/data/page.html');
|
|
49
49
|
}
|
|
50
50
|
#svg-functions {
|
|
51
51
|
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201%201%22%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23000000%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23g)%22%20%2F%3E%3C%2Fsvg%3E');
|
|
@@ -3,48 +3,48 @@ module.exports = {
|
|
|
3
3
|
current: {
|
|
4
4
|
// src is used to build list of less files to compile
|
|
5
5
|
src: [
|
|
6
|
-
|
|
6
|
+
'benchmark/benchmark.less'
|
|
7
7
|
],
|
|
8
8
|
options: {
|
|
9
|
-
helpers:
|
|
10
|
-
specs:
|
|
11
|
-
outfile:
|
|
9
|
+
helpers: 'benchmark/browseroptions.js',
|
|
10
|
+
specs: 'benchmark/browserspec.js',
|
|
11
|
+
outfile: 'tmp/browser/test-runner-benchmark-current.html'
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
v3_10_3: {
|
|
15
15
|
// src is used to build list of less files to compile
|
|
16
16
|
src: [
|
|
17
|
-
|
|
17
|
+
'benchmark/benchmark.less'
|
|
18
18
|
],
|
|
19
19
|
options: {
|
|
20
|
-
helpers:
|
|
21
|
-
specs:
|
|
22
|
-
outfile:
|
|
23
|
-
less:
|
|
20
|
+
helpers: 'benchmark/browseroptions.js',
|
|
21
|
+
specs: 'benchmark/browserspec.js',
|
|
22
|
+
outfile: 'tmp/browser/test-runner-benchmark-v3_10_3.html',
|
|
23
|
+
less: 'https://cdnjs.cloudflare.com/ajax/libs/less.js/3.10.3/less.min.js'
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
v3_9_0: {
|
|
27
27
|
// src is used to build list of less files to compile
|
|
28
28
|
src: [
|
|
29
|
-
|
|
29
|
+
'benchmark/benchmark.less'
|
|
30
30
|
],
|
|
31
31
|
options: {
|
|
32
|
-
helpers:
|
|
33
|
-
specs:
|
|
34
|
-
outfile:
|
|
35
|
-
less:
|
|
32
|
+
helpers: 'benchmark/browseroptions.js',
|
|
33
|
+
specs: 'benchmark/browserspec.js',
|
|
34
|
+
outfile: 'tmp/browser/test-runner-benchmark-v3_9_0.html',
|
|
35
|
+
less: 'https://cdnjs.cloudflare.com/ajax/libs/less.js/3.9.0/less.min.js'
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
v2_7_3: {
|
|
39
39
|
// src is used to build list of less files to compile
|
|
40
40
|
src: [
|
|
41
|
-
|
|
41
|
+
'benchmark/benchmark.less'
|
|
42
42
|
],
|
|
43
43
|
options: {
|
|
44
|
-
helpers:
|
|
45
|
-
specs:
|
|
46
|
-
outfile:
|
|
47
|
-
less:
|
|
44
|
+
helpers: 'benchmark/browseroptions.js',
|
|
45
|
+
specs: 'benchmark/browserspec.js',
|
|
46
|
+
outfile: 'tmp/browser/test-runner-benchmark-v2_7_3.html',
|
|
47
|
+
less: 'https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.3/less.min.js'
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -52,7 +52,7 @@ Object.entries(config).forEach(entry => {
|
|
|
52
52
|
const templateString = template(paths, test.options.helpers, test.options.specs)
|
|
53
53
|
fs.writeFileSync(path.join(cwd, test.options.outfile), templateString)
|
|
54
54
|
tests.push(() => {
|
|
55
|
-
const file = 'http://localhost:8081/' + test.options.outfile
|
|
55
|
+
const file = 'http://localhost:8081/packages/less/' + test.options.outfile
|
|
56
56
|
console.log(file)
|
|
57
57
|
return runner({
|
|
58
58
|
file,
|