Commit Graph

65 Commits

Author SHA1 Message Date
Luke Page
b98b8ca09a Try a smaller spec 2014-10-21 07:23:11 +01:00
Luke Page
65adf2fd1d try sauce 2014-10-20 21:45:30 +01:00
Luke Page
329e87563a improver browsertest-server and use jasmine js-reporter (for integration with sauce) 2014-10-20 09:29:49 +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
114d3e59e8 Tidy up after solving problem when building in linux 2014-10-19 09:47:39 +01:00
Luke Page
f3d667bb22 test linux build 2014-10-19 09:43:38 +01:00
Luke Page
545ee85a25 travis CI test 3 2014-10-19 08:44:56 +01:00
Luke Page
54a8a38077 use connect instead of http server and upgrade some more packages 2014-10-18 09:05:19 +01:00
Luke Page
5796cf29e0 upgrade browserify. Use the promise shim instead of the full node version in the browser. 2014-10-18 08:34:54 +01:00
Luke Page
cd0cf0e243 Seperate browser a bit more 2014-10-07 21:47:35 +01:00
Luke Page
ee9eefd94f Fix some more browser tests 2014-10-05 09:30:00 +01:00
Luke Page
d9c42e206d seperate out the environments at the top-most-level 2014-09-04 19:11:59 +01:00
Luke Page
d0b6c50aef missing rename in gruntfile 2014-09-03 16:23:23 +01:00
Luke Page
f85f253586 merge from master 2014-08-14 17:27:16 +01:00
Luke Page
5d406c4dd7 simplify readme - remove build system and add version badge instead 2014-08-14 17:09:41 +01:00
Luke Page
dce4f907b4 change gruntfile to use same whitespace as the rest of the project 2014-03-02 09:53:38 +00:00
Luke Page
08490fd523 Merge remote-tracking branch 'origin/master' into 2_0_0
Conflicts:
	Gruntfile.js
2014-03-02 09:51:44 +00:00
Luke Page
a8ded64edb add banner and setup dist to generate browser output from browserify 2014-03-02 09:47:32 +00:00
XhmikosR
dfbf04ac12 Remove trailing spaces from the license header. 2014-03-01 19:38:44 +02:00
Luke Page
3229b45fea get the browser file running and processing less (still doesnt pass tests though) 2014-02-27 22:25:51 +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
08bd23dc2a add browserify (not yet working) and refactor tree nodes to not be dependent on their parent (currently breaks browser build) 2014-02-24 21:22:52 +00:00
Luke Page
e8c78d9d40 Merge branch 'master' into 2_0_0
Conflicts:
	lib/less/browser.js
	lib/less/parser.js
2014-02-23 17:38:39 +00:00
Luke Page
21165a34eb remove other dist files and update gruntfile not to generate rhino lessc 2014-02-13 22:40:21 +00:00
Luke Page
d4fe4ed6cf Merge branch 'master' of https://github.com/cgross/less.js into 2_0_0
Conflicts:
	bower.json
2014-02-13 22:33:47 +00:00
Cloud Chen
0a7954355a Implement postProcessor callback feature for less.ls browser environment #1835
Add `jasmine:postProcessor` task and corresponding spec as well
2014-02-03 00:07:38 +08:00
Doug Haber
9b3513b801 Split rhino and rhino version of lessc. This lets us have cleaner tests (since we don't need to include the test code in the rhino source). Also
sets the stage for sharing lessc code between lessc and rhino less (issue #14) and provides a hook so lesscss-java can have custom js.
2014-01-21 21:48:37 -05:00
Doug Haber
0d06fd1932 Don't build lint source-map since its owned by another project 2014-01-14 18:32:08 -05:00
meri
85197ee577 Merge branch 'master' of https://github.com/less/less.js into rhino
Conflicts:
	.gitattributes
	README.md
	test/index.js
2014-01-14 22:48:46 +01:00
Doug Haber
de4e888211 Add Support Map Tests
This patch adds Support Map Tests to the rhino test suite.  It makes the
following changes:

1.  Fix typo in the Gruntfile.js for the sourcemap-test
2.  Update Gradle build to always build the less-rhino-<version>.js
before running the tests
3. Add a new testRhinoSourceMap and add it to the test list
4. Add a SourceMapRhinoTest that bootstraps SourceMap tests and then
validates them after they run
5. Add hooks in RhinoTest to support custom bootstraping and validation
6. Add compiled version of source-map (version 0.1.31) because Rhino
can't dynamically pull in dependencies
7. Add source-map to the Rhino build with a Header/Footer that wraps
source-map as a less-friendly dependency
8. Update lib/less/rhino.js to properly handle (some) source-map options
and add a new one (--source-map-output-map-file) that will output the
source-map to a separate file (so we can validate our Rhino tests)
9. Remove unused callback in less-test.js
2014-01-13 23:39:52 -05:00
Luke Page
86476d58cb allow empty files 2014-01-12 11:51:02 +00:00
Doug Haber
cfb04d1483 Update gradle build to:
1. Build the latest version of the rhino less version
2. Use the latest version to test against

Also update Grunt build to have a build rhino task
2014-01-10 16:19:04 -05:00
Luke Page
49a0e81a38 Merge pull request #1717 from joscha/fix-head
Minifier complains about annotation in non-JSDoc tag
2013-12-08 02:59:50 -08:00
Joscha Feth
a2f979d935 Change American spelling to UK spelling 2013-12-05 19:37:45 +01:00
Joscha Feth
f827819197 Minifier complains about annotation in non-JSDoc tag
```INFO: [Minify] Minify: Exception in minifier: input:1665: WARNING - Parse error. Non-JSDoc comment has annotations. Did you mean to start it with '/**'?```
2013-12-05 19:00:50 +01:00
Chris Gross
335955fc36 removed all version numbered files from dist 2013-11-26 17:02:29 -05:00
Chris Gross
8e180983b3 Updated grunt build to provide a less.js/less.min.js w/o version number. Also added automatic updating of ver from package.json to bower.json. 2013-11-26 15:01:52 -05:00
Luke Page
13f41017ed move the tester into a seperate module so it can be used by other projects 2013-11-20 22:05:34 +00:00
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