aboutsummaryrefslogblamecommitdiffstats
path: root/test/integration/index.js
blob: e089fc39bdbcdb9d99fea86c5398c85c53dab5e6 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                         
 
                      
 
                                                    
 


                                              
 




                       
const fs = require('fs')
const path = require('path')
const browserify = require('browserify')
const tests = fs.readdirSync(path.join(__dirname, 'lib'))
const bundlePath = path.join(__dirname, 'bundle.js')

const b = browserify()

const writeStream = fs.createWriteStream(bundlePath)

tests.forEach(function (fileName) {
  b.add(path.join(__dirname, 'lib', fileName))
})

b.bundle()
.pipe(writeStream)
.on('error', (err) => {
  throw err
})