diff options
Diffstat (limited to 'mascara/test/index.js')
-rw-r--r-- | mascara/test/index.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mascara/test/index.js b/mascara/test/index.js new file mode 100644 index 000000000..0134cdf00 --- /dev/null +++ b/mascara/test/index.js @@ -0,0 +1,22 @@ +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) { + console.error(e) +} + +var writeStream = fs.createWriteStream(bundlePath) + +tests.forEach(function(fileName) { + b.add(path.join(__dirname, 'lib', fileName)) +}) + +b.bundle().pipe(writeStream); + |