[Pkg-javascript-commits] [less.js] 65/285: rename env to contexts
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:23:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v2.0.0
in repository less.js.
commit 95dedcc576032b0dcdb98022960ed382112cabb2
Author: Luke Page <luke.a.page at gmail.com>
Date: Sun Aug 24 18:03:33 2014 +0100
rename env to contexts
---
build/build.yml | 4 ++--
lib/less/{env.js => contexts.js} | 0
lib/less/non-node-index.js | 2 +-
lib/less/parser.js | 2 +-
lib/less/tree/detached-ruleset.js | 2 +-
lib/less/tree/mixin-definition.js | 2 +-
lib/less/tree/ruleset.js | 2 +-
lib/less/visitor/import-visitor.js | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/build/build.yml b/build/build.yml
index 0353c0f..14c0845 100644
--- a/build/build.yml
+++ b/build/build.yml
@@ -37,7 +37,7 @@ less:
colors : <%= build.lib %>/colors.js
tree : <%= build.lib %>/tree.js
treedir : <%= build.lib %>/tree/*.js # glob all files in ./lib/less/tree directory
- env : <%= build.lib %>/env.js
+ env : <%= build.lib %>/contexts.js
visitor : <%= build.lib %>/visitor.js
import_visitor : <%= build.lib %>/import-visitor.js
join : <%= build.lib %>/join-selector-visitor.js
@@ -127,4 +127,4 @@ tree:
source_map:
- <%= build.lib_source_map %>/source-map-header.js
- <%= build.lib_source_map %>/source-map-0.1.31.js
- - <%= build.lib_source_map %>/source-map-footer.js
\ No newline at end of file
+ - <%= build.lib_source_map %>/source-map-footer.js
diff --git a/lib/less/env.js b/lib/less/contexts.js
similarity index 100%
rename from lib/less/env.js
rename to lib/less/contexts.js
diff --git a/lib/less/non-node-index.js b/lib/less/non-node-index.js
index df25f9a..2f5bcb0 100644
--- a/lib/less/non-node-index.js
+++ b/lib/less/non-node-index.js
@@ -7,7 +7,7 @@ less.tree = require('./tree/index.js');
less.visitor = require('./visitor/index.js')(less, less.tree);
less.Parser = (require('./parser'))(less, less.tree, less.visitor);
less.functions = (require('./functions/index.js'))(less, less.tree);
-less.contexts = require("./env.js");
+less.contexts = require("./contexts.js");
less.tree.sourceMapOutput = require('./source-map-output.js')(less);
diff --git a/lib/less/parser.js b/lib/less/parser.js
index 61fcd93..7a8744e 100644
--- a/lib/less/parser.js
+++ b/lib/less/parser.js
@@ -1,6 +1,6 @@
var chunker = require('./chunker.js');
var LessError = require('./less-error.js');
-var contexts = require("./env.js");
+var contexts = require("./contexts.js");
module.exports = function(less, tree, visitor) {
//
diff --git a/lib/less/tree/detached-ruleset.js b/lib/less/tree/detached-ruleset.js
index 009d67c..4c7723f 100644
--- a/lib/less/tree/detached-ruleset.js
+++ b/lib/less/tree/detached-ruleset.js
@@ -1,5 +1,5 @@
var Node = require("./node.js"),
- contexts = require("../env.js");
+ contexts = require("../contexts.js");
var DetachedRuleset = function (ruleset, frames) {
this.ruleset = ruleset;
diff --git a/lib/less/tree/mixin-definition.js b/lib/less/tree/mixin-definition.js
index 044250b..3c2f195 100644
--- a/lib/less/tree/mixin-definition.js
+++ b/lib/less/tree/mixin-definition.js
@@ -3,7 +3,7 @@ var Selector = require("./selector.js"),
Ruleset = require("./ruleset.js"),
Rule = require("./rule.js"),
Expression = require("./expression.js"),
- contexts = require("../env.js");
+ contexts = require("../contexts.js");
var Definition = function (name, params, rules, condition, variadic, frames) {
this.name = name;
diff --git a/lib/less/tree/ruleset.js b/lib/less/tree/ruleset.js
index 4c2ecf9..bc0c262 100644
--- a/lib/less/tree/ruleset.js
+++ b/lib/less/tree/ruleset.js
@@ -2,7 +2,7 @@ var Node = require("./node.js"),
Rule = require("./rule.js"),
Selector = require("./selector.js"),
Element = require("./element.js"),
- contexts = require("../env.js"),
+ contexts = require("../contexts.js"),
defaultFunc = require("../functions/default.js"),
getDebugInfo = require("./debug-info.js");
diff --git a/lib/less/visitor/import-visitor.js b/lib/less/visitor/import-visitor.js
index 2f1c24b..efff072 100644
--- a/lib/less/visitor/import-visitor.js
+++ b/lib/less/visitor/import-visitor.js
@@ -1,4 +1,4 @@
-var contexts = require("../env.js");
+var contexts = require("../contexts.js");
module.exports = function (visitor, tree) {
var ImportVisitor = function(importer, finish, evalEnv, onceFileDetectionMap, recursionDetector) {
this._visitor = new visitor(this);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list