Calvin Juárez
d54251276a
Plugins: If minVersion >= 3.0.0, don't "pre-run" .setOptions() ( #3247 )
...
* dev – add .editorconfig
* AbstractPluginLoader – check for minVersion < 3 before running .setOptions() twice
* tests – separate unspecified minVersion test from minVersion: [2,0,0] test
2018-07-02 19:45:29 -07:00
Matthew Dean
7a47223dd9
Fixes #3187 (couldn't repo, but found bugs) ( #3229 )
...
* (Maybe) Fixes #3187 (couldn't repo, but found bug)
- Fixes multiple Node.js plugins not being loaded
* Added .eslintignore
* Added tests to fix #3187
* Fixed browser test
2018-06-30 00:24:46 -07:00
Matthew Dean
42fd7dca20
Release v3.5.0 beta ( #3230 )
...
* Lint cleanup of quotes
* v3.5.0-beta
2018-06-24 20:14:33 -07:00
Matthew Dean
4272871e07
Fixes #3116 - lessc not loading plugins in 3.0
2018-02-14 16:28:25 -08:00
Matthew Dean
55380d49e9
All tests passing
2017-10-08 18:31:41 -07:00
Matthew Dean
26674fc867
FIXES syncImport for less-node
2017-10-08 15:21:13 -07:00
Matthew Dean
9fd1ef5759
Pushing WIP of changes to file manager to track changes
2017-06-08 12:50:40 -07:00
Matthew Dean
68ea31dc89
Line and column # reporting for Node errors
2017-01-01 12:58:09 -08:00
Matthew Dean
43ab0b8722
Added error test for unparseable @plugin with better error messaging
2016-12-31 20:04:51 -08:00
Matthew Dean
fda4565e8d
Replace "return {}" statement in plugins with explicit registerPlugin() function (more logical)
2016-12-31 11:53:53 -08:00
Matthew Dean
c82202cfb8
Update inline comments
2016-11-21 13:57:59 -08:00
Matthew Dean
39150d513a
Simplified API on less object
...
e.g. "less.Ruleset()" instead of "new less.tree.Ruleset()"
Auto-casting of string values into nodes for AtRule, Declaration, Selector, Value
e.g. "less.Selector('&.a')" instead of "new tree.Selector(new tree.Element(new tree.Combinator('&'), '.a'))"
2016-07-19 01:30:34 -07:00
Matthew Dean
3d9f8433d1
Remove Node / Browserify 'path' module dependency
2016-07-16 20:45:46 -07:00
Matthew Dean
a3e43acb26
Pass function registry to plugin install()
...
- Create Anonymous nodes from non-null (but non-Node) function return values
- Allow empty Anonymous nodes to collapse on output
2016-07-15 16:05:20 -07:00
Matthew Dean
e309bf67a2
Added the concept of inherited index / fileInfo for nodes
2016-07-14 02:07:15 -07:00
Matthew Dean
d5803515d5
Allow minimum Less version for plugins to be a string
2016-07-13 02:33:28 -07:00
Matthew Dean
ad57737ce0
All tests passing for @plugin
...
- Inline JavaScript disabled by default
- Deprecated "preprocessor" option removed (preprocessor plugins still valid)
2016-07-12 22:26:39 -07:00
Matthew Dean
270fd097c9
Plugin loader set up for lessc, node, and browser
2016-07-06 13:26:25 -07:00
Matthew Dean
a1c08857e4
Add AbstractPluginLoader to create a cross-platform abstraction for loading plugins by name
2016-07-01 14:39:52 -07:00
Max Mikhailov
9db686ad47
polish abstractFileManager.extractUrlParts comments
2016-05-04 22:55:23 +02:00
Andrey Taritsyn
cb1f0f50bb
Fix invalid extraction of the host part from URL
2016-05-04 21:30:51 +03:00
rjgotten
d96af08795
Fix lint errors and add tests for @import (plugin)
2015-02-26 14:40:36 +01:00
rjgotten
39c6aa65f3
Make @import (plugin) environment-dependant
...
Shifts some logic around and extends some of the management classes in
such a way that plugins loaded via an `@import (plugin) "..."`
declaration are only loaded in environments that have support for
loading plugins. (i.e. Node.js)
2015-02-26 13:32:28 +01:00
Luke Page
2114a3fe7a
fragment urls referencing just a fragment are assumed absolute - referencing the current page. Fixes #2320
2015-02-02 20:08:48 +00:00
Luke Page
1494e25ef0
More style cop..
2015-01-30 18:28:02 +00:00
Luke Page
d206167c84
enforce spaces between operators for consistency
2015-01-27 22:24:12 +00:00
Luke Page
974407b470
Warn when the environment is asked for a file manager with no filname or directory
2014-11-28 18:06:04 +00:00
Luke Page
e90776695f
Merge pull request #2269 from dexif/master
...
Fix for wrong check in abstractFileManager.getPath
2014-11-03 12:34:19 +00:00
Evgenij Spitsyn
31846a9091
Fix wrong check in abstractFileManager.getPath
2014-11-03 12:20:27 +03:00
Veres Lajos
73f3fc4468
typo fixes
2014-11-02 23:18:29 +00:00
Evgenij Spitsyn
3b60ee4fa2
Fix for import relative path for url with parameters
2014-10-29 10:08:07 +03:00
Luke Page
148a0f5908
put the appendage of the .less extension through the file manager so that behaviour can be over-ridden. Fixes #2235
2014-10-21 13:16:40 +01:00
Luke Page
c40069e83e
Fix the API files
2014-10-12 16:49:38 +01:00
Luke Page
b966cf1d1b
some renames, tidy ups and bugfixes whilst adding npm plugin
2014-10-11 17:51:08 +01:00
Luke Page
a344240423
Remove unused warn function (replaced with logger) and allow null environments
2014-10-09 17:48:56 +01:00
Luke Page
9869b29c3d
Add file manager to plugin system
2014-10-09 17:45:30 +01:00
Luke Page
dedf0eee38
rename env to context to avoid confusion with environment
2014-10-05 18:50:34 +01:00
Luke Page
3af09233b1
Fix final weird error - in phantom only some console.log calls are going missing?
2014-10-05 10:42:38 +01:00
Luke Page
27494c280e
Fix svg function in browser
2014-10-04 18:49:12 +01:00
Luke Page
70bf802b2c
Fix the main browser tests
2014-10-04 18:04:50 +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
fb6c879cc4
remove env from all environment calls except the ones that actually need it
2014-09-21 16:46:44 +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
ca72b4d92f
Clean up dependency injection so environment is injected at the top level
2014-08-26 22:26:27 +01:00
Luke Page
f85f253586
merge from master
2014-08-14 17:27:16 +01:00
Luke Page
fdd01f6b00
merge in latest 1.7.1 release
2014-06-10 19:30:21 +01:00
Luke Page
aa3abeb716
fix trailing whitespace
2014-03-02 17:51:31 +00:00
Luke Page
e5b0fb6967
move the visitors to return themselves instead of assuming where they live
2014-03-02 10:19:05 +00:00