[Pkg-javascript-commits] [ltx] 217/469: lib/index-browserify.js

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:03:05 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit 8c59dee23a7f4d2a5d3809e6f344d7cab9a21a84
Author: Astro <astro at spaceboyz.net>
Date:   Tue Mar 20 01:57:27 2012 +0100

    lib/index-browserify.js
---
 lib/index-browserify.js | 6 ++++++
 package.json            | 1 +
 2 files changed, 7 insertions(+)

diff --git a/lib/index-browserify.js b/lib/index-browserify.js
new file mode 100644
index 0000000..94dea99
--- /dev/null
+++ b/lib/index-browserify.js
@@ -0,0 +1,6 @@
+/* Cause browserify to bundle SAX parsers: */
+require('./sax_easysax');
+require('./sax_saxjs');
+
+/* SHIM */
+module.exports = require('./index');
\ No newline at end of file
diff --git a/package.json b/package.json
index 681ad08..17fe50e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,7 @@
 { "name": "ltx"
 ,"version": "0.1.3"
 ,"main": "./lib/index"
+,"browserify": "./lib/index-browserify.js"
 ,"description": "<xml for=\"node.js\">"
 ,"author": "Stephan Maka"
 ,"dependencies": {"node-expat": ">=1.2.0"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list