chore: remove cdk testing from rollup globals (#7169)

Previously the `missingRollupGlobals` tslint rule checked every TS file in the `src/` directory. This meant that the `@angular/cdk/testing` package from spec files needs to be added there as well.

With the recent switcht to Minimatch for our custom TSLint rules, the spec files are no longer linted and the testing package can be removed there.
This commit is contained in:
Paul Gschwendtner
2017-09-29 00:52:31 +02:00
committed by Jeremy Elbourn
parent 3948381d64
commit 248dee8265
2 changed files with 3 additions and 7 deletions
+2 -6
View File
@@ -42,7 +42,8 @@ export const rollupGlobals = {
'@angular/common/testing': 'ng.common.testing',
'@angular/http/testing': 'ng.http.testing',
// Some packages are not really needed for the UMD bundles, but for the missingRollupGlobals rule.
'@angular/material-examples': 'ng.materialExamples',
'@angular/material': 'ng.material',
'@angular/cdk': 'ng.cdk',
@@ -50,11 +51,6 @@ export const rollupGlobals = {
...rollupCdkEntryPoints,
...rollupMatEntryPoints,
// Some packages are not really needed for the UMD bundles, but for the missingRollupGlobals rule.
// TODO(devversion): remove by adding minimatch and better globbing to rules
'@angular/cdk/testing': 'ng.cdk.testing',
'@angular/material-examples': 'ng.materialExamples',
'rxjs/BehaviorSubject': 'Rx',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
+1 -1
View File
@@ -10,4 +10,4 @@ require('ts-node').register({
// Add a noop rule so tslint doesn't complain.
exports.Rule = class Rule extends Lint.Rules.AbstractRule {
apply() {}
}
};