[Pkg-javascript-commits] [node-jade] 05/14: import void-elements
Leo Iannacone
l3on-guest at moszumanska.debian.org
Fri Oct 17 11:16:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
l3on-guest pushed a commit to branch master
in repository node-jade.
commit 4c4b3b326ca4d3481b547ec3f4e5c30fd792c33e
Author: Leo Iannacone <l3on at ubuntu.com>
Date: Fri Oct 10 17:37:49 2014 +0200
import void-elements
---
debian/patches/0000_import_void-elements.patch | 67 ++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 68 insertions(+)
diff --git a/debian/patches/0000_import_void-elements.patch b/debian/patches/0000_import_void-elements.patch
new file mode 100644
index 0000000..df5d04a
--- /dev/null
+++ b/debian/patches/0000_import_void-elements.patch
@@ -0,0 +1,67 @@
+Description: This should be a module called void-elements,
+ source is available here: https://github.com/hemanth/void-elements/,
+ the current version is 1.0.0.
+ .
+ It builds the void-elements from this page:
+ - http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements
+ and exports theme in a list.
+ .
+ Modules is too small to become a package, moreover it makes no sense have a
+ custom build system to get a fixed list that is supposed to not changed
+ in the coming future, since that page is a draft for a standard.
+Author: Leo Iannacone <l3on at ubuntu.com>
+Forwarded: not-needed
+Last-Update: 2014-10-10
+
+---
+ lib/compiler.js | 2 +-
+ lib/jade.js | 2 +-
+ lib/voidElements.js | 21 +++++++++++++++++++++
+ 3 files changed, 23 insertions(+), 2 deletions(-)
+
+--- /dev/null
++++ b/lib/voidElements.js
+@@ -0,0 +1,21 @@
++// From:
++// http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements
++
++module.exports = [
++ "area",
++ "base",
++ "br",
++ "col",
++ "embed",
++ "hr",
++ "img",
++ "input",
++ "keygen",
++ "link",
++ "menuitem",
++ "meta",
++ "param",
++ "source",
++ "track",
++ "wbr"
++];
+--- a/lib/compiler.js
++++ b/lib/compiler.js
+@@ -5,7 +5,7 @@
+ var doctypes = require('./doctypes');
+ var runtime = require('./runtime');
+ var utils = require('./utils');
+-var selfClosing = require('void-elements');
++var selfClosing = require('./voidElements');
+ var parseJSExpression = require('character-parser').parseMax;
+ var constantinople = require('constantinople');
+
+--- a/lib/jade.js
++++ b/lib/jade.js
+@@ -22,7 +22,7 @@
+ * Expose self closing tags.
+ */
+
+-exports.selfClosing = require('void-elements');
++exports.selfClosing = require('./voidElements');
+
+ /**
+ * Default supported doctypes.
diff --git a/debian/patches/series b/debian/patches/series
index 2bc11bc..f32bf88 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+0000_import_void-elements.patch
0001_fix_nodejs_shebang.path
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jade.git
More information about the Pkg-javascript-commits
mailing list