Commit Graph

124 Commits

Author SHA1 Message Date
Jon Schlinkert
38a8664013 Merge branch 'less.js/1.5.0-wip'
Conflicts:
	.jshintrc
	Makefile
	package.json
2013-08-01 06:51:59 -04:00
Luke Page
4c51ff1914 Merge branch 'lessmaster' into 1.5.0-wip 2013-07-20 22:17:39 +01:00
Luke Page
3235042f0f 1.4.2 release 2013-07-20 21:03:30 +01:00
Luke Page
800b4218d5 Start abstracting re-organising logic into a visitor before css output. Will allow nodes to just be 'read' and debugInfo written into a sourcemap. part 1. 2013-07-05 06:52:31 +01:00
David Cornu
823ba78380 Catch errors thrown by root.toCSS() 2013-07-05 06:51:49 +01:00
Luke Page
f4902f809c rename import silent to import mute. Fixes #1210 2013-07-05 06:51:02 +01:00
Luke Page
40ce2bc4b4 move new parseEnv into parser 2013-07-05 06:48:45 +01:00
Luke Page
e82536bfca Simplify more of loadFile and make more of the env creation common between node and browser 2013-07-05 06:48:44 +01:00
Luke Page
c391e72c5e seperate sheet and env 2013-07-05 06:48:43 +01:00
agatronic
c2adad8341 Change node to use the file loader interface 2013-07-05 06:48:40 +01:00
Luke Page
290376f4eb 1.4.1 release 2013-07-05 06:24:56 +01:00
Luke Page
5b6b5ccc8d 1.4.0 release 2013-06-05 21:17:47 +01:00
Luke Page
5bdb765394 Beta 4 2013-05-04 07:18:37 +01:00
agatronic
91bc69a193 Beta 3 release 2013-04-30 15:36:32 +01:00
Luke Page
2e0afb458b beta 2 release 2013-03-18 12:23:54 +00:00
Luke Page
bc6abb8e8b Change version to 1.4.0-b1 and regenerate beta files 2013-03-08 08:22:58 +00:00
Luke Page
aac8e973fe Add an extend finder visitor and extend processor visitor (breaks extend for now) 2013-03-04 10:03:16 +00:00
Luke Page
054beb2ad2 join selector visitor creation 2013-03-01 16:38:09 +00:00
Luke Page
5d54af2039 import interpolation finished. refactored the import phase to occur only within the import visitor - so that the import eval env can be passed between imports. 2013-03-01 13:40:54 +00:00
Luke Page
39f669e83c Add import visitor 2013-03-01 13:40:01 +00:00
Luke Page
c56db94b7d Add modified (self altering) visitor pattern and class 2013-03-01 13:40:00 +00:00
Luke Page
e7cbc4c190 Fix data-uri relative url to be relative in the same way as normal url's 2013-02-17 12:44:31 +00:00
Luke Page
914eb404d7 Fix import errors in browser mode. Fixes #1117 and fixes #1118 2013-02-10 12:47:25 +00:00
Luke Page
88f3f02213 Correct some error inconsistancies. Add browser testing of errors - import missing error fails because of #1117 2013-02-05 22:38:43 +00:00
Luke Page
531195c92d take maths further 2013-01-24 22:27:17 +00:00
Dustin Cass
bf1823f109 Removed Shorthand and Ratio parsers; Fixed some issues with paren depth state; Adjusted tests to pass on new output 2013-01-23 20:37:48 +00:00
Luke Page
e45ec8a31e refactoring - add a env type to better organise its properties 2013-01-23 19:07:29 +00:00
Luke Page
3f9d01ac2f optional dependencies should be loaded in a try-catch so they are actually optional 2013-01-11 22:29:46 +00:00
Luke Page
6ffee4b903 nice error message if missing dependency 2013-01-05 16:17:05 +00:00
Luke Page
70d610f877 support https and 301 redirects in imports. fixes #1103 2013-01-05 16:08:32 +00:00
hokaccha
e793e81e92 Add Sass like extend 2013-01-05 15:29:32 +00:00
Luke Page
ebea51873e 1.4.0 version 2013-01-05 15:29:29 +00:00
Luke Page
a9775a34da (dist) build 1.3.3 2012-12-30 09:35:49 +00:00
Luke Page
d30e0e1a33 (dist) build 1.3.2 2012-12-28 22:30:10 +00:00
Luke Page
eb5c9fbf5d Relative url's option for node lessc 2012-12-28 15:25:15 +00:00
Salim Bensiali
e59a93b5fd Relative URLs in LESS files should be relative to the file that defines them.
It is up to the parser and compiler to rewrite them when those files are
imported by another LESS file.

- Modified and added test cases for import and import-once rules
- Fixed difference between client side and server side handling of relative urls
- Added a -rootpath option to lessc to specify another base path for the url
  rewriting. By default, rootpath=''
2012-12-27 20:40:16 +00:00
Luke Page
22a4a0c874 tidy code up, change to callback errors instead of system exit 2012-12-22 19:38:24 +00:00
mar
34a5184af0 support for @import linking to .less files over HTTP 2012-12-22 19:03:41 +00:00
Luke Page
8cfe7acdae make import-once use the full path, not the possibly relative path to determine if an import has already been included 2012-12-22 10:21:28 +00:00
Luke Page
b9061ac621 Look in the current directory last when looking for imports. Fixes #1083 2012-12-22 08:27:56 +00:00
Luke Page
dddda0b0d3 Add support for unicode descriptors. Fixes #1107 2012-11-05 20:30:49 +00:00
Ville Immonen
d225950f27 Added an option to import files synchronously. 2012-10-28 14:55:39 +00:00
Luke Page
5325291f36 Update version number on index 2012-10-23 17:05:47 +01:00
Luke Page
abf87255f7 Only output stack if it is not a less error 2012-10-21 15:27:06 +01:00
Simone Deponti
959e22f5ff Added media query support.
* env.dumpLineNumbers was being lost when doing "offline" compilation
   (within node.js)
 * Added documentation for the changed options
 * --line-numbers now takes a parameter
   (either "comments", "mediaquery" or "all")
 * The system can now again output mediaqueries for FireLESS
 * Moved comments tests in debug/comments, will duplicate
   for mediaquery and for "all"

Everything is still utterly broken though, tests still fail.
2012-10-07 12:16:03 +01:00
Matt
5132c71a5b Fix error output and extract a helper object for lessc related methods
- Fixed a bug, which prevents colors from being set in error messages.
- Created a helper object for lessc methods and moved the stylize function
  into it. Changed test/less-test.js and lib/less/index.js to use new methods.
- Removed duplicate definitions of the stylize function.
2012-08-15 18:53:35 +01:00
Paulo Gaspar
66bbb9a44a Fix for issue 592. Additional removal of TODOs and Rhino support by
@agatronic.
2012-08-11 16:40:59 +01:00
Matt
3be05a1c7b Remove trailing ANSI escape sequences in no-color mode
Added a 'reset' code to the stylize function and changed the previously
hard-coded ANSI escape sequence string to a function call.
2012-08-05 11:57:35 +01:00
skoni
be675c6566 Move error formatting to a seperate function 2012-08-05 11:26:12 +01:00
Andrew Stone
221e850b89 add support for ratios in media queries 2012-07-28 18:14:48 +01:00