Commit Graph

2583 Commits

Author SHA1 Message Date
Johannes Ewald
73f4aa3e60 Fix error reporting of lessc executable
This commit replaces the old control flow of exiting the process when an error occurred which swallowed the error in some situations (https://github.com/less/less.js/issues/2881). It also adds process.exitCode = 1 in some error situations that have previously been reported as exitCode = 0. Additionally, it adds a listener for "unhandledRejection" to also catch errors caused by rejected promises.
2016-05-03 11:02:21 +02:00
Matthew Dean
d07a9b6cc6 Fix for #2841 - Fix reversion for "color-like" keywords. 2016-04-22 16:31:56 -07:00
Max Mikhailov
d100bae01b Merge pull request #2874 from jeremyVignelles/master
removed dependency to unused package "request"
2016-04-21 02:31:03 +03:00
Jérémy VIGNELLES
d6ec55e199 removed dependency to package "request" (closes #2870) 2016-04-18 21:05:27 +02:00
Max Mikhailov
c5fe8934f8 Merge pull request #2830 from gtalusan/master
make --depends generate no CSS output
2016-04-12 16:42:03 +04:00
George Talusan
dff9697286 make --depends generate no output 2016-04-12 08:33:00 -04:00
Max Mikhailov
e257ebb1d8 fix broken license string
fix #2865
2016-04-09 15:20:46 +04:00
Matthew Dean
ff94626eca Merge branch 'master' of https://github.com/less/less.js
* 'master' of https://github.com/less/less.js:
  Remove unreachable code
  Fix typos found by codespell
  Fix AST to include text for single line comments
  bin/lessc: Make sure path.dirname gets passed strings
  Add some more URLs for less-docs builds
  Add master branch path for less-docs builds
2016-04-08 13:25:13 -07:00
Matthew Dean
4c67576168 Merge pull request #2860 from shkdee/patch-1
Remove unreachable code
2016-04-04 11:38:05 -07:00
Louis Traynard
981cb95b1b Remove unreachable code
This line is unreachable. This is not just about code style, it actually also raises a compilation error when I try to include less.js in a TypeScript project (the TypeScript compiler performs some checks on the input .js files as well).
2016-04-04 16:38:18 +02:00
Matthew Dean
848c8acff7 Fix to function imports - only flag known nodes, empty function results allowed 2016-04-01 22:38:58 -07:00
Max Mikhailov
96877c7e54 Merge pull request #2859 from stweil/master
Fix typos found by codespell
2016-04-01 15:12:25 +03:00
Stefan Weil
bf279b36be Fix typos found by codespell
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-04-01 12:01:40 +02:00
Max Mikhailov
f4957bd246 Merge pull request #2858 from zzzzBov/patch-1
Fix AST to include text for single line comments
2016-04-01 01:08:56 +03:00
Timothy
7853edcc96 Fix AST to include text for single line comments 2016-03-31 16:14:29 -04:00
Max Mikhailov
5bf6329469 Merge pull request #2853 from addaleax/path-dirname-string-input
bin/lessc: Make sure path.dirname gets passed strings
2016-03-27 18:47:43 +04:00
Anna Henningsen
ec04a03f1c bin/lessc: Make sure path.dirname gets passed strings
Since nodejs/node@08085c49b6, which will be part of Node.js v6.0,
functions from the `path` core module (like `dirname`) will require
the input to be a string.

Because `.sourceMapFullFilename` and `.sourceMapInputFilename` in
bin/lessc may be `undefined`, default to passing `'.'` to
`path.dirname` instead.
2016-03-27 12:27:27 +02:00
Matthew Dean
2c974b2c02 Add some more URLs for less-docs builds 2016-03-26 11:27:13 -07:00
Matthew Dean
c548e3c223 Add master branch path for less-docs builds 2016-03-26 10:52:38 -07:00
Matthew Dean
a577abf8e1 Clean up log messages 2016-03-25 14:45:20 -07:00
Matthew Dean
d666829260 Fix for Jasmine tests - don't log messages in production 2016-03-25 14:43:56 -07:00
Andrej
8feb269e8e Fix both issues of the refresh() function: #2844 (promise called sometimes too soon) and #2812 (promise never called if no less files were declared). 2016-03-24 15:20:00 +01:00
Matthew Dean
bcc8ced8b0 Merge pull request #2754 from Synchro/master
Update contrast function and tests, fixes #2743
2016-03-15 09:52:40 -07:00
Matthew Dean
2f07cd7b42 Merge pull request #2785 from less/root-functions
Allows root (non-value) functions in Less
2016-03-15 09:51:52 -07:00
Matthew Dean
87d59fabd6 Fix attempt for Travis build 2016-03-15 09:42:34 -07:00
Matthew Dean
6ae3582a8c Merge branch 'master' into root-functions
* master:
  Make sourcemap generation a bit faster
2016-03-15 09:30:10 -07:00
Matthew Dean
d094d7e8fb Merge pull request #2834 from Medium/nick-sourcemap
Make sourcemap generation a bit faster
2016-03-15 09:05:11 -07:00
Matthew Dean
d061bdb2f1 Added tests for valid and invalid nodes returned by functions 2016-03-05 14:31:13 -07:00
Nick Santos
470af20f64 Make sourcemap generation a bit faster 2016-03-04 17:55:55 -05:00
Matthew Dean
6e97db84b3 Tests passing for creating directives 2016-03-04 14:10:53 -07:00
Matthew Dean
7a80224415 Merge branch 'master' into root-functions 2016-03-04 09:47:48 -07:00
Matthew Dean
b550b2081f v2.6.1 v2.6.1 2016-03-04 09:37:57 -07:00
Max Mikhailov
d83e6706c8 Merge pull request #2827 from less/revert-2821-greenkeeper-jit-grunt-0.10.0
Revert "Update jit-grunt to version 0.10.0"
2016-02-28 16:31:48 +03:00
Max Mikhailov
0833c2ea8c Revert "Update jit-grunt to version 0.10.0 🚀" 2016-02-28 16:31:18 +03:00
Max Mikhailov
f7bb9270b5 Merge pull request #2821 from less/greenkeeper-jit-grunt-0.10.0
Update jit-grunt to version 0.10.0
2016-02-28 14:28:44 +03:00
Max Mikhailov
4bd587818c Merge pull request #2797 from seven-phases-max/fix-variable-call-whitespace
Disallow whitespace in variable calls (i.e "DR"-calls)
2016-02-24 20:01:08 +03:00
greenkeeperio-bot
1ce0a0c124 chore(package): update jit-grunt to version 0.10.0
http://greenkeeper.io/
2016-02-23 15:37:15 +01:00
Max Mikhailov
73b4b141ce Merge pull request #2820 from less/greenkeeper-grunt-contrib-concat-1.0.0
update grunt-contrib-concat to version 1.0.0
2016-02-21 10:46:39 +03:00
greenkeeperio-bot
cd4af86a95 chore(package): update grunt-contrib-concat to version 1.0.0
http://greenkeeper.io/
2016-02-21 05:01:19 +01:00
Max Mikhailov
1bc481bb9a Merge pull request #2819 from SomMeri/issue-2798-guards-regression
Guard expressions regression in 2.6.0 (#2798)
2016-02-18 07:54:29 +03:00
meri
c12a7df917 This fixes #2798 - left part of inequality could not be enclosed in
parenthesis.
2016-02-17 16:20:17 +01:00
Max Mikhailov
7b4dcc10f6 remove redundant condition in parser.expect per #2804 2016-02-17 11:33:46 +03:00
Max Mikhailov
67c3875900 Merge pull request #2804 from marijaselakovic/master
use instanceof operator instead of class comparison optimization
2016-02-17 11:30:48 +03:00
Luke Page
0b27e60631 Merge pull request #2817 from less/greenkeeper-grunt-contrib-jshint-1.0.0
Update grunt-contrib-jshint to version 1.0.0 🚀
2016-02-17 05:33:04 +01:00
greenkeeperio-bot
0d09826b28 chore(package): update grunt-contrib-jshint to version 1.0.0
http://greenkeeper.io/
2016-02-17 01:47:36 +01:00
Luke Page
edfa374e69 Merge pull request #2815 from less/greenkeeper-grunt-contrib-clean-1.0.0
Update grunt-contrib-clean to version 1.0.0 🚀
2016-02-16 05:41:02 +01:00
greenkeeperio-bot
d148ce5881 chore(package): update grunt-contrib-clean to version 1.0.0
http://greenkeeper.io/
2016-02-15 22:52:42 +01:00
Max Mikhailov
44bf19c396 Merge pull request #2813 from mbrodala/patch-1
Fix typo on and/or change
2016-02-15 14:42:33 +03:00
Mathias Brodala
7427cb6996 Fix typo on and/or change 2016-02-15 09:41:11 +01:00
Max Mikhailov
01aec33d53 Merge pull request #2811 from Justineo/patch-1
Update CHANGELOG.md
2016-02-14 09:24:27 +03:00