docs: get rid of remaining angular-cli references (#4398)

This commit changes 2 things:
1. Changes remaining angular-cli package references to @angular/cli.
2. Where angular-cli was mentioned as a project name, it's been changed
   to Angular CLI.

Where angular-cli was meant to mean the repository name, it's been left
unchanged.
This commit is contained in:
Michał Gołębiowski 2017-02-03 12:49:52 +01:00 committed by Filipe Silva
parent 4ad406ff56
commit 0dc2200004
9 changed files with 28 additions and 28 deletions

View File

@ -1,4 +1,4 @@
# Contributing to angular-cli # Contributing to Angular CLI
We would love for you to contribute to angular-cli and help make it even better We would love for you to contribute to angular-cli and help make it even better
than it is today! As a contributor, here are the guidelines we would like you than it is today! As a contributor, here are the guidelines we would like you
@ -18,7 +18,7 @@ Help us keep Angular open and inclusive. Please read and follow our [Code of Con
## <a name="question"></a> Got a Question or Problem? ## <a name="question"></a> Got a Question or Problem?
If you have questions about how to *use* Angular CLI, please direct them to [StackOverflow][stackoverflow]. Please note that angular-cli is still in early developer preview, and the core team's capacity to answer usage questions is limited. We are also available on [Gitter][gitter]. If you have questions about how to *use* Angular CLI, please direct them to [StackOverflow][stackoverflow]. Please note that Angular CLI is still in early developer preview, and the core team's capacity to answer usage questions is limited. We are also available on [Gitter][gitter].
## <a name="issue"></a> Found an Issue? ## <a name="issue"></a> Found an Issue?
If you find a bug in the source code or a mistake in the documentation, you can help us by If you find a bug in the source code or a mistake in the documentation, you can help us by

View File

@ -52,8 +52,8 @@ with NPM 3 or higher.
* [CSS preprocessor integration](#css-preprocessor-integration) * [CSS preprocessor integration](#css-preprocessor-integration)
* [3rd Party Library Installation](#3rd-party-library-installation) * [3rd Party Library Installation](#3rd-party-library-installation)
* [Global Library Installation](#global-library-installation) * [Global Library Installation](#global-library-installation)
* [Updating angular-cli](#updating-angular-cli) * [Updating Angular CLI](#updating-angular-cli)
* [Development Hints for hacking on angular-cli](#development-hints-for-hacking-on-angular-cli) * [Development Hints for hacking on Angular CLI](#development-hints-for-hacking-on-angular-cli)
## Installation ## Installation
@ -392,21 +392,21 @@ your app.
<!-- DeleteSection2 End here --> <!-- DeleteSection2 End here -->
### Updating angular-cli ### Updating Angular CLI
To update `angular-cli` to a new version, you must update both the global package and your project's local package. To update Angular CLI to a new version, you must update both the global package and your project's local package.
Global package: Global package:
```bash ```bash
npm uninstall -g angular-cli npm uninstall -g angular-cli @angular/cli
npm cache clean npm cache clean
npm install -g angular-cli@latest npm install -g @angular/cli@latest
``` ```
Local project package: Local project package:
```bash ```bash
rm -rf node_modules dist # use rmdir on Windows rm -rf node_modules dist # use rmdir on Windows
npm install --save-dev angular-cli@latest npm install --save-dev @angular/cli@latest
npm install npm install
ng update ng update
``` ```
@ -420,7 +420,7 @@ Carefully read the diffs for each code file, and either accept the changes or in
You can find more details about changes between versions in [CHANGELOG.md](https://github.com/angular/angular-cli/blob/master/CHANGELOG.md). You can find more details about changes between versions in [CHANGELOG.md](https://github.com/angular/angular-cli/blob/master/CHANGELOG.md).
## Development Hints for hacking on angular-cli ## Development Hints for hacking on Angular CLI
### Working with master ### Working with master
@ -432,25 +432,25 @@ npm link
`npm link` is very similar to `npm install -g` except that instead of downloading the package `npm link` is very similar to `npm install -g` except that instead of downloading the package
from the repo, the just cloned `angular-cli/` folder becomes the global package. from the repo, the just cloned `angular-cli/` folder becomes the global package.
Any changes to the files in the `angular-cli/` folder will immediately affect the global `angular-cli` package, Any changes to the files in the `angular-cli/` folder will immediately affect the global `@angular/cli` package,
allowing you to quickly test any changes you make to the cli project. allowing you to quickly test any changes you make to the cli project.
Now you can use `angular-cli` via the command line: Now you can use `@angular/cli` via the command line:
```bash ```bash
ng new foo ng new foo
cd foo cd foo
npm link angular-cli npm link @angular/cli
ng serve ng serve
``` ```
`npm link angular-cli` is needed because by default the globally installed `angular-cli` just loads `npm link @angular/cli` is needed because by default the globally installed `@angular/cli` just loads
the local `angular-cli` from the project which was fetched remotely from npm. the local `@angular/cli` from the project which was fetched remotely from npm.
`npm link angular-cli` symlinks the global `angular-cli` package to the local `angular-cli` package. `npm link @angular/cli` symlinks the global `@angular/cli` package to the local `@angular/cli` package.
Now the `angular-cli` you cloned before is in three places: Now the `angular-cli` you cloned before is in three places:
The folder you cloned it into, npm's folder where it stores global packages and the `angular-cli` project you just created. The folder you cloned it into, npm's folder where it stores global packages and the Angular CLI project you just created.
You can also use `ng new foo --link-cli` to automatically link the `angular-cli` package. You can also use `ng new foo --link-cli` to automatically link the `@angular/cli` package.
Please read the official [npm-link documentation](https://www.npmjs.org/doc/cli/npm-link.html) Please read the official [npm-link documentation](https://www.npmjs.org/doc/cli/npm-link.html)
and the [npm-link cheatsheet](http://browsenpm.org/help#linkinganynpmpackagelocally) for more information. and the [npm-link cheatsheet](http://browsenpm.org/help#linkinganynpmpackagelocally) for more information.

View File

@ -6,9 +6,9 @@
The Angular CLI is a tool to initialize, develop, scaffold and maintain [Angular](https://angular.io) applications The Angular CLI is a tool to initialize, develop, scaffold and maintain [Angular](https://angular.io) applications
### Getting Started ### Getting Started
To install the angular-cli: To install the Angular CLI:
``` ```
npm install -g angular-cli npm install -g @angular/cli
``` ```
Generating and serving an Angular project via a development server Generating and serving an Angular project via a development server

View File

@ -1,6 +1,6 @@
# <%= jsComponentName %> # <%= jsComponentName %>
This project was generated with [angular-cli](https://github.com/angular/angular-cli) version <%= version %>. This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version <%= version %>.
## Development server ## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
@ -24,4 +24,4 @@ Before running the tests make sure you are serving the app via `ng serve`.
## Further help ## Further help
To get more help on the `angular-cli` use `ng help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md). To get more help on the Angular CLI use `ng help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@ -2,7 +2,7 @@ const Command = require('../ember-cli/lib/models/command');
const InitCommand: any = Command.extend({ const InitCommand: any = Command.extend({
name: 'init', name: 'init',
description: 'Creates a new angular-cli project in the current folder.', description: 'Creates a new Angular CLI project in the current folder.',
aliases: ['u', 'update', 'i'], aliases: ['u', 'update', 'i'],
works: 'everywhere', works: 'everywhere',

View File

@ -5,7 +5,7 @@ import * as chalk from 'chalk';
const VersionCommand = Command.extend({ const VersionCommand = Command.extend({
name: 'version', name: 'version',
description: 'outputs angular-cli version', description: 'outputs Angular CLI version',
aliases: ['v', '--version', '-v'], aliases: ['v', '--version', '-v'],
works: 'everywhere', works: 'everywhere',

View File

@ -57,7 +57,7 @@ export class CliConfig extends CliConfigBase<ConfigInterface> {
console.error(chalk.yellow(oneLine` console.error(chalk.yellow(oneLine`
The "defaults.prefix" and "defaults.sourceDir" properties of angular-cli.json The "defaults.prefix" and "defaults.sourceDir" properties of angular-cli.json
are deprecated in favor of "apps[0].root" and "apps[0].prefix".\n are deprecated in favor of "apps[0].root" and "apps[0].prefix".\n
Please update in order to avoid errors in future versions of angular-cli. Please update in order to avoid errors in future versions of Angular CLI.
`)); `));
} }
@ -85,7 +85,7 @@ export class CliConfig extends CliConfigBase<ConfigInterface> {
console.error(chalk.yellow(oneLine` console.error(chalk.yellow(oneLine`
The "defaults.prefix" and "defaults.sourceDir" properties of angular-cli.json The "defaults.prefix" and "defaults.sourceDir" properties of angular-cli.json
are deprecated in favor of "apps[0].root" and "apps[0].prefix".\n are deprecated in favor of "apps[0].root" and "apps[0].prefix".\n
Please update in order to avoid errors in future versions of angular-cli. Please update in order to avoid errors in future versions of Angular CLI.
`)); `));
} }

View File

@ -61,7 +61,7 @@ const init = (config) => {
config.webpack = Object.assign(webpackConfig, config.webpack); config.webpack = Object.assign(webpackConfig, config.webpack);
config.webpackMiddleware = Object.assign(webpackMiddlewareConfig, config.webpackMiddleware); config.webpackMiddleware = Object.assign(webpackMiddlewareConfig, config.webpackMiddleware);
// replace the angular-cli preprocessor with webpack+sourcemap // replace the @angular/cli preprocessor with webpack+sourcemap
Object.keys(config.preprocessors) Object.keys(config.preprocessors)
.filter((file) => config.preprocessors[file].indexOf('@angular/cli') !== -1) .filter((file) => config.preprocessors[file].indexOf('@angular/cli') !== -1)
.map((file) => config.preprocessors[file]) .map((file) => config.preprocessors[file])

View File

@ -1,4 +1,4 @@
// This file is necessary when using a linked angular-cli to this repo, meaning that // This file is necessary when using a linked angular-cli to this repo, meaning that
// require('angular-cli/plugins/karma') will load this file, and we just forward to // require('@angular/cli/plugins/karma') will load this file, and we just forward to
// the actual published file. // the actual published file.
module.exports = require('../packages/@angular/cli/plugins/karma'); module.exports = require('../packages/@angular/cli/plugins/karma');