1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 08:09:15 +01:00
metamask-extension/test/integration/index.js

22 lines
459 B
JavaScript
Raw Normal View History

var fs = require('fs')
var path = require('path')
2017-05-04 23:35:10 +02:00
var browserify = require('browserify')
var tests = fs.readdirSync(path.join(__dirname, 'lib'))
var bundlePath = path.join(__dirname, 'bundle.js')
2017-05-04 23:35:10 +02:00
var b = browserify()
// Remove old bundle
try {
fs.unlinkSync(bundlePath)
} catch (e) {}
var writeStream = fs.createWriteStream(bundlePath)
2017-05-04 23:35:10 +02:00
tests.forEach(function (fileName) {
b.add(path.join(__dirname, 'lib', fileName))
})
2017-05-04 23:35:10 +02:00
b.bundle().pipe(writeStream)