[Pkg-javascript-commits] [less.js] 69/285: move parser files into a parser directory
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 f02d920b12b2f3cbdb4dbd715c93e600c0fe36b7
Author: Luke Page <luke.a.page at gmail.com>
Date: Sun Aug 24 18:56:01 2014 +0100
move parser files into a parser directory
---
lib/less/non-node-index.js | 2 +-
lib/less/{ => parser}/chunker.js | 0
lib/less/{ => parser}/parser.js | 10 ++++++----
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/lib/less/non-node-index.js b/lib/less/non-node-index.js
index d2b67ba..9279f8d 100644
--- a/lib/less/non-node-index.js
+++ b/lib/less/non-node-index.js
@@ -5,7 +5,7 @@ var less = {
less.tree = require('./tree/index.js');
less.visitor = require('./visitor/index.js');
-less.Parser = (require('./parser'))(less, less.tree, less.visitor);
+less.Parser = (require('./parser/parser.js'))(less);
less.functions = require('./functions/index.js')(less);
less.contexts = require("./contexts.js");
diff --git a/lib/less/chunker.js b/lib/less/parser/chunker.js
similarity index 100%
rename from lib/less/chunker.js
rename to lib/less/parser/chunker.js
diff --git a/lib/less/parser.js b/lib/less/parser/parser.js
similarity index 99%
rename from lib/less/parser.js
rename to lib/less/parser/parser.js
index 4f0d915..7e1ecb5 100644
--- a/lib/less/parser.js
+++ b/lib/less/parser/parser.js
@@ -1,8 +1,10 @@
-var chunker = require('./chunker.js');
-var LessError = require('./less-error.js');
-var contexts = require("./contexts.js");
+var chunker = require('./chunker.js'),
+ LessError = require('../less-error.js'),
+ tree = require("../tree/index.js"),
+ visitor = require("../visitor/index.js"),
+ contexts = require("../contexts.js");
-module.exports = function(less, tree, visitor) {
+module.exports = function(less) {
//
// less.js - parser
//
--
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