-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync default options across all Less.js environments
- More tests for plugins
- Loading branch information
1 parent
1736ea5
commit b782411
Showing
17 changed files
with
195 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Export a new default each time | ||
module.exports = function() { | ||
return { | ||
/* Outputs a makefile import dependency list to stdout. */ | ||
depends: false, | ||
|
||
/* Compress using less built-in compression. | ||
* This does an okay job but does not utilise all the tricks of | ||
* dedicated css compression. */ | ||
compress: false, | ||
|
||
/* Runs the less parser and just reports errors without any output. */ | ||
lint: false, | ||
|
||
/* Sets available include paths. | ||
* If the file in an @import rule does not exist at that exact location, | ||
* less will look for it at the location(s) passed to this option. | ||
* You might use this for instance to specify a path to a library which | ||
* you want to be referenced simply and relatively in the less files. */ | ||
paths: [], | ||
|
||
/* color output in the terminal */ | ||
color: true, | ||
|
||
/* The strictImports controls whether the compiler will allow an @import inside of either | ||
* @media blocks or (a later addition) other selector blocks. | ||
* See: https://github.com/less/less.js/issues/656 */ | ||
strictImports: false, | ||
|
||
/* Allow Imports from Insecure HTTPS Hosts */ | ||
insecure: false, | ||
|
||
/* Allows you to add a path to every generated import and url in your css. | ||
* This does not affect less import statements that are processed, just ones | ||
* that are left in the output css. */ | ||
rootpath: '', | ||
|
||
/* By default URLs are kept as-is, so if you import a file in a sub-directory | ||
* that references an image, exactly the same URL will be output in the css. | ||
* This option allows you to re-write URL's in imported files so that the | ||
* URL is always relative to the base imported file */ | ||
relativeUrls: false, | ||
|
||
/* Compatibility with IE8. Used for limiting data-uri length */ | ||
ieCompat: false, // true until 3.0 | ||
|
||
/* Without this option on, Less will try and process all math in your css */ | ||
strictMath: false, | ||
|
||
/* Without this option, less attempts to guess at the output unit when it does maths. */ | ||
strictUnits: false, | ||
|
||
/* Effectively the declaration is put at the top of your base Less file, | ||
* meaning it can be used but it also can be overridden if this variable | ||
* is defined in the file. */ | ||
globalVars: null, | ||
|
||
/* As opposed to the global variable option, this puts the declaration at the | ||
* end of your base file, meaning it will override anything defined in your Less file. */ | ||
modifyVars: null, | ||
|
||
/* This option allows you to specify a argument to go on to every URL. */ | ||
urlArgs: '' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,3 +230,4 @@ html { | |
color: mix(blue, @color1, 50%); | ||
color: mix(blue, @color2, 50%); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
var collection = []; | ||
|
||
functions.add('store', function(val) { | ||
collection.push(val); // imma store this for later | ||
return false; | ||
}); | ||
functions.add('list', function() { | ||
return less.Value(collection); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
functions.add('foo', function() { | ||
return "foo"; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
functions.add('foo', function() { | ||
return "bar"; | ||
}); |
Oops, something went wrong.