3023 Commits

Author SHA1 Message Date
Matthew Dean
39f9327b10 Update badges and add Twitter badge 2017-05-15 12:05:18 -07:00
Max Mikhailov
e5747a990a fix SO link in readme 2017-04-24 01:52:37 +02:00
Max Mikhailov
4a0026ebf6 fix SO link in readme 2017-04-24 01:52:07 +02:00
Matthew Dean
ff5760e099 v3.0.0-alpha.2 2017-01-10 17:46:25 -08:00
Matthew Dean
b782411278 Sync default options across all Less.js environments
- More tests for plugins
2017-01-10 17:44:50 -08:00
Matthew Dean
1736ea5c37 Update plugin API 2017-01-09 07:34:31 -08:00
Matthew Dean
8ba8c00a42 Add UMD plugin format 2017-01-09 07:12:46 -08:00
Matthew Dean
bfe19b1d4f Update CHANGELOG.md 2017-01-06 20:43:14 -08:00
Matthew Dean
809dc509f3 Arbitrary (non-falsey) values returned from functions are cast as Anonymous nodes 2017-01-06 19:39:23 -08:00
Matthew Dean
ceb54053e7 v2.7.2 v2.7.2 2017-01-04 17:57:58 -08:00
Matthew Dean
c93b7f6395 Revert contrast() changes in 2.7.1 2017-01-04 17:53:19 -08:00
Matthew Dean
ede0587368 Revert contrast changes in 2.7.1 2017-01-04 17:50:59 -08:00
Matthew Dean
c60c322562 3.0.0-alpha.1 2017-01-01 12:59:17 -08:00
Matthew Dean
68ea31dc89 Line and column # reporting for Node errors 2017-01-01 12:58:09 -08:00
Matthew Dean
43ab0b8722 Added error test for unparseable @plugin with better error messaging 2016-12-31 20:04:51 -08:00
Matthew Dean
49cbe520f6 Migrate JSCS and JSHint to ESLint and fix various ESLint styling errors 2016-12-31 20:03:46 -08:00
Matthew Dean
fda4565e8d Replace "return {}" statement in plugins with explicit registerPlugin() function (more logical) 2016-12-31 11:53:53 -08:00
Matthew Dean
96c2ffbc0d Tests for plugin in-browser
- Prevents XSS @plugin requests
2016-12-23 23:12:32 -08:00
Matthew Dean
9f7c0aa563 Merge branch '3.x' of https://github.com/less/less.js into 3.x
* '3.x' of https://github.com/less/less.js:
  Refactor test/index.js removing code duplicates
  Move error formatting logic to LessError
  Remove test for inferring css import based on path
  Allow less imports of paths like 'dir/css'
2016-12-23 21:31:26 -08:00
Matthew Dean
5621cb9199 Merge pull request #2908 from maxrd2/patch-1
Added 'request' as optional dependency.
2016-12-21 15:32:20 -08:00
Matthew Dean
4251946e83 Merge pull request #2955 from maxbrunsfeld/less-imports-of-files-named-css
Allow less imports of paths like 'dir/css'
2016-12-21 15:27:32 -08:00
Matthew Dean
bf34b951ea Merge pull request #2975 from kirillrogovoy/refactor-less-error
Refactor LessError and lesscHelper.formatError
2016-12-21 15:24:12 -08:00
Matthew Dean
6f06301dff Merge pull request #2988 from nicoschoenmaker/hotfix/2987
Fixes #2987, --source-map-map-inline works as expected
2016-12-21 15:23:13 -08:00
Matthew Dean
c82202cfb8 Update inline comments 2016-11-21 13:57:59 -08:00
Matthew Dean
d0fbadba2e Yes! Less.js tests now working for all browser platforms (except for local timeout error - to fix) 2016-11-20 18:07:19 -08:00
Nico Schoenmaker
bd375432ad Fixes #2987, --source-map-map-inline works as expected 2016-11-16 17:00:14 +01:00
Matthew Dean
26041d9aa5 Bump version for lessc change 2016-10-21 16:40:21 -07:00
Matthew Dean
826afae23d Merge branch '3.x' of https://github.com/less/less.js into 3.x
* '3.x' of https://github.com/less/less.js:
  Update README.md
2016-10-21 16:31:20 -07:00
Matthew Dean
387b3899e0 Fix JShint errors 2016-10-21 16:31:10 -07:00
Matthew Dean
96df3f4b7e Update README.md 2016-10-21 16:23:19 -07:00
Matthew Dean
883b88ea13 Restore single "all" task for SauceLabs 2016-10-21 16:15:04 -07:00
Matthew Dean
a45bef88dd Change --inline-js to simplified --js option 2016-10-21 16:14:01 -07:00
Kirill Rogovoy
068d654603 Refactor test/index.js removing code duplicates 2016-10-12 11:15:56 +03:00
Kirill Rogovoy
b23ffe1e4b Move error formatting logic to LessError 2016-10-12 11:15:31 +03:00
Matthew Dean
6e6bb5d7c2 Reduce sauce tests 2016-10-01 19:00:28 -07:00
Max Brunsfeld
26bb0d4405 Remove test for inferring css import based on path 2016-08-25 17:02:34 -07:00
Max Brunsfeld
77fde7eb78 Allow less imports of paths like 'dir/css' 2016-08-23 14:03:26 -07:00
Matthew Dean
24523c6a86 Merge pull request #2946 from barnabycolby/basepathBug
Fixed sourceMapBasepath bug as the option had no affect on the sourceMapURL value.
2016-08-05 15:35:07 -07:00
Barnaby Colby
50efcdd7aa Added code to ensure that String.prototype.endsWith is always defined, preventing a problem when testSourceMap is run on older versions of node. 2016-08-05 18:07:52 +01:00
Barnaby Colby
80c214d3c9 Added code to the source map test function to check the presence and correctness of the sourceMappingURL CSS appendage. 2016-08-04 21:20:15 +00:00
Barnaby Colby
efaec8370d Fixed sourcMapBasepath bug as the option had no affect on the sourceMapURL. 2016-08-04 08:51:19 +00:00
Matthew Dean
6399ebcc92 Merge pull request #2941 from bd82/travis_cache
CI Build Fixes.
2016-08-01 11:37:56 -05:00
Shahar Soel
259d8b2fee CI Build Fixes.
In Short:
* Enable Travis Cache to mitigate phantomjs download issues.
* Enable Travis & appveyor <retry> functionality to avoid race condition on CI builds
  and old node.js version (0.10/0.12)

Details:

Using <https://bitbucket.org/ariya/phantomjs/downloads/>
to download phantom (on travis)  instead of <http://cnpmjs.org/downloads>
because Travis downloads from http://cnpmjs.org/downloads are horribly slow (30k/s)
and seem courrpt most of the time (smells like throttling)

Travis caching is by branch + build env (node version).
But it has a fallback to using the cache from the default branch
so it should help even with pull requests (which are new branches).

Secondly using <travis_retry> and <appveyor_retry> for <npm install>
to workaround race condition on with npm install and older versions of node.

mitigates #2898
2016-07-29 09:42:19 -07:00
Matthew Dean
abb5375acb Fix JSLint and JSCS errors 2016-07-19 01:38:54 -07:00
Matthew Dean
39150d513a Simplified API on less object
e.g. "less.Ruleset()" instead of "new less.tree.Ruleset()"

Auto-casting of string values into nodes for AtRule, Declaration, Selector, Value
e.g. "less.Selector('&.a')" instead of "new tree.Selector(new tree.Element(new tree.Combinator('&'), '.a'))"
2016-07-19 01:30:34 -07:00
Matthew Dean
a38f8a1eb7 Added property accessors - performance issue solved by re-tooling value parsing
i.e. All values are anonymous strings until "queried"
- Unlike original PR, no change in existing test output for un-referenced properties
- unused variables would theoretically result in a tiny improvement in parsing time
2016-07-18 14:28:32 -07:00
Matthew Dean
c17b2f0e64 Restore promise shim / fix JSCS Gruntfile error 2016-07-17 11:53:51 -07:00
Matthew Dean
83c9ea4f3f Run Sauce Labs testing for master or 3.x branch 2016-07-16 20:55:52 -07:00
Matthew Dean
fcb670d5b4 Remove IE8-specific shims 2016-07-16 20:46:47 -07:00
Matthew Dean
3d9f8433d1 Remove Node / Browserify 'path' module dependency 2016-07-16 20:45:46 -07:00