Skip to content

Commit

Permalink
docs: Reference version is now Less.js 3.13, no longer 2.5
Browse files Browse the repository at this point in the history
Bug: T288498
Change-Id: Ice32d53b5c8376b36a92b5d1e10a2ab782cda385
  • Loading branch information
Krinkle committed Aug 2, 2024
1 parent c28be8d commit f8b680c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is a PHP port of the [official LESS processor](https://lesscss.org).

## About

The code structure of Less.php mirrors that of upstream Less.js to ensure compatibility and help reduce maintenance. The port is currently compatible with Less.js 2.5.3. Please note that "inline JavaScript expressions" (via eval or backticks) are not supported.
The code structure of Less.php mirrors that of upstream Less.js to ensure compatibility and help reduce maintenance. The port aims to be compatible with Less.js 3.13.1. Please note that "inline JavaScript expressions" (via eval or backticks) are not supported.

* [API § Caching](./API.md#caching), Less.php includes a file-based cache.
* [API § Source maps](./API.md#source-maps), Less.php supports v3 sourcemaps.
Expand Down
9 changes: 6 additions & 3 deletions test/compare.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@
Options:
fixtureDir Pass one of the /test/Fixtures/ directories.
fixtureDir Pass one of the test/Fixtures/ directories.
The compare tool will compile each file in the "less/"
subdirectory, and compare it to an eponymous file in the
"css/" subdirectory.
Alternatively, pass one of the "less/" sub-sub directories
directly and the corresponding "css/" directory will be found
automatically.
- {{FIXTURE_DIR}}
Default: test/Fixtures/lessjs-2.5.3/
Default: test/Fixtures/lessjs-3.13.1/less/_main/
--override By default, the compare tool validates the full upstream
Less.js specification, as stored in the fixture's "css/"
Expand Down Expand Up @@ -59,7 +62,7 @@ public function cli( $args ) {
}

$this->compare(
$fixtureDir ?? __DIR__ . '/Fixtures/lessjs-2.5.3/',
$fixtureDir ?? 'lessjs-3.13.1',
$useOverride
);
}
Expand Down

0 comments on commit f8b680c

Please sign in to comment.