Revert "feat(@schematics/angular): recommend plugins that John Papa recommends"

This reverts commit 3a68b8cf9696e678308da65ca59b53329981c94f.
This commit is contained in:
Alex Eagle 2019-02-28 10:24:44 -08:00
parent ef11c9fbc9
commit 242ebd932f
3 changed files with 12 additions and 29 deletions

View File

@ -18,13 +18,7 @@ const addExtensionRecommendations = updateJsonInTree(
[
'angular.ng-template',
'nrwl.angular-console',
'ms-vscode.vscode-typescript-tslint-plugin',
'Mikael.Angular-BeastCode',
'EditorConfig.EditorConfig',
'msjsdiag.debugger-for-chrome',
'eg2.vscode-npm-script',
'PKief.material-icon-theme',
'natewallace.angular2-inline'].forEach(extension => {
'ms-vscode.vscode-typescript-tslint-plugin'].forEach(extension => {
json.recommendations = json.recommendations || [];
if (!json.recommendations.includes(extension)) {
json.recommendations.push(extension);

View File

@ -9,18 +9,6 @@ import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import { readJsonInTree, serializeJson, updateJsonInTree } from './ast-utils';
const recommendations = [
'angular.ng-template',
'nrwl.angular-console',
'ms-vscode.vscode-typescript-tslint-plugin',
'Mikael.Angular-BeastCode',
'EditorConfig.EditorConfig',
'msjsdiag.debugger-for-chrome',
'eg2.vscode-npm-script',
'PKief.material-icon-theme',
'natewallace.angular2-inline',
];
describe('Update 8.0.0', () => {
let initialTree: Tree;
let schematicRunner: SchematicTestRunner;
@ -46,7 +34,10 @@ describe('Update 8.0.0', () => {
.runSchematicAsync('migration-07', {}, initialTree)
.toPromise();
expect(readJsonInTree(result, '.vscode/extensions.json')).toEqual({recommendations});
expect(readJsonInTree(result, '.vscode/extensions.json')).toEqual({
recommendations: [
'angular.ng-template', 'nrwl.angular-console', 'ms-vscode.vscode-typescript-tslint-plugin'],
});
});
it('should add to existing vscode extension recommendations', async () => {
@ -55,7 +46,9 @@ describe('Update 8.0.0', () => {
updateJsonInTree('.vscode/extensions.json', () => ({
recommendations: [
'eamodio.gitlens',
...recommendations],
'angular.ng-template',
'nrwl.angular-console',
'ms-vscode.vscode-typescript-tslint-plugin'],
})),
initialTree,
)
@ -68,7 +61,9 @@ describe('Update 8.0.0', () => {
expect(readJsonInTree(result, '.vscode/extensions.json')).toEqual({
recommendations: [
'eamodio.gitlens',
...recommendations],
'angular.ng-template',
'nrwl.angular-console',
'ms-vscode.vscode-typescript-tslint-plugin'],
});
});
});

View File

@ -2,12 +2,6 @@
"recommendations": [
"angular.ng-template",
"nrwl.angular-console",
"ms-vscode.vscode-typescript-tslint-plugin",
"Mikael.Angular-BeastCode",
"EditorConfig.EditorConfig",
"msjsdiag.debugger-for-chrome",
"eg2.vscode-npm-script",
"PKief.material-icon-theme",
"natewallace.angular2-inline"
"ms-vscode.vscode-typescript-tslint-plugin"
]
}