Skip to content

Merge branch 'master' into feature/rewrite-urls #3282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
f9ab84a
WIP - Added strictMath: 'division' option
matthew-dean Jun 24, 2018
46c39fa
Removes `less-rhino` (broken for a long time) - Fixes #3241
matthew-dean Jul 2, 2018
b79db65
Expressions require a delimiter of some kind in mixin args
matthew-dean Jul 4, 2018
8c542b5
Removes "double paren" issue for boolean / if function
matthew-dean Jul 4, 2018
7a548a6
WIP each() re-implementation
matthew-dean Jul 4, 2018
a58e871
Allows plain conditions without parentheses
matthew-dean Jul 4, 2018
15f7b1a
Added each() and tests
matthew-dean Jul 4, 2018
31b73b3
Merge branch 'master' into feature/each-2
matthew-dean Jul 4, 2018
a95823d
Added tests calling mixins from each()
matthew-dean Jul 4, 2018
d5f669e
Merge branch 'master' into strict-math-division
matthew-dean Jul 7, 2018
76c1034
Fixes #1880 - Adds two new math modes and deprecates strictMath
matthew-dean Jul 7, 2018
defc03f
Merge branch 'master' into feature/each-2
matthew-dean Jul 7, 2018
3c7ccdb
Allows named args for detached ruleset (anonymous mixin)
matthew-dean Jul 8, 2018
7f9435f
Change "parens-all" to "parens|strict"
matthew-dean Jul 8, 2018
5aeb6c0
Merge branch 'master' into bugfix-boolean-if
matthew-dean Jul 8, 2018
dfba629
Makes sure this doesn't regress needing parens around mixin guard con…
matthew-dean Jul 8, 2018
c66282d
Merge branch 'master' into bugfix-2824
matthew-dean Jul 8, 2018
556ea61
Remove javascriptEnabled from browser options check, add to defaults
matthew-dean Jul 8, 2018
ea8a4f2
Workaround weird Jasmine conversion of < to HTML entity
matthew-dean Jul 8, 2018
740ab6a
Merge branch 'master' into bugfix-remove-rhino
matthew-dean Jul 8, 2018
751335a
Removes remaining Rhino cruft
matthew-dean Jul 8, 2018
9caa77e
Remove rhino files from bower
matthew-dean Jul 8, 2018
5bda6e3
Bump Jasmine version
matthew-dean Jul 8, 2018
9734a60
Merge pull request #3276 from matthew-dean/dep-jasmine-bump
matthew-dean Jul 8, 2018
e1e1c39
Added .() example to each
matthew-dean Jul 10, 2018
85e64ce
Merge pull request #3259 from matthew-dean/bugfix-boolean-if
matthew-dean Jul 10, 2018
ccee809
Merge pull request #3252 from matthew-dean/bugfix-remove-rhino
matthew-dean Jul 10, 2018
4546a6a
v3.6.0
matthew-dean Jul 10, 2018
ea78558
Update CHANGELOG.md
matthew-dean Jul 10, 2018
36ec7b8
Merge pull request #3278 from matthew-dean/release/v3.6.0
matthew-dean Jul 10, 2018
7104c3c
add explicit nested anonymous mixin test
calvinjuarez Jul 11, 2018
c49b11e
add explicit nested anonymous mixin test result
calvinjuarez Jul 11, 2018
c974d4e
derp: align test with expected output
calvinjuarez Jul 11, 2018
3f82ef5
Merge pull request #3263 from matthew-dean/feature/each-2
matthew-dean Jul 11, 2018
d99a1b8
Merge pull request #3258 from matthew-dean/bugfix-2824
matthew-dean Jul 11, 2018
78c38e4
Merge branch 'master' into strict-math-division
matthew-dean Jul 11, 2018
8938e98
Merge pull request #3274 from matthew-dean/strict-math-division
matthew-dean Jul 11, 2018
3b5dfbb
v3.7.0 (#3279)
matthew-dean Jul 11, 2018
c3fafd7
Update CHANGELOG.md
matthew-dean Jul 11, 2018
94e52ac
Update CHANGELOG.md
matthew-dean Jul 11, 2018
c6813b2
Update CHANGELOG.md
matthew-dean Jul 11, 2018
d5f347e
Merge branch 'master' into feature/rewrite-urls
calvinjuarez Jul 11, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ lessc text eol=lf
*.less text eol=lf
*.css text eol=lf
*.htm text eol=lf
gradlew.bat text eol=crlf
*.html text eol=lf
*.jpg binary
*.png binary
Expand Down
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@ test/sourcemaps/*.css
test/less-bom

# grunt
.grunt

# gradle
.gradle
out
.grunt
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ test/
# re-include test files as they can be useful for plugins that do testing
!test/*.js
tmp/
gradle/
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
## 3.7.0

2018-07-11
- New each() function! [See docs](http://lesscss.org/functions/#list-functions-each)
- New math modes! Also [see docs](http://lesscss.org/usage/#less-options-math).
- Bug fixes

## 3.6.0

2018-07-10
- Allows plain conditions in `if(true, 1, 2)` (vs. `if((true), 1, 2)`)
- Fixes svg-gradient() for Firefox
- Adds more 3rd-party tests for fewer surprises when upgrading
- Removes (broken) `less-rhino` implementation - use other Java ports

## 3.5.3

2018-07-06
- Reverts @media eval change
- Reverts `@media` eval change
- Other bug fixes

## 3.5.0
Expand Down
30 changes: 2 additions & 28 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({

// Metadata required for build.
build: grunt.file.readYAML('build/build.yml'),
pkg: grunt.file.readJSON('package.json'),
meta: {
copyright: 'Copyright (c) 2009-<%= grunt.template.today("yyyy") %>',
Expand Down Expand Up @@ -232,24 +230,6 @@ module.exports = function (grunt) {
dist: {
src: '<%= browserify.browser.dest %>',
dest: 'dist/less.js'
},
// Rhino
rhino: {
options: {
banner: '/* Less.js v<%= pkg.version %> RHINO | <%= meta.copyright %>, <%= pkg.author.name %> <<%= pkg.author.email %>> */\n\n',
footer: '' // override task-level footer
},
src: ['<%= build.rhino %>'],
dest: 'dist/less-rhino.js'
},
// lessc for Rhino
rhinolessc: {
options: {
banner: '/* Less.js v<%= pkg.version %> RHINO | <%= meta.copyright %>, <%= pkg.author.name %> <<%= pkg.author.email %>> */\n\n',
footer: '' // override task-level footer
},
src: ['<%= build.rhinolessc %>'],
dest: 'dist/lessc-rhino.js'
}
},

Expand Down Expand Up @@ -307,7 +287,8 @@ module.exports = function (grunt) {
main: {
// src is used to build list of less files to compile
src: [
'test/less/plugin.less',
'test/less/*.less',
'!test/less/plugin-preeval.less', // uses ES6 syntax
// Don't test NPM import, obviously
'!test/less/plugin-module.less',
'!test/less/import-module.less',
Expand Down Expand Up @@ -491,13 +472,6 @@ module.exports = function (grunt) {
'uglify:dist'
]);

// Release Rhino Version (UNSUPPORTED)
grunt.registerTask('rhino', [
'browserify:rhino',
'concat:rhino',
'concat:rhinolessc'
]);

// Create the browser version of less.js
grunt.registerTask('browsertest-lessjs', [
'browserify:browser',
Expand Down
12 changes: 11 additions & 1 deletion bin/lessc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var path = require('path'),
fs = require('../lib/less-node/fs'),
os = require('os'),
utils = require('../lib/less/utils'),
MATH = require('../lib/less/math-constants'),
errno,
mkdirp;

Expand Down Expand Up @@ -495,8 +496,17 @@ function processPluginQueue() {
break;
case 'sm':
case 'strict-math':
console.warning('--strict-math is deprecated. Use --math=strict');
if (checkArgFunc(arg, match[2])) {
options.strictMath = checkBooleanArg(match[2]);
if (checkBooleanArg(match[2])) {
options.math = MATH.STRICT_LEGACY;
}
}
break;
case 'm':
case 'math':
if (checkArgFunc(arg, match[2])) {
options.math = match[2];
}
break;
case 'su':
Expand Down
5 changes: 0 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@
"**/.*",
"benchmark",
"bin",
"build",
"gradle",
"lib",
"test",
"*.md",
"LICENSE",
"Gruntfile.js",
"*.json",
"*.yml",
"build.gradle",
"gradlew",
"gradlew.bat",
".gitattributes",
".jshintrc",
".npmignore"
Expand Down
Loading