[Pkg-javascript-commits] [ltx] 218/469: proper browser benchmark building
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 584e889c94b4c8d86e64abd2b6d471dfec7ee9f4
Author: Astro <astro at spaceboyz.net>
Date: Tue Mar 20 01:57:57 2012 +0100
proper browser benchmark building
---
benchmark/.gitignore | 1 +
benchmark/build.js | 9 ++++++---
package.json | 4 +++-
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/benchmark/.gitignore b/benchmark/.gitignore
new file mode 100644
index 0000000..012a3cd
--- /dev/null
+++ b/benchmark/.gitignore
@@ -0,0 +1 @@
+index.js
diff --git a/benchmark/build.js b/benchmark/build.js
index 99d76b0..8fbd54b 100644
--- a/benchmark/build.js
+++ b/benchmark/build.js
@@ -1,10 +1,13 @@
var browserify = require('browserify');
var path = require('path');
var b = browserify({
- debug: true,
- require: ["ltx/lib/sax_saxjs.js", "ltx/lib/sax_easysax.js"]
+ debug: true
});
-b.addEntry('../benchmark/browser_benchmark.js');
+var root = path.join(__dirname, "..");
+b.require("./lib/index-browserify.js",
+ { root: root, basedir: root });
+b.alias("ltx", "./lib/index-browserify.js");
+b.addEntry('browser_benchmark.js');
var fs = require('fs');
diff --git a/package.json b/package.json
index 17fe50e..d010c93 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,8 @@
,"contributors": ["Stephan Maka", "Will Fife", "Markus Kohlhase"]
,"licenses": [{"type": "MIT"}]
,"engine": "node"
-,"devDependencies": {"vows": ">=0.5.12"}
+,"devDependencies": {"vows": ">=0.5.12"
+ ,"Strophe.js": "https://github.com/metajack/strophejs/tarball/master"
+ }
,"scripts": {"test":"vows --spec"}
}
--
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