Commit Graph

129 Commits

Author SHA1 Message Date
Luke Page
5e4fa2a5a5 Fix the depends option. Fixes #1799 2014-11-15 10:12:27 +00:00
Luke Page
e02449b656 improve some of the source map options 2014-10-19 21:00:19 +01:00
Luke Page
fde35b7c1c Fix default rootpath. Do not apply to sourcemap filename. Replace windows directory seperators. 2014-10-19 18:21:49 +01:00
Luke Page
c0f60cccf8 Fix plugin issues 2014-10-09 18:21:31 +01:00
Luke Page
9869b29c3d Add file manager to plugin system 2014-10-09 17:45:30 +01:00
Luke Page
8d431179e5 Add logger 2014-10-05 20:36:23 +01:00
Luke Page
7a6b1e278b Pull out the file manager aspect of the environment so new file managers can be added dynamically 2014-10-04 17:46:30 +01:00
Luke Page
b3b8b278bd import managaer related simplifications 2014-09-22 20:32:46 +01:00
Luke Page
40e0b212a6 simplify sourcemapfilename in lessc and expose the output filename 2014-09-20 03:26:06 +01:00
Luke Page
c07531a46f Fix the sourcemap options to default to the correct directories 2014-09-20 02:59:24 +01:00
Luke Page
5dbae36642 Do not require users to construct a source map builder 2014-09-20 00:43:02 +01:00
Luke Page
e172602938 change render and tree to return an object containing css and map and in the future possibly other things 2014-09-20 00:29:05 +01:00
Luke Page
d9a6b46234 initial work to allow post process plugins to work with sourcemaps 2014-09-19 14:45:41 +01:00
Luke Page
b721c4f44f use a sourcemap builder for sourcemap output, seperated from the other less options 2014-09-18 22:23:15 +01:00
Luke Page
86f78fa197 support min version 2014-09-18 12:53:05 +01:00
Luke Page
771ab4e430 sort out usage and allow a plugin argument 2014-09-17 21:14:40 +01:00
Luke Page
6ea7a1995e move out clean css 2014-09-17 15:09:04 +01:00
Luke Page
e357dae7bc allow lessc to load plugins. rename visitor directory to visitors to match others. Fix indexes in URL 2014-09-09 21:20:04 +01:00
Luke Page
d9c42e206d seperate out the environments at the top-most-level 2014-09-04 19:11:59 +01:00
Luke Page
e108b50c51 move cleancss into lessc bin only 2014-09-03 18:33:19 +01:00
Luke Page
544bd3abf0 Change code to use less.render 2014-09-03 16:24:09 +01:00
Luke Page
f85f253586 merge from master 2014-08-14 17:27:16 +01:00
Luke Page
a16aff18b9 update dependencies 2014-08-14 17:04:51 +01:00
Luke Page
1ff24b4c26 do not use util.print since it is deprecated. Fixes #2081 2014-07-27 16:56:46 +01:00
Luke Page
d0f2305b12 tidy merge - fix mistake in lessc and remove dist files merged in 2014-06-10 19:34:33 +01:00
Luke Page
fdd01f6b00 merge in latest 1.7.1 release 2014-06-10 19:30:21 +01:00
boxiang chen
56d062bba1 If the end line is comments, the modify-var option will have no effect. 2014-05-26 09:26:07 +08:00
Luke Page
501b7fa9a6 use graceful fs for file actions 2014-05-11 07:44:33 +01:00
Daniel Chatfield
df6ae88206 Fix error message when using cleancss with sourcemap 2014-03-25 15:03:02 +00:00
Luke Page
a8ded64edb add banner and setup dist to generate browser output from browserify 2014-03-02 09:47:32 +00:00
Luke Page
ee64392362 Merge branch 'master' into 2_0_0
Conflicts:
	lib/less/import-visitor.js
	lib/less/index.js
2014-02-27 21:12:49 +00:00
Luke Page
0c8e117b85 update readme and rename LESS to Less 2014-02-27 20:22:47 +00:00
Luke Page
f0d0ac965d Merge branch 'master' into 2_0_0
Conflicts:
	package.json
2014-02-22 15:31:32 +00:00
Luke Page
ca06fee982 when in lint mode, report errors from creating css. Fixes #1786 2014-02-21 11:33:37 +00:00
Luke Page
f3b9713ba3 correct spelling of compatibility option 2014-02-18 07:21:22 +00:00
Luke Page
d31e2d5740 upgrade dependencies 2014-02-17 20:25:18 +00:00
Luke Page
d8467744c5 remove opimization from lessc 2014-02-15 14:50:08 +00:00
Luca Bernardo Ciddio
d6244cb3f9 Renamed --cache-buster option to --url-args 2014-01-18 19:26:27 -08:00
Luca Bernardo Ciddio
958716160f Cache buster for url tokens 2014-01-16 21:12:56 -08:00
Luke Page
75f453b3f5 Fix the return code when asking for help/options. Fixes #1664 2013-12-21 23:22:29 +00:00
Luke Page
5c41f72fa9 add clean css options parameter and option. fixes #1721 2013-12-08 10:52:06 +00:00
Luke Page
ef4c2b75a9 correct the sourcemap url option 2013-11-17 16:38:35 +00:00
Luke Page
355cd7488e rename the sourcemappingurl to sourcemapurl, add to bin/lessc and adjust to not normalize 2013-11-17 16:26:47 +00:00
Kevin Attfield
855eca1d93 added sourceMappingURL option 2013-11-17 15:57:38 +00:00
Luke Page
cc401c2def warn about using sourcemap option with clean css 2013-11-16 22:55:51 +00:00
Max Ruman
7268386570 Disable yui-compress parmeter (instead of falling back to incompatible clean-css). Fixes #1637 2013-11-16 17:13:04 +00:00
Max Ruman
9d2b48d481 Add lessc parameter availability check. Fixes #1637
Conflicts:

	bin/lessc
2013-11-16 17:12:42 +00:00
Max Ruman
9b6d760b48 Change lessc exit status code on error. Fixes #1637 2013-11-16 17:11:18 +00:00
Christian Hammond
daec7dff1c Support specifying custom variables when calling lessc and less.js.
Both lessc and less.js can now be provided with global variables that
all .less files will have immediate access to. This can be used to
provide, for example, a base path for an @import, signed URLs offering
temporary access to an image on S3, or anything else.

lessc has two new parameters, --global-var and --modify-var. Both take
a value of the form "varname=value". --global-var declares variables
immediately before the content of the .less files, and --modify-var
declares them after.

--global-var is used when rules, imports, or other variables will depend
on the provided variable.

--modify-var is used to override a variable declared within the .less
file.

less.js's equivalent for global variables is less.globalVars. This can
be set before loading less.js. There is no new requivalent to
--modify-var, as less.modifyVars can be used for that purpose.
2013-11-14 02:58:34 -08:00
Luke Page
7a978cd28f make the inline option more obvious. fixes #1603 2013-10-17 17:50:48 +01:00