|
|
|
@ -6,15 +6,14 @@ const bundlePath = path.join(__dirname, 'bundle.js') |
|
|
|
|
|
|
|
|
|
const b = browserify() |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
const writeStream = fs.createWriteStream(bundlePath) |
|
|
|
|
const writeStream = fs.createWriteStream(bundlePath) |
|
|
|
|
|
|
|
|
|
tests.forEach(function (fileName) { |
|
|
|
|
tests.forEach(function (fileName) { |
|
|
|
|
b.add(path.join(__dirname, 'lib', fileName)) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
b.bundle().pipe(writeStream) |
|
|
|
|
} catch (err) { |
|
|
|
|
throw new Error('Integration tests build failure - ' + err.stack) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
b.bundle() |
|
|
|
|
.pipe(writeStream) |
|
|
|
|
.on('error', (err) => { |
|
|
|
|
throw err |
|
|
|
|
}) |
|
|
|
|