Commit Graph

2659 Commits

Author SHA1 Message Date
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
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
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
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
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
Matthew Dean
54affb852b Faster Jasmine tests, Sauce Labs settings update / trying to fix Sauce Labs issues for specific browsers 2016-07-16 20:45:12 -07:00
Matthew Dean
ec30272425 Update Gruntfile.js with a more comprehensive (and up-to-date) browser testing list for Sauce Labs 2016-07-16 14:22:19 -07:00
Matthew Dean
a3e43acb26 Pass function registry to plugin install()
- Create Anonymous nodes from non-null (but non-Node) function return values
- Allow empty Anonymous nodes to collapse on output
2016-07-15 16:05:20 -07:00
Matthew Dean
9b0c8abb54 Reduced lookups and type checking on object properties 2016-07-15 16:03:02 -07:00
Matthew Dean
992f1f3ca3 Added more accurate & detailed benchmark 2016-07-14 13:14:58 -07:00
Matthew Dean
623bc2f816 3.0.0-pre.2 dist files 2016-07-14 12:29:54 -07:00
Matthew Dean
1136a9c050 3.0.0-pre.2 2016-07-14 12:29:11 -07:00
Matthew Dean
e309bf67a2 Added the concept of inherited index / fileInfo for nodes 2016-07-14 02:07:15 -07:00
Matthew Dean
b39b36f700 Update dist files 2016-07-13 12:03:56 -07:00
Matthew Dean
2766d40479 Rename version to pre-release 2016-07-13 12:01:50 -07:00
Matthew Dean
d5803515d5 Allow minimum Less version for plugins to be a string 2016-07-13 02:33:28 -07:00
Matthew Dean
16c80efa61 Fix directive / rule shims 2016-07-13 01:38:30 -07:00
Matthew Dean
1ecb327a67 Merge branch 'feature/@plugin' into 3.x
* feature/@plugin:
  All tests passing for @plugin - Inline JavaScript disabled by default - Deprecated "preprocessor" option removed (preprocessor plugins still valid)
  Plugin loader set up for lessc, node, and browser
2016-07-12 22:35:16 -07:00