From 62a0b3611b3ec5cb53d141432c1e3dc5ed885155 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Wed, 12 Sep 2018 18:30:13 -0400 Subject: [PATCH] fix(@angular/cli): remove eject command stub --- packages/angular/cli/commands.json | 1 - packages/angular/cli/commands/eject-impl.ts | 26 --------------------- packages/angular/cli/commands/eject.json | 15 ------------ 3 files changed, 42 deletions(-) delete mode 100644 packages/angular/cli/commands/eject-impl.ts delete mode 100644 packages/angular/cli/commands/eject.json diff --git a/packages/angular/cli/commands.json b/packages/angular/cli/commands.json index be69ff2dbe62..142180ea7997 100644 --- a/packages/angular/cli/commands.json +++ b/packages/angular/cli/commands.json @@ -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", diff --git a/packages/angular/cli/commands/eject-impl.ts b/packages/angular/cli/commands/eject-impl.ts deleted file mode 100644 index cdfe324e2231..000000000000 --- a/packages/angular/cli/commands/eject-impl.ts +++ /dev/null @@ -1,26 +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'; - - -export class EjectCommand extends Command { - async run() { - this.logger.error(tags.stripIndents` - The 'eject' command has been temporarily disabled, as it is not yet compatible with the new - angular.json format. The new configuration format provides further flexibility to modify the - configuration of your workspace without ejecting. Ejection will be re-enabled in a future - release of the CLI. - - If you need to eject today, use CLI 1.7 to eject your project. - `); - - return 1; - } -} diff --git a/packages/angular/cli/commands/eject.json b/packages/angular/cli/commands/eject.json deleted file mode 100644 index d5c527d02166..000000000000 --- a/packages/angular/cli/commands/eject.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "http://json-schema.org/schema", - "$id": "ng-cli://commands/eject.json", - "description": "Temporarily disabled. Ejects your app and output the proper webpack configuration and scripts.", - "$longDescription": "", - - "$hidden": true, - "$scope": "in", - "$impl": "./eject-impl#EjectCommand", - - "type": "object", - "allOf": [ - { "$ref": "./definitions.json#/definitions/base" } - ] -}