less
Advanced tools
Comparing version 3.10.0-beta to 3.10.0-beta.2
@@ -0,1 +1,8 @@ | ||
## 3.10.0-beta | ||
2019-08-03 | ||
- Switched codebase to ES2015 w/ Rollup/Babel compilation | ||
- Added TS linter to ESLint (types yet to be added to functions / vars) | ||
- Ignore undefined content in generating source maps (#3360) | ||
## 3.9.0 | ||
@@ -2,0 +9,0 @@ |
@@ -181,2 +181,13 @@ "use strict"; | ||
var semver = require('semver'); | ||
var path = require('path'); | ||
// Handle async / await in Rollup build for tests | ||
// Remove this when Node 6 is no longer supported for the build/test process | ||
const nodeVersion = semver.major(process.versions.node); | ||
let scriptRuntime = 'node'; | ||
if (nodeVersion < 8) { | ||
scriptRuntime = path.resolve(path.join('node_modules', '.bin', 'babel-node')) + ' --presets=@babel/env'; | ||
} | ||
// Project configuration. | ||
@@ -194,3 +205,3 @@ grunt.initConfig({ | ||
command: [ | ||
"node build/rollup.js --dist" | ||
scriptRuntime + " build/rollup.js --dist" | ||
].join(" && ") | ||
@@ -200,5 +211,5 @@ }, | ||
command: [ | ||
"node build/rollup.js --lessc --out=./tmp/lessc", | ||
"node build/rollup.js --node --out=./tmp/less.cjs.js", | ||
"node build/rollup.js --browser --out=./test/browser/less.min.js" | ||
scriptRuntime + " build/rollup.js --lessc --out=./tmp/lessc", | ||
scriptRuntime + " build/rollup.js --node --out=./tmp/less.cjs.js", | ||
scriptRuntime + " build/rollup.js --browser --out=./test/browser/less.min.js" | ||
].join(" && ") | ||
@@ -205,0 +216,0 @@ }, |
{ | ||
"name": "less", | ||
"version": "3.10.0-beta", | ||
"version": "3.10.0-beta.2", | ||
"description": "Leaner CSS", | ||
@@ -54,2 +54,3 @@ "homepage": "http://lesscss.org", | ||
"@babel/core": "^7.5.5", | ||
"@babel/node": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
@@ -85,2 +86,3 @@ "@typescript-eslint/eslint-plugin": "^1.13.0", | ||
"rollup-plugin-terser": "^5.1.1", | ||
"semver": "^6.3.0", | ||
"time-grunt": "^1.3.0", | ||
@@ -87,0 +89,0 @@ "typescript": "^3.5.3", |
@@ -10,3 +10,12 @@ /* jshint latedef: nofunc */ | ||
var less = require('../tmp/less.cjs.js'); | ||
var less; | ||
// Dist fallback for NPM-installed Less (for plugins that do testing) | ||
try { | ||
less = require('../tmp/less.cjs.js'); | ||
} | ||
catch (e) { | ||
less = require('../dist/less.cjs.js'); | ||
} | ||
var stylize = require('../lib/less-node/lessc-helper').stylize; | ||
@@ -13,0 +22,0 @@ |
@@ -1,4 +0,13 @@ | ||
var less = require('../tmp/less.cjs.js'), | ||
fs = require('fs'); | ||
var less; | ||
// Dist fallback for NPM-installed Less (for plugins that do testing) | ||
try { | ||
less = require('../tmp/less.cjs.js'); | ||
} | ||
catch (e) { | ||
less = require('../dist/less.cjs.js'); | ||
} | ||
var fs = require('fs'); | ||
var input = fs.readFileSync('./test/less/modifyVars/extended.less', 'utf8'); | ||
@@ -5,0 +14,0 @@ var expectedCss = fs.readFileSync('./test/css/modifyVars/extended.css', 'utf8'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
24
2
2970555
37
589
47546