build single test bunding using Webpack context

This commit is contained in:
alecmerdler 2017-03-11 16:48:05 -08:00
parent b72cf7c04b
commit ade4216642
8 changed files with 81 additions and 31 deletions

View file

@ -30,8 +30,8 @@ module.exports = function(config) {
// static/lib resources
'static/lib/**/*.js',
// Tests
'static/js/**/*.spec.ts*',
// Single entrypoint for all tests
'static/test/test-index.ts',
// Tests utils
'static/test/**/*.js',
@ -41,7 +41,7 @@ module.exports = function(config) {
'static/lib/ngReact/react.ngReact.min.js': ['webpack'],
'static/lib/angular-moment.min.js': ['webpack'],
'node_modules/core-js/index.js': ['webpack'],
'static/js/**/*.spec.ts*': ['webpack'],
'static/test/test-index.ts': ['webpack'],
},
webpack: webpackConfig,
webpackMiddleware: {