aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/test/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'mascara/test/index.js')
-rw-r--r--mascara/test/index.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/mascara/test/index.js b/mascara/test/index.js
new file mode 100644
index 000000000..b94ce16dd
--- /dev/null
+++ b/mascara/test/index.js
@@ -0,0 +1,20 @@
+var fs = require('fs')
+var path = require('path')
+var browserify = require('browserify');
+var tests = fs.readdirSync(path.join(__dirname, 'lib'))
+var bundlePath = path.join(__dirname, 'test-bundle.js')
+var b = browserify();
+
+// Remove old bundle
+try {
+ fs.unlinkSync(bundlePath)
+} catch (e) {}
+
+var writeStream = fs.createWriteStream(bundlePath)
+
+tests.forEach(function(fileName) {
+ b.add(path.join(__dirname, 'lib', fileName))
+})
+
+b.bundle().pipe(writeStream);
+