You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
343 B
17 lines
343 B
import browserify from 'browserify';
|
|
import fs from 'fs';
|
|
import glob from 'glob';
|
|
|
|
/* eslint no-console: 0 */
|
|
|
|
glob('test/**/*.test.js', (err, files) => {
|
|
if (err) {
|
|
throw err;
|
|
}
|
|
browserify(files)
|
|
.transform('babelify')
|
|
.transform('browserify-shim')
|
|
.bundle()
|
|
.pipe(fs.createWriteStream('test/dist/bundle.js'));
|
|
});
|