mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
713a87fb5b
* Webpack 4 * webpack: force angular version 1.6 as 1.7 has removed a legacy feature toggle Grafana needs, switched from awesome-typescript-loader to ts-loader & forked ts checker * Webpack 4 * webpack: force angular version 1.6 as 1.7 has removed a legacy feature toggle Grafana needs, switched from awesome-typescript-loader to ts-loader & forked ts checker * upgrade ts loader * simplified splitChunks * upgrade circle node image to v8 * webpack: minor changes, using the new mode option, removed unused awesome-typescript loader, investigating karma issue but no solution yet * fix: change angular mocks version restriction to be more strict * add babel-loader for HMR support, fix karma debug runner * babel-loader to yarn.lock * webpack: changed from ExtractTextPlugin to MiniCssExtractPlugin, and updated the minification step to use new webpack4 optimization config section * webpack: remove css minifcation from general css processing as it's done in the webpack optimization step * limit vendors chunk to .ts and .js files * fix: removed typescript compile error, wanted to see if we still got test failure for that * tech: upgrade uglify-js, should be faster now
41 lines
878 B
JavaScript
41 lines
878 B
JavaScript
var webpack = require('webpack');
|
|
var path = require('path');
|
|
var webpackTestConfig = require('./scripts/webpack/webpack.test.js');
|
|
|
|
module.exports = function(config) {
|
|
|
|
'use strict';
|
|
|
|
config.set({
|
|
frameworks: ['mocha', 'expect', 'sinon'],
|
|
|
|
// list of files / patterns to load in the browser
|
|
files: [
|
|
{ pattern: 'public/test/index.ts', watched: false }
|
|
],
|
|
|
|
preprocessors: {
|
|
'public/test/index.ts': ['webpack', 'sourcemap'],
|
|
},
|
|
|
|
webpack: webpackTestConfig,
|
|
webpackMiddleware: {
|
|
stats: 'minimal',
|
|
},
|
|
|
|
// list of files to exclude
|
|
exclude: [],
|
|
reporters: ['dots'],
|
|
port: 9876,
|
|
colors: true,
|
|
logLevel: config.LOG_INFO,
|
|
autoWatch: true,
|
|
browsers: ['PhantomJS'],
|
|
captureTimeout: 20000,
|
|
singleRun: true,
|
|
// autoWatchBatchDelay: 1000,
|
|
// browserNoActivityTimeout: 60000,
|
|
});
|
|
|
|
};
|