Commit Graph

2642 Commits

Author SHA1 Message Date
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
Matthew Dean
6e6bb5d7c2 Reduce sauce tests 2016-10-01 19:00:28 -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
Matthew Dean
ad57737ce0 All tests passing for @plugin
- Inline JavaScript disabled by default
- Deprecated "preprocessor" option removed (preprocessor plugins still valid)
2016-07-12 22:26:39 -07:00
Matthew Dean
270fd097c9 Plugin loader set up for lessc, node, and browser 2016-07-06 13:26:25 -07:00
Matthew Dean
52e9b5e4fe Rename Directive -> AtRule & Rule -> Declaration
- Added tree shim for old node types and plugin visitor shim to upgrade node visitors to new node types
2016-07-01 20:53:01 -07:00
Matthew Dean
c73f50e2c7 Added plugin function "setContext()". Allows the context from where the plugin is declared to be passed into the plugin after it is evaluated. (Useful for creating function calls / vars dynamically.) 2016-07-01 15:08:48 -07:00
Matthew Dean
777d95f11b Add plugin cache to plugin manager
- Add visitor iterator so that visitors can be added while visiting (such as plugins in nested scope)
2016-07-01 14:44:54 -07:00
Matthew Dean
27492a71ef Rename extensions back to plugins 2016-07-01 14:43:34 -07:00
Matthew Dean
1df9443cf4 Add create() and getLocalFunctions() to function registry so it can be used for plugins 2016-07-01 14:43:00 -07:00
Matthew Dean
a1c08857e4 Add AbstractPluginLoader to create a cross-platform abstraction for loading plugins by name 2016-07-01 14:39:52 -07:00
Matthew Dean
bd14f14709 Rename @plugin to @use extensions 2016-06-24 20:36:00 -07:00
Matthew Dean
cc1a1436d0 Merge pull request #2905 from abrobston/bug2898
Download PhantomJS from CDN
2016-05-31 19:16:09 -07:00
Andrew Brobston
d6bd0e9e4f Test against latest Node 4 and 6
Update .travis.yml to test against the latest Node release within
versions 4.x and 6.x (as well as 0.10 and 0.12 still).  Update
appveyor.yml to add Node 6 to the list of environments.
2016-05-31 19:38:08 -05:00
Andrew Brobston
e29f7de7a6 Roll back Grunt to version 0.4.5
Continuous-integration builds now fail due to peer-dependency
issues.  It appears that the `grunt-saucelabs` package does not
currently work with Grunt 1+.  Future versions likely will, but for
now, rolling back to Grunt ~0.4.5 may allow the CI builds to
progress.
2016-05-31 16:34:33 -05:00
Andrew Brobston
726cd9660a Download PhantomJS from CDN
Addresses #2898.  Instead of attempting a manual download of
PhantomJS, use the npm package phantomjs-prebuilt and the
environment variable `PHANTOMJS_CDNURL` as suggested in
the comment at
https://github.com/ariya/phantomjs/issues/13953#issuecomment-200862297.
2016-05-31 15:57:01 -05:00
Matthew Dean
2449c4e36e Merge pull request #2866 from mlowijs/master
Changed octals to hex for ES6 strict mode
2016-05-29 12:02:23 -07:00
Matthew Dean
7a5e073e90 Small bug fix: index is passed to Comment node but never assigned 2016-05-10 19:58:34 -07:00
Matthew Dean
9500bfb734 Merge pull request #2891 from jhnns/fix/error-reporting-2
Fix error reporting of lessc executable II
2016-05-09 13:56:27 -07:00
Matthew Dean
d3e1531370 v2.7.1 HOTFIX v2.7.1 2016-05-09 13:38:37 -07:00