Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit bf41dc1

Browse files
committed
Upgrade less from 2.5.1 to 2.7.2
1 parent 873146d commit bf41dc1

File tree

9 files changed

+463
-25
lines changed

9 files changed

+463
-25
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ Thumbs.db
1010
# ignore node_modules inside src
1111
/src/node_modules
1212

13-
#ignore file copied from node_modules to src/thirdparty
13+
# ignore files copied from node_modules to src/thirdparty
1414
/src/thirdparty/CodeMirror
15+
/src/thirdparty/less.min.js
1516

1617
# ignore compiled files
1718
/dist

Gruntfile.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ module.exports = function (grunt) {
130130
'mode/{,*/}*',
131131
'theme/{,*/}*',
132132
]
133+
},
134+
{
135+
expand: true,
136+
flatten: true,
137+
dest: 'src/thirdparty',
138+
cwd: 'src/node_modules',
139+
src: [
140+
'less/dist/less.min.js'
141+
]
133142
}
134143
]
135144
}
@@ -286,9 +295,12 @@ module.exports = function (grunt) {
286295
specs : '<%= meta.specs %>',
287296
/* Keep in sync with test/SpecRunner.html dependencies */
288297
vendor : [
289-
'test/polyfills.js', /* For reference to why this polyfill is needed see Issue #7951. The need for this should go away once the version of phantomjs gets upgraded to 2.0 */
298+
// For reference to why this polyfill is needed see Issue #7951.
299+
// The need for this should go away once the version of phantomjs gets upgraded to 2.0
300+
'test/polyfills.js',
301+
290302
'src/thirdparty/jquery-2.1.3.min.js',
291-
'src/thirdparty/less-2.5.1.min.js'
303+
'src/thirdparty/less.min.js'
292304
],
293305
helpers : [
294306
'test/spec/PhantomHelper.js'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"grunt-contrib-clean": "0.4.1",
3434
"grunt-contrib-copy": "0.4.1",
3535
"grunt-contrib-htmlmin": "0.1.3",
36-
"grunt-contrib-less": "1.0.1",
36+
"grunt-contrib-less": "1.4.0",
3737
"grunt-contrib-requirejs": "0.4.1",
3838
"grunt-contrib-uglify": "0.2.0",
3939
"grunt-contrib-concat": "0.3.0",

src/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"grunt-contrib-clean": "0.4.1",
5757
"grunt-contrib-copy": "0.4.1",
5858
"grunt-contrib-htmlmin": "0.1.3",
59-
"grunt-contrib-less": "1.0.1",
59+
"grunt-contrib-less": "1.4.0",
6060
"grunt-contrib-requirejs": "0.4.1",
6161
"grunt-contrib-uglify": "0.2.0",
6262
"grunt-contrib-concat": "0.3.0",

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
<!-- Pre-load third party scripts that cannot be async loaded. -->
4848
<!-- build:js thirdparty/thirdparty.min.js -->
49-
<script src="thirdparty/less-2.5.1.min.js"></script>
49+
<script src="thirdparty/less.min.js"></script>
5050
<script src="thirdparty/jquery-2.1.3.min.js"></script>
5151
<!-- endbuild -->
5252
</head>

0 commit comments

Comments
 (0)