Skip to content

Commit 7c08d00

Browse files
BroccoZhicheng Wang
authored and
Zhicheng Wang
committed
refactor(@angular/cli): remove ng init & ng update (angular#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 8796df7 commit 7c08d00

File tree

7 files changed

+3
-235
lines changed

7 files changed

+3
-235
lines changed

docs/documentation/update.md

-29
This file was deleted.

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

-1
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

+1
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

+1
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

-1
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

+1-1
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

-203
This file was deleted.

0 commit comments

Comments
 (0)