26 Commits

Author SHA1 Message Date
Joshua Spence
18f4083f29 A better solution for fixing #1619 2013-11-17 12:55:34 +11:00
Joshua Spence
ce56c0d185 Fixes #1619 2013-11-16 14:10:06 +11: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
a588677c26 add ! to keep comment on minification pattern. Fixes #1396 2013-09-16 20:03:22 +01:00
Luke Page
193c6da1a9 remove alpha and beta as they can be determined from the version number 2013-09-09 22:27:36 +01:00
Luke Page
ea83b9147b Fix the final tests and get grunt to stop f the javascript tests fail 2013-09-09 08:00:48 +01:00
Luke Page
fc6f9d81bd Fix most of the browser tests running through grunt 2013-09-05 13:16:41 +01:00
Luke Page
e2724cd64a add the test sourcemaps command and delete unused file 2013-09-05 12:43:26 +01:00
Luke Page
04c5d5d78c re-organise the grunt tasks a little and update readme 2013-09-05 12:28:26 +01:00
Luke Page
f3a9476dc2 fix jshint grunt task 2013-09-05 07:25:50 +01:00
Jon Schlinkert
5bcc049450 consolidates jshint targets since they aren't being run separately. cleans up some tasks. 2013-08-21 16:34:09 -04:00
meri
1105f1e02f Raised timeout for error test, it did not made it till the end
occasionally.
2013-08-07 16:18:50 +02:00
meri
12da566398 Added modify vars tests. 2013-08-07 13:52:10 +02:00
meri
d2c60d2884 Added production tests. 2013-08-07 11:30:16 +02:00
meri
296dac360c Added rootpath-relative tests. 2013-08-07 11:09:48 +02:00
meri
1f4bab6453 Added rootpath tests. 2013-08-07 09:41:59 +02:00
meri
58f35b4cd1 Added relative urls tests. 2013-08-07 09:17:19 +02:00
meri
e41d32184e Converted browser/browser tests into jasmine. 2013-08-06 16:45:59 +02:00
meri
1ea0416adb Added wait into error tests. 2013-08-05 15:58:04 +02:00
meri
3765bb2926 Did legacy tests and working on errors. 2013-08-05 11:32:06 +02:00
meri
ac8cff4a6a Clean up 2013-08-03 19:23:51 +02:00
meri
81d532495c Removed obsolete option. 2013-08-03 19:20:45 +02:00
meri
744eb355f0 Undo meaningless change. 2013-08-03 16:27:49 +02:00
meri
9eddb1b5af Added template and config for main runner. 2013-08-03 16:20:06 +02:00
Jon Schlinkert
aa7e3cc015 fixed stripBanners type in concat task. reformatted author name/email in package.json. 2013-07-30 02:17:59 -04:00
Jon Schlinkert
a3c0049d4c Add Gruntfile with tasks/target configurations, and commands for running tasks. 2013-07-24 16:01:30 -04:00