Skip to content

Commit

Permalink
refactor(@angular/cli): remove ng init & ng update (angular#4628)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Brocco authored and Zhicheng Wang committed Mar 16, 2017
1 parent 8796df7 commit 7c08d00
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 235 deletions.
29 changes: 0 additions & 29 deletions docs/documentation/update.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/@angular/cli/addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ module.exports = {
'new': require('../commands/new').default,
'generate': require('../commands/generate').default,
'destroy': require('../commands/destroy').default,
'init': require('../commands/init').default,
'test': require('../commands/test').default,
'e2e': require('../commands/e2e').default,
'help': require('../commands/help').default,
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/commands/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface CompletionCommandOptions {

const commandsToIgnore = [
'easter-egg',
'init',
'destroy',
'github-pages-deploy' // errors because there is no base github-pages command
];
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/commands/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const lookupCommand = require('../ember-cli/lib/cli/lookup-command');

const commandsToIgnore = [
'easter-egg',
'init',
'destroy'
];

Expand Down
1 change: 0 additions & 1 deletion packages/@angular/cli/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const Command = require('../ember-cli/lib/models/command');
const InitCommand: any = Command.extend({
name: 'init',
description: 'Creates a new Angular CLI project in the current folder.',
aliases: ['u', 'update', 'i'],
works: 'everywhere',

availableOptions: [
Expand Down
2 changes: 1 addition & 1 deletion packages/@angular/cli/commands/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const SilentError = require('silent-error');

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

availableOptions: [
Expand Down
203 changes: 0 additions & 203 deletions tests/acceptance/init.spec.js

This file was deleted.

0 comments on commit 7c08d00

Please sign in to comment.