fix(@angular/cli): remove deprecated eject command

This commit is contained in:
Charles Lyding 2019-02-15 11:54:53 -05:00 committed by Alex Eagle
parent c4376d067f
commit f58a7ded00
5 changed files with 0 additions and 61 deletions

View File

@ -47,7 +47,6 @@ ts_library(
":doc_schema",
":e2e_schema",
":easter_egg_schema",
":eject_schema",
":generate_schema",
":help_schema",
":lint_schema",
@ -117,14 +116,6 @@ ts_json_schema(
],
)
ts_json_schema(
name = "eject_schema",
src = "commands/eject.json",
data = [
"commands/definitions.json",
],
)
ts_json_schema(
name = "generate_schema",
src = "commands/generate.json",

View File

@ -5,7 +5,6 @@
"doc": "./commands/doc.json",
"e2e": "./commands/e2e.json",
"make-this-awesome": "./commands/easter-egg.json",
"eject": "./commands/eject.json",
"generate": "./commands/generate.json",
"get": "./commands/deprecated.json",
"set": "./commands/deprecated.json",

View File

@ -1,28 +0,0 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { tags } from '@angular-devkit/core';
import { Command } from '../models/command';
import { Schema as EjectCommandSchema } from './eject';
export class EjectCommand extends Command<EjectCommandSchema> {
async run() {
this.logger.error(tags.stripIndents`
The 'eject' command has been disabled and will be removed completely in 8.0.
The new configuration format provides increased flexibility to modify the
configuration of your workspace without ejecting.
There are several projects that can be used in conjuction with the new
configuration format that provide the benefits of ejecting without the maintenance
overhead. One such project is ngx-build-plus found here:
https://github.com/manfredsteyer/ngx-build-plus
`);
return 1;
}
}

View File

@ -1,8 +0,0 @@
The 'eject' command has been disabled and will be removed completely in 8.0.
The new configuration format provides increased flexibility to modify the
configuration of your workspace without ejecting.
There are several projects that can be used in conjuction with the new
configuration format that provide the benefits of ejecting without the maintenance
overhead. One such project is ngx-build-plus found here:
https://github.com/manfredsteyer/ngx-build-plus

View File

@ -1,15 +0,0 @@
{
"$schema": "http://json-schema.org/schema",
"$id": "ng-cli://commands/eject.json",
"description": "Deprecated, will be removed in Angular 8.0.",
"$longDescription": "./eject-long.md",
"$hidden": true,
"$scope": "in",
"$impl": "./eject-impl#EjectCommand",
"type": "object",
"allOf": [
{ "$ref": "./definitions.json#/definitions/base" }
]
}