2017-03-16 23:16:27 +03:00
|
|
|
module.exports = function (config) {
|
|
|
|
config.set({
|
2017-03-17 14:07:08 +03:00
|
|
|
basePath: 'nextcloudappstore/core/static/',
|
2017-03-18 21:12:34 +03:00
|
|
|
frameworks: ['jasmine'],
|
|
|
|
mime: { 'text/x-typescript': ['ts','tsx'] },
|
2017-03-16 23:16:27 +03:00
|
|
|
files: [
|
2017-03-18 21:12:34 +03:00
|
|
|
{pattern: 'assets/app/**/*Spec.ts', watched: false}
|
2017-03-16 23:16:27 +03:00
|
|
|
],
|
|
|
|
exclude: [],
|
2017-03-18 21:12:34 +03:00
|
|
|
preprocessors: {
|
|
|
|
'assets/app/**/*.ts': ['webpack']
|
|
|
|
},
|
|
|
|
webpackMiddleware: {
|
|
|
|
noInfo: true,
|
|
|
|
stats: {
|
|
|
|
chunks: false,
|
|
|
|
colors: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
webpack: {
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.js', '.ts', '.tsx']
|
|
|
|
},
|
|
|
|
module: {
|
2018-03-03 15:53:05 +03:00
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
loader: 'ts-loader'
|
|
|
|
}
|
2017-03-18 21:12:34 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
stats: {
|
|
|
|
colors: true,
|
|
|
|
modules: true,
|
|
|
|
reasons: true,
|
|
|
|
errorDetails: true
|
|
|
|
},
|
|
|
|
devtool: 'inline-source-map',
|
2018-03-03 15:53:05 +03:00
|
|
|
mode: 'production'
|
2017-03-18 21:12:34 +03:00
|
|
|
},
|
2017-03-16 23:16:27 +03:00
|
|
|
reporters: ['progress'],
|
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
autoWatch: true,
|
|
|
|
browsers: ['Firefox'],
|
|
|
|
singleRun: false,
|
2017-03-18 21:12:34 +03:00
|
|
|
concurrency: Infinity,
|
2017-03-16 23:16:27 +03:00
|
|
|
})
|
|
|
|
};
|