picomancer
a6cdb81b30
Replace deprecated sys.puts with console.log, resolve #1529
2013-09-16 18:32:29 -04:00
Luke Page
176260a035
allow sourcemaps to be inline, in the css
2013-09-14 19:33:08 +01:00
Luke Page
de23ea6652
Fix the default for the sourcemap basepath
2013-09-14 11:26:19 +01:00
Luke Page
0a70eded8b
Merge pull request #1543 from andjo/sourcemap-options
...
Sourcemap basepath option
2013-09-14 03:22:40 -07:00
Luke Page
6eb992a775
Merge pull request #1412 from christopherobin/master
...
Allow imports from self-signed SSL hosts
2013-09-11 05:01:53 -07:00
Anders Johansson
5ef2ff1707
Added --source-map-basepath option
2013-09-11 13:48:07 +02:00
Luke Page
969e70a573
sourcemaps: Fix some issues with output, add an inline flag, add a test harness
2013-07-31 22:11:53 +01:00
Luke Page
1563d5c087
sourcemaps: rename rootpath to basepath and add a rootpath option
2013-07-31 21:01:15 +01:00
Luke Page
37c4e1126a
correct some paths
2013-07-26 17:06:04 +01:00
Luke Page
b2a445c46c
pass more lines and columns to the sourcemap generator. start passing the filenames to the sourcemap generator.
2013-07-20 23:02:28 +01:00
Luke Page
8c3e304966
get the map file outputting and reference file from the end of the css file
2013-07-19 06:54:02 +01:00
Luke Page
f14f86136c
add tests for sourcemaps and get prototype working
2013-07-18 22:21:59 +01:00
Luke Page
1ec0563c9a
add sourcemapper class
2013-07-18 13:06:56 +01:00
Christophe Robin
2d1afdfe91
Added switch --insecure to allow imports from insecure/self-signed SSL certificates
2013-07-11 16:45:23 +09:00
Luke Page
283d623a98
switch to use the clean-css compressor. #1349
2013-07-09 08:22:59 +01:00
Luke Page
98f2fef2df
add option to disable javascript. Fixes #688
2013-07-05 06:52:29 +01:00
Luke Page
ff6a0395b5
missing option name change
2013-06-05 19:56:06 +01:00
Luke Page
65602099cc
rename strictMaths to strictMath, set default to false, update strict options to take = on | off
2013-05-02 18:18:51 +01:00
Luke Page
3fc8944ce8
Tidy up options
2013-03-20 08:42:01 +00:00
leeight
fc56975b3a
ENABLE max-line-len options support
2013-03-20 08:26:03 +00:00
Luke Page
285f4ac820
Do not normalize rootpath option as it is a URL. Fixes #1234
2013-03-20 08:14:17 +00:00
Luke Page
45ea535a90
Add implementation of dependency tree
2013-03-06 10:43:45 +00:00
Stefan Wallin
afbe22d215
* "Added a -depends switch which outputs a dependency line suitable for a makefile" ( 10696d9c11)
...
* Added a synonym flag "-M" to "-depends" to match syntax of other compilers.
* Added support for recursive dependencies.
* Fixed some issues with path calculation when dependencies and recursive dependencies.
lukeapage - removed the actual writing of dependency lines ready for re-implementation
2013-03-06 10:40:49 +00:00
Daniel Stockman
b9bc6e73a0
Pass silent and verbose flags to evalEnv.
2013-02-26 18:55:37 +00:00
Daniel Stockman
a5b653af70
Actually pass ieCompat into evalEnv for lessc.
2013-02-26 18:55:37 +00:00
Daniel Stockman
e4fe935ea1
Prevent data-uri function from embedding files larger than 32KB.
...
Although IE8 does support data-uris, it only does so with a limit of 32KB. It's a silly limitation, but a source of potential bugs. When the limit is exceeded, the data-uri() function will simply return a normal url() value with a relative path to the asset.
One may pass --no-ie-compat to lessc to avoid this safeguard.
2013-02-26 18:55:35 +00:00
Luke Page
3ef22f16f9
Add strictUnits option, add tests for legacy behaviour
2013-01-30 20:31:26 +00:00
Luke Page
988d378922
add evalEnv class and strictMaths option
2013-01-25 20:05:37 +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
Daniel Stockman
8d1eaa2ae8
Optionally use mkdirp to ensure output destination directory exists. Fixes #1099
2013-01-10 22:24:59 +00:00
Richard Brown
fb60990145
Add a lint option to lessc
2013-01-05 15:29:47 +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
Daniel Stockman
a62e8f6c00
Log output file written when verbose.
...
This helps CI builds keep a record of exactly what happened, among other things.
2012-12-12 23:00:16 +00:00
Daniel Stockman
092f81d452
Back-compat for existsSync in directory check
...
fs.existsSync was added in 0.6, and path.existsSync was added in 0.4.2:
http://nodejs.org/docs/v0.4.2/api/path.html#path.existsSync
2012-12-12 23:00:15 +00:00
Daniel Stockman
f4105114f0
lessc: Defend against missing output directories
...
If an output specifies a destination inside a directory that doesn't exist, it blows up unceremoniously. Let's avoid that.
Also, uses modern fs.writeFileSync instead of manual open/write/closeSync.
2012-12-12 23:00:14 +00: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
Vsevolod Vlasov
ccfa7402a1
Added ruleset source line number dumping support for debugging purposes.
2012-10-07 12:16:01 +01:00
Luke Page
2d8ede3436
remove process.exit calls as they do not guarentee a flushed stdout
2012-08-15 21:14:06 +01:00
Matt
fb21a897f6
Add some content to lessc help
...
Added some details to lessc and extracted a printUsage method.
Fixes #817
2012-08-15 18:53:35 +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
Luke Page
861b63ce08
close the file written to in lessc. Fixes #570
2012-08-12 17:39:20 +01:00
Alexis Sellier
236f16b124
Allow '@import' directives in any selector
...
Add --strict-imports option to disable for perf
reasons.
2012-02-28 17:20:11 +01:00
Christian Zeller
a15dd33574
Improved Windows path support in lessc
2011-12-12 10:37:47 +01:00
Alexis Sellier
62e7840a6e
Merge pull request #494 from jmcclell/patch-1
...
Adding support for absolute paths on Windows.
2011-12-10 05:05:07 -08:00
Alexis Sellier
c2d61e75de
Merge branch 'master' of https://github.com/Glench/less.js into yui
2011-12-10 13:52:07 +01:00
Garth Williams
d5bb283a62
Updated lessc require from sys to util for nodejs 0.6.*
2011-12-04 20:54:46 +01:00
Glen Chiacchieri
e57fd2383e
Add yui css compressor on lessc for better compression. Call with lessc
...
--yui-compressor. If -x and --yui-compressor are present, it will only
use the YUI compressor.
2011-12-02 17:33:12 -05:00
Jason McClellan
866b6b483c
Adding support for absolute paths on Windows.
2011-11-28 08:37:41 -05:00