Skip to content

Commit a127cad

Browse files
Broccohansl
authored andcommitted
refactor(@angular/cli): remove ng init & ng update (#4628)
BREAKING CHANGE: Removing the `ng init` & `ng update` commands because their current implementation causes more problems than it solves. Once RC is released, we won't need to use those to update anymore as the step will be as simple as installing the latest version of the CLI.
1 parent fa88620 commit a127cad

File tree

7 files changed

+3
-235
lines changed

7 files changed

+3
-235
lines changed

docs/documentation/update.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/@angular/cli/addon/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ module.exports = {
2424
'new': require('../commands/new').default,
2525
'generate': require('../commands/generate').default,
2626
'destroy': require('../commands/destroy').default,
27-
'init': require('../commands/init').default,
2827
'test': require('../commands/test').default,
2928
'e2e': require('../commands/e2e').default,
3029
'help': require('../commands/help').default,

packages/@angular/cli/commands/completion.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export interface CompletionCommandOptions {
2929

3030
const commandsToIgnore = [
3131
'easter-egg',
32+
'init',
3233
'destroy',
3334
'github-pages-deploy' // errors because there is no base github-pages command
3435
];

packages/@angular/cli/commands/help.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const lookupCommand = require('../ember-cli/lib/cli/lookup-command');
77

88
const commandsToIgnore = [
99
'easter-egg',
10+
'init',
1011
'destroy'
1112
];
1213

packages/@angular/cli/commands/init.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const Command = require('../ember-cli/lib/models/command');
33
const InitCommand: any = Command.extend({
44
name: 'init',
55
description: 'Creates a new Angular CLI project in the current folder.',
6-
aliases: ['u', 'update', 'i'],
76
works: 'everywhere',
87

98
availableOptions: [

packages/@angular/cli/commands/new.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const SilentError = require('silent-error');
88

99
const NewCommand = Command.extend({
1010
name: 'new',
11-
description: `Creates a new directory and runs ${chalk.green('ng init')} in it.`,
11+
description: `Creates a new directory and a new Angular app.`,
1212
works: 'outsideProject',
1313

1414
availableOptions: [

tests/acceptance/init.spec.js

Lines changed: 0 additions & 203 deletions
This file was deleted.

0 commit comments

Comments
 (0)