Skip to content

Commit 0c364b5

Browse files
committed
remove unused files
1 parent 0262738 commit 0c364b5

File tree

3 files changed

+0
-297
lines changed

3 files changed

+0
-297
lines changed

packages/@angular/cli/models/webpack-configs/test.ts

-23
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,12 @@
11
import * as path from 'path';
22
import * as glob from 'glob';
33
import * as webpack from 'webpack';
4-
const webpackBuildLogger = require('webpack-build-logger');
54

65
import { CliConfig } from '../config';
76
import { WebpackTestOptions } from '../webpack-test-config';
87
import { KarmaWebpackEmitlessError } from '../../plugins/karma-webpack-emitless-error';
98

109

11-
12-
function FileListPlugin() { }
13-
14-
FileListPlugin.prototype.apply = function (compiler: any) {
15-
compiler.plugin('emit', function (compilation: any, callback: any) {
16-
// Create a header string for the generated file:
17-
var filelist = 'In this build:\n\n';
18-
19-
// Loop through all compiled assets,
20-
// adding a new line item for each filename.
21-
for (var filename in compilation.assets) {
22-
filelist += ('- ' + filename + '\n');
23-
}
24-
25-
console.log(`\n${filelist}\n`)
26-
27-
callback();
28-
});
29-
};
30-
3110
/**
3211
* Enumerate loaders and their dependencies from this file to let the dependency validator
3312
* know they are used.
@@ -87,8 +66,6 @@ export function getTestConfig(testConfig: WebpackTestOptions) {
8766
chunks: ['main'],
8867
minChunks: (module: any) => module.resource && module.resource.startsWith(nodeModules)
8968
}),
90-
// new webpackBuildLogger({ logEnabled: true }),
91-
// new (<any>FileListPlugin)(),
9269
new KarmaWebpackEmitlessError()
9370
].concat(extraPlugins)
9471
};

packages/@angular/cli/plugins/karma-webpack-custom.js

-273
This file was deleted.

packages/@angular/cli/plugins/karma.ts

-1
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,4 @@ module.exports = Object.assign({
217217
'framework:@angular/cli': ['factory', init],
218218
'preprocessor:@angular/cli': ['factory', preprocessor],
219219
'middleware:angularCliBlocker': ['factory', requestBlocker]
220-
// }, require('./karma-webpack-custom'), require('karma-sourcemap-loader'));
221220
});

0 commit comments

Comments
 (0)