refactoring to TypeScript and ES6 modules
This commit is contained in:
parent
6b0691577e
commit
4f96ab5353
8 changed files with 274 additions and 155 deletions
|
@ -1,4 +1,7 @@
|
|||
module.exports = function (config) {
|
||||
var webpackConfig = require('./webpack.config');
|
||||
|
||||
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
basePath: '',
|
||||
frameworks: ['jasmine'],
|
||||
|
@ -26,6 +29,7 @@ module.exports = function (config) {
|
|||
|
||||
// Application resources
|
||||
'static/js/**/*.js',
|
||||
'static/js/**/*.ts',
|
||||
|
||||
// Tests
|
||||
'static/test/**/*.js',
|
||||
|
@ -36,8 +40,11 @@ module.exports = function (config) {
|
|||
preprocessors: {
|
||||
'static/lib/ngReact/react.ngReact.min.js': ['webpack'],
|
||||
'static/lib/angular-moment.min.js': ['webpack'],
|
||||
'static/js/**/*.ts': ['webpack'],
|
||||
},
|
||||
webpack: {
|
||||
module: webpackConfig.module,
|
||||
},
|
||||
webpack: {},
|
||||
webpackMiddleware: {
|
||||
stats: 'errors-only'
|
||||
},
|
||||
|
|
Reference in a new issue