Skip to content

2.0.0 Work In Progress Pull Request #1902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 191 commits into from
Oct 19, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
8e18098
Updated grunt build to provide a less.js/less.min.js w/o version numb…
Nov 26, 2013
335955f
removed all version numbered files from dist
Nov 26, 2013
3322609
More consistent named colour variables.
seven-phases-max Jan 23, 2014
e1877d8
More consistent named colour variables. Updated.
seven-phases-max Jan 23, 2014
7b0ce1e
ignore directories not needed for node
lukeapage Feb 13, 2014
d4fe4ed
Merge branch 'master' of https://github.com/cgross/less.js into 2_0_0
lukeapage Feb 13, 2014
21165a3
remove other dist files and update gruntfile not to generate rhino lessc
lukeapage Feb 13, 2014
8ddcf66
Merge branch 'color-string-variable' of https://github.com/seven-phas…
lukeapage Feb 13, 2014
e8da09e
some changelog notes
lukeapage Feb 13, 2014
a9e8cc6
remove dist files introduced by merge
lukeapage Feb 15, 2014
c844b02
remove unused optimization level
lukeapage Feb 15, 2014
d846774
remove opimization from lessc
lukeapage Feb 15, 2014
f0d0ac9
Merge branch 'master' into 2_0_0
lukeapage Feb 22, 2014
edd3729
Fix scope test
lukeapage Feb 22, 2014
35d58f2
start abstracting out the file loader
lukeapage Feb 22, 2014
e989b01
remove the old importer interface and move the node code into the com…
lukeapage Feb 22, 2014
9d94e1c
move the browser file out into the same format as the node environmen…
lukeapage Feb 22, 2014
0106536
Merge branch 'master' into 2_0_0
lukeapage Feb 22, 2014
868baa3
Merge branch 'master' into 2_0_0
lukeapage Feb 23, 2014
e8c78d9
Merge branch 'master' into 2_0_0
lukeapage Feb 23, 2014
f65da55
Fix tests
lukeapage Feb 24, 2014
208b32a
remove commented out code now implemented in parser
lukeapage Feb 24, 2014
08bd23d
add browserify (not yet working) and refactor tree nodes to not be de…
lukeapage Feb 24, 2014
462b027
move environment to the less namespace
lukeapage Feb 24, 2014
ddf1a45
continue moving node functionality into the environment interface. fu…
lukeapage Feb 24, 2014
e30cccc
move sourcemap generator to environment
lukeapage Feb 26, 2014
ee64392
Merge branch 'master' into 2_0_0
lukeapage Feb 27, 2014
37cd664
remove merged in dist files
lukeapage Feb 27, 2014
3229b45
get the browser file running and processing less (still doesnt pass t…
lukeapage Feb 27, 2014
418af74
get most of the browser tests running
lukeapage Feb 28, 2014
2ac8617
Fix the browser tests
lukeapage Mar 1, 2014
a8ded64
add banner and setup dist to generate browser output from browserify
lukeapage Mar 2, 2014
08490fd
Merge remote-tracking branch 'origin/master' into 2_0_0
lukeapage Mar 2, 2014
dce4f90
change gruntfile to use same whitespace as the rest of the project
lukeapage Mar 2, 2014
e5b0fb6
move the visitors to return themselves instead of assuming where they…
lukeapage Mar 2, 2014
7efbcd3
Trim trailing whitespace.
XhmikosR Mar 1, 2014
9fe311b
Enable JSHint's trailing check.
XhmikosR Mar 1, 2014
7f34acd
move visitors to a different namespace
lukeapage Mar 2, 2014
7dfc0cf
Merge branch 'whitespace' of github.com:XhmikosR/less.js into 2_0_0
lukeapage Mar 2, 2014
aa3abeb
fix trailing whitespace
lukeapage Mar 2, 2014
b2820b0
Return a promise rather than an event emitter
May 20, 2014
815d609
Use native Promises when available
May 20, 2014
07f9ba2
Move chunker and LessError into separate files
May 20, 2014
8e7274f
2.0.0 will require 0.10 or above of node.
lukeapage Jun 6, 2014
8c978cd
Pass env to chunker for use in error messages
Jun 6, 2014
78a92e7
Fix LessError being used before being defined
Jun 6, 2014
be151fb
Add missing semicolon
Jun 6, 2014
01a5d7c
Fix incorrect variable name for error
Jun 6, 2014
9d987ab
Update jshintrc
Jun 6, 2014
1d629bf
Merge pull request #2021 from ForbesLindesay/2_0_0-promises
lukeapage Jun 8, 2014
dcdc76f
Merge pull request #2022 from ForbesLindesay/2_0_0-refactor-chunker-a…
lukeapage Jun 8, 2014
fdd01f6
merge in latest 1.7.1 release
lukeapage Jun 10, 2014
d0f2305
tidy merge - fix mistake in lessc and remove dist files merged in
lukeapage Jun 10, 2014
94f746b
move some dependencies out of chunker. make chunker optional. start f…
lukeapage Jun 19, 2014
73c34ac
improve some of the error messages when not using the chunker.
lukeapage Jun 22, 2014
3830278
merge from master
lukeapage Jun 22, 2014
f85f253
merge from master
lukeapage Aug 14, 2014
ddba055
Fix merge errors and node tests
lukeapage Aug 14, 2014
953f70c
Fix browser tests
lukeapage Aug 14, 2014
d7e7ddb
move functions into its own folder and give it a set interface
lukeapage Aug 16, 2014
cde9b79
much improved comment parsing
lukeapage Aug 17, 2014
119c930
remove more dist files merged from master
lukeapage Aug 17, 2014
16746e9
untangle the mess of dependencies and remove all circular dependencie…
lukeapage Aug 24, 2014
c41df95
move tree index underneath tree
lukeapage Aug 24, 2014
95dedcc
rename env to contexts
lukeapage Aug 24, 2014
fe5e2bf
remove dependency injection from functions files apart from when need…
lukeapage Aug 24, 2014
e325aec
Also remove dep-injection from visitors, none of which use environmen…
lukeapage Aug 24, 2014
5148db6
move source map output into root directory
lukeapage Aug 24, 2014
f02d920
move parser files into a parser directory
lukeapage Aug 24, 2014
5d26a37
Merge branch 'master' into 2_0_0
lukeapage Aug 24, 2014
8720378
seperate out imports and tidy a few un-necessary optimisations
lukeapage Aug 25, 2014
f3c3238
make some corrections to comment
lukeapage Aug 25, 2014
41732cc
pull out the input processing out of the parser class and a few small…
lukeapage Aug 25, 2014
16c4f88
small optimisation/fix todo
lukeapage Aug 25, 2014
ca72b4d
Clean up dependency injection so environment is injected at the top l…
lukeapage Aug 26, 2014
8fc964d
Merge remote-tracking branch 'origin/master' into 2_0_0
lukeapage Sep 3, 2014
a0658a4
move render to be accessible in all environments and start using it i…
lukeapage Sep 3, 2014
d0b6c50
missing rename in gruntfile
lukeapage Sep 3, 2014
544bd3a
Change code to use less.render
lukeapage Sep 3, 2014
b55b596
move transform out of the parser
lukeapage Sep 3, 2014
e108b50
move cleancss into lessc bin only
lukeapage Sep 3, 2014
c4e2514
reworked guard comparison
seven-phases-max May 16, 2014
20025f1
Remove duplication in render function
lukeapage Sep 4, 2014
d3c6f22
Move toCSS out to a new class (still need to remove creation of that …
lukeapage Sep 4, 2014
9af3819
parser no longer needs to expose imports (they are on the parseTree) …
lukeapage Sep 4, 2014
ca77dc3
Parser does not need to have a parseEnv stored on itself
lukeapage Sep 4, 2014
e5faba5
Remove some interdepedencies
lukeapage Sep 4, 2014
4f5a449
move creation of env to invoker
lukeapage Sep 4, 2014
a46de44
move import manager creation out of parser
lukeapage Sep 4, 2014
9d23062
Parser no longer requires environment
lukeapage Sep 4, 2014
d9c42e2
seperate out the environments at the top-most-level
lukeapage Sep 4, 2014
c330c3a
Added guards checking to namespaces. Issue #1418.
Sep 5, 2014
2737557
Merge https://github.com/less/less.js into rhino
Sep 5, 2014
9f68f43
Fix #1973
seven-phases-max Sep 5, 2014
7a151e2
Merge pull request #2182 from seven-phases-max/fix-1973
lukeapage Sep 5, 2014
10f8824
Merge https://github.com/less/less.js into rhino
Sep 5, 2014
796d37c
Iterated string interpolation
Sep 5, 2014
a038121
Cleaned up and added iteration for javascript too.
Sep 5, 2014
f2bc59f
Merge remote-tracking branch 'origin/master' into 2_0_0
lukeapage Sep 5, 2014
09360ea
delete merged dist files
lukeapage Sep 5, 2014
e31442c
Merge branch '2_0_0' of https://github.com/less/less.js into 2_0_0
lukeapage Sep 5, 2014
cf0ac69
Merge branch 'reworked-guard-comparison' of github.com:seven-phases-m…
lukeapage Sep 6, 2014
518887e
Merge branch 'namespaces-guards-1418' of github.com:SomMeri/less-rhin…
lukeapage Sep 6, 2014
723b410
Merge branch 'SomMeri-namespaces-guards-1418' into 2_0_0
lukeapage Sep 6, 2014
6bd327b
Merge branch 'iterated-interpolation-2094' of github.com:SomMeri/less…
lukeapage Sep 6, 2014
bc42a73
Fix memory leak in error. Fixes #2025
lukeapage Sep 6, 2014
50e299b
Fix url import. Fixes #2089.
lukeapage Sep 7, 2014
2778f53
Point at the node version of less when imported and expose the enviro…
lukeapage Sep 7, 2014
1a78cd5
Remove unnecessary text from require statements
lukeapage Sep 7, 2014
e357dae
allow lessc to load plugins. rename visitor directory to visitors to …
lukeapage Sep 9, 2014
4927bf1
Add first draft post-processors, fix render function when using callb…
lukeapage Sep 12, 2014
1ecce8b
tree/directive.js: fix incorrect accept() code
seven-phases-max Sep 17, 2014
6ea7a19
move out clean css
lukeapage Sep 17, 2014
c7f8fe5
Merge branch '2_0_0' of https://github.com/less/less.js into 2_0_0
lukeapage Sep 17, 2014
771ab4e
sort out usage and allow a plugin argument
lukeapage Sep 17, 2014
86f78fa
support min version
lukeapage Sep 18, 2014
bc335d1
move rhino to its own folder
lukeapage Sep 18, 2014
b721c4f
use a sourcemap builder for sourcemap output, seperated from the othe…
lukeapage Sep 18, 2014
d9a6b46
initial work to allow post process plugins to work with sourcemaps
lukeapage Sep 19, 2014
e172602
change render and tree to return an object containing css and map and…
lukeapage Sep 19, 2014
5dbae36
Do not require users to construct a source map builder
lukeapage Sep 19, 2014
c07531a
Fix the sourcemap options to default to the correct directories
lukeapage Sep 20, 2014
40e0b21
simplify sourcemapfilename in lessc and expose the output filename
lukeapage Sep 20, 2014
a53be80
make the import manager one instance per render
lukeapage Sep 21, 2014
fb6c879
remove env from all environment calls except the ones that actually n…
lukeapage Sep 21, 2014
0c1fb32
Add another todo
lukeapage Sep 21, 2014
ff72e24
Fix browser if no less object specified
lukeapage Sep 22, 2014
b3b8b27
import managaer related simplifications
lukeapage Sep 22, 2014
3f38581
move some contexts into the import manager
lukeapage Sep 22, 2014
823ab22
further simplifications to the parse context
lukeapage Sep 22, 2014
d4415a5
Add an option to get the input filename
lukeapage Oct 4, 2014
a51c848
Fix interpolated selector match regression
seven-phases-max Oct 4, 2014
7a6b1e2
Pull out the file manager aspect of the environment so new file manag…
lukeapage Oct 4, 2014
70bf802
Fix the main browser tests
lukeapage Oct 4, 2014
10296d2
Merge pull request #2217 from seven-phases-max/2_0_0
lukeapage Oct 4, 2014
e040eff
Add back in test core js files
lukeapage Oct 4, 2014
0c168e1
Fix error filename
lukeapage Oct 4, 2014
27494c2
Fix svg function in browser
lukeapage Oct 4, 2014
ee9eefd
Fix some more browser tests
lukeapage Oct 5, 2014
3af0923
Fix final weird error - in phantom only some console.log calls are go…
lukeapage Oct 5, 2014
414df4d
rename imports to class name
lukeapage Oct 5, 2014
dedf0ee
rename env to context to avoid confusion with environment
lukeapage Oct 5, 2014
8d43117
Add logger
lukeapage Oct 5, 2014
9be165b
Fix tests by adding logger to record messages in test common js
lukeapage Oct 7, 2014
91025db
move browser log code out to log listener and remove option I added t…
lukeapage Oct 7, 2014
cd0cf0e
Seperate browser a bit more
lukeapage Oct 7, 2014
3450e33
Seperate out the browser cache
lukeapage Oct 7, 2014
1743aa0
Merge remote-tracking branch 'origin/master' into 2_0_0
lukeapage Oct 9, 2014
e6cd9ba
remove 2 files no longer used
lukeapage Oct 9, 2014
36a1d5e
Fix some links and version numbers
lukeapage Oct 9, 2014
d3ca207
jsdoc and add file manager
lukeapage Oct 9, 2014
9869b29
Add file manager to plugin system
lukeapage Oct 9, 2014
a344240
Remove unused warn function (replaced with logger) and allow null env…
lukeapage Oct 9, 2014
c0f60cc
Fix plugin issues
lukeapage Oct 9, 2014
b966cf1
some renames, tidy ups and bugfixes whilst adding npm plugin
lukeapage Oct 11, 2014
6d64213
Fix issue #2221
lukeapage Oct 11, 2014
a1808b8
upgrade promise dependency
lukeapage Oct 12, 2014
c40069e
Fix the API files
lukeapage Oct 12, 2014
a0b1b2f
refresh returns promise
levithomason Oct 12, 2014
999af91
set less.hasFinished to refresh() promise
levithomason Oct 14, 2014
d31be57
Fixes #713, #771, #1161
levithomason Oct 16, 2014
89358fa
more sane resolve
levithomason Oct 16, 2014
0e821f1
cleanup callback
levithomason Oct 16, 2014
3166564
Merge pull request #2226 from levithomason/feature/notify-on-finish
lukeapage Oct 17, 2014
659bf74
Merge pull request #2233 from levithomason/feature/reload-stylesheets
lukeapage Oct 17, 2014
8b42ae3
A few tweaks to browser loading
lukeapage Oct 17, 2014
55baaa5
use page load finished in tests
lukeapage Oct 18, 2014
5796cf2
upgrade browserify. Use the promise shim instead of the full node ver…
lukeapage Oct 18, 2014
0bc0330
upgrade uglify
lukeapage Oct 18, 2014
3eccec8
module upgrades
lukeapage Oct 18, 2014
54a8a38
use connect instead of http server and upgrade some more packages
lukeapage Oct 18, 2014
ee94d83
update packages
lukeapage Oct 18, 2014
8562e2c
Upgrade to jasmine v2
lukeapage Oct 18, 2014
6913f30
Test why travis CI is failing
lukeapage Oct 19, 2014
7b84a9f
another travis ci test
lukeapage Oct 19, 2014
545ee85
travis CI test 3
lukeapage Oct 19, 2014
f3d667b
test linux build
lukeapage Oct 19, 2014
114d3e5
Tidy up after solving problem when building in linux
lukeapage Oct 19, 2014
e715057
Delete un-needed files
lukeapage Oct 19, 2014
b8736e0
whitespace
lukeapage Oct 19, 2014
845ec72
improve error reporting
lukeapage Oct 19, 2014
9d535c0
Whitespace - undo unusual new() syntax
lukeapage Oct 19, 2014
fde35b7
Fix default rootpath. Do not apply to sourcemap filename. Replace win…
lukeapage Oct 19, 2014
9f82ece
sourcemap filename is optional so put a guard around the path replace
lukeapage Oct 19, 2014
d436b83
put the built-in cache on the less object
lukeapage Oct 19, 2014
c3831e1
ignore .grunt folder for npm
lukeapage Oct 19, 2014
65702f8
make sure plugins can be loaded from the current directory if lessc i…
lukeapage Oct 19, 2014
e02449b
improve some of the source map options
lukeapage Oct 19, 2014
feea4f6
ignore other things in bower that are not needed
lukeapage Oct 19, 2014
0fa3a9f
change version to beta 1
lukeapage Oct 19, 2014
4a0d806
build v2 beta and update changelog
lukeapage Oct 19, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ npm-debug.log
# project-specific
tmp
test/browser/less.js
test/sourcemaps/**/*.map
test/sourcemaps/*.map
test/sourcemaps/*.css

Expand Down
4 changes: 3 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"node": true,
"undef": true,
"unused": "vars",
"trailing": true,
"noarg": true,
"eqnull": true,
"forin": true
"forin": true,
"predef": ["Promise"]
}
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
.gitattributes
build/
.grunt/
benchmark/
test/
# re-include test files as they can be useful for plugins that do testing
!test/*.js
tmp/
gradle/
23 changes: 22 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# 2.0.0-b1

2014-10-19

- Public Beta / Release Candidate - Feedback welcome
For a guide to breaking changes see [the v2 upgrade guide](lesscss.org/usage/#v2-upgrade-guide)
- no longer including old versions of less in the repo or npm
- not including test less and gradle files in npm
- colours now output in the format they are added unless compressing, so yellow will output yellow, not its hex counterpart
- better parsing - better comment support and comments in brackets can now contain comments including quotes.
- Removal of dependency on clean-css - install less-plugin-clean-css and use --clean-css to reference plugin
- Environment Support - less is now separate from its node and browser environment implementations and adding support for another javascript environment should be straight forward.
- Plugin Support - it is now straight forward to add AST manipulations (see less-plugin-inline-images), file managers (see less-plugin-npm-import) and post processors (see less-plugin-clean-css and less-plugin-autoprefix).
- We now recommend using less.render and using the parser directly is not in the same way as in v2. It is possible but it would require changes and we do not guarantee it will not be broken in minor version releases.
- In the browser, less.pageLoadFinished will be a promise, resolved when less has finished its initial processing. less.refresh and less.modifyVars also return promises.
- In the browser, as before less is used as options, however this is now copied to less.options if you need to access after less has run
- In the browser, the cache can be overwritten by setting less.cache before less loads. After load less.cache will be the default implementation.
- less.js now uses browserify to generate its browser side component
- default values for the sourcemap options have been re-done and improved to hopefully mean creating sourcemaps is easier
- Many smaller bugfixes and API changes. Please let us know if something you relied on has disappeared or an area should be better documented.

# 1.7.5

2014-09-03
Expand Down Expand Up @@ -31,7 +52,7 @@
- Do not round the results of color functions, like lightness, hue, luma etc.
- Support cover and contain keywords in background definitions

# 1.7.2
# 1.7.2

2014-06-19

Expand Down
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Contributing to Less.js

> We welcome feature requests and bug reports. Please read these guidelines before submitting one.
> We welcome feature requests and bug reports. Please read these guidelines before submitting one.


<span class="warning">**Words that begin with the at sign (`@`) must be wrapped in backticks!** </span>. As a courtesy to avoid sending notifications to any user that might have the `@username` being referenced, please remember that GitHub usernames also start with the at sign. If you don't wrap them in backticks, users will get unintended notifications from you.

GitHub has other great markdown features as well, [go here to learn more about them](https://help.github.com/articles/github-flavored-markdown).
GitHub has other great markdown features as well, [go here to learn more about them](https://help.github.com/articles/github-flavored-markdown).


## Reporting Issues

We only accept issues that are bug reports or feature requests. Bugs must be isolated and reproducible problems that we can fix within the Less.js core. Please read the following guidelines before opening any issue.
We only accept issues that are bug reports or feature requests. Bugs must be isolated and reproducible problems that we can fix within the Less.js core. Please read the following guidelines before opening any issue.

1. **Search for existing issues.** We get a lot of duplicate issues, and you'd help us out a lot by first checking if someone else has reported the same issue. Moreover, the issue may have already been resolved with a fix available.
2. **Create an isolated and reproducible test case.** Be sure the problem exists in Less.js's code with [reduced test cases](http://css-tricks.com/reduced-test-cases/) that should be included in each bug report.
3. **Test with the latest version**. We get a lot of issues that could be resolved by updating your version of Less.js.
3. **Test with the latest version**. We get a lot of issues that could be resolved by updating your version of Less.js.
3. **Include an example with source.** E.g. You can use [less2css.org](http://less2css.org/) to create a short test case.
4. **Share as much information as possible.** Include operating system and version. Describe how you use Less. If you use it in the browser, please include browser and version, and the version of Less.js you're using. Let us know if you're using the command line (`lessc`) or an external tool. And try to include steps to reproduce the bug.
5. If you have a solution or suggestion for how to fix the bug you're reporting, please include it, or make a pull request - don't assume the maintainers know how to fix it just because you do.
Expand All @@ -32,15 +32,15 @@ Please report documentation issues in [the documentation project](https://github

_Pull requests are encouraged!_

* Start by adding a feature request to get feedback and see how your idea is received.
* Start by adding a feature request to get feedback and see how your idea is received.
* If your pull request solves an existing issue, but it's different in some way, _please create a new issue_ and make sure to discuss it with the core contributors. Otherwise you risk your hard work being rejected.
* Do not change the **./dist/** folder, we do this when releasing
* _Please add tests_ for your work. Tests are invoked using `grunt test` command. It will run both node.js tests and browser ([PhantomJS](http://phantomjs.org/)) tests.
* _Please add tests_ for your work. Tests are invoked using `grunt test` command. It will run both node.js tests and browser ([PhantomJS](http://phantomjs.org/)) tests.

### Coding Standards

* Always use spaces, never tabs
* End lines in semi-colons.
* End lines in semi-colons.
* Loosely aim towards jsHint standards


Expand Down
Loading