Skip to content

Commit

Permalink
chore: move unit test build right below main for faster watch (#6953)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Dec 1, 2020
1 parent 08feeed commit 5a13e90
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,30 @@ export default cliargs => [
onwarn,
watch
},
{
input: 'test/unit/**/*.test.js',
output: {
format: 'iife',
name: 'videojsTests',
file: 'test/dist/bundle.js',
globals: globals.test
},
external: externals.test,
plugins: [
multiEntry({exports: false}),
alias({
'video.js': path.resolve(__dirname, './src/js/video.js')
}),
primedResolve,
json(),
stub(),
primedCjs,
primedBabel,
cliargs.progress !== false ? progress() : {}
],
onwarn,
watch
},
// es, cjs
{
input: 'src/js/index.js',
Expand Down Expand Up @@ -251,30 +275,5 @@ export default cliargs => [
],
onwarn,
watch
},
{
input: 'test/unit/**/*.test.js',
output: {
format: 'iife',
name: 'videojsTests',
file: 'test/dist/bundle.js',
globals: globals.test
},
external: externals.test,
plugins: [
multiEntry({exports: false}),
alias({
'video.js': path.resolve(__dirname, './src/js/video.js')
}),
primedResolve,
json(),
stub(),
primedCjs,
primedBabel,
cliargs.progress !== false ? progress() : {}
],
onwarn,
watch
}

];

0 comments on commit 5a13e90

Please sign in to comment.