Skip to content

Expand doc for initial cmds#12597

Merged
alexeagle merged 4 commits into
angular:masterfrom
jbogarthyde:jb-cmds-edit
Oct 16, 2018
Merged

Expand doc for initial cmds#12597
alexeagle merged 4 commits into
angular:masterfrom
jbogarthyde:jb-cmds-edit

Conversation

@jbogarthyde
Copy link
Copy Markdown
Contributor

Add long descriptions and references for the "add", "new" and "update" commands

@jbogarthyde jbogarthyde added area: docs Related to the documentation area: @angular/cli target: major This PR is targeted for the next major release labels Oct 15, 2018
@jbogarthyde jbogarthyde added this to the 7.0.0 milestone Oct 15, 2018
Copy link
Copy Markdown

@jenniferfell jenniferfell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for the quick PR. Only one essential change, adding a note about prompts to ng new. Other things are minor ideas open to interpretation. Thanks!

Comment thread packages/angular/cli/commands/new.json Outdated
"$id": "ng-cli://commands/new.json",
"description": "Creates a new directory and a new Angular app.",
"$longDescription": "",
"description": "Creates a new workspace and a new default Angular app.",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not use default to mean "initial" or "starter". Thx.

@@ -0,0 +1,5 @@
Creates and initializes a new Angular app that is the default project for a new workspace.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this :-)

Comment thread packages/angular/cli/commands/new.md Outdated
@@ -0,0 +1,5 @@
Creates and initializes a new Angular app that is the default project for a new workspace.

* The new workspace folder is given the specified project name. The new app is created at the top level of the workspace folder.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new app is in the src folder. That's where all the app-specific source code and configuration files live.

@@ -0,0 +1 @@
Before running this command, see the interactive [Angular Update Guide](https://update.angular.io/). No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pefecto

"$id": "ng-cli://commands/update.json",
"description": "Updates your application and its dependencies.",
"$longDescription": "",
"description": "Updates your application and its dependencies. See \"https://update.angular.io/\",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pefecto

@@ -1,2 +1,3 @@
Add support for a library in your project, for example adding `@angular/pwa` which would configure
your project for PWA support.
Adds the npm package for a published library to your workspace, and configures your default
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tech question: Configures the app set in "defaultProject" or configures the current app project (when executed from within an app project folder)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there is any "current app project" here - it doesn't take a "project" arg, just the package name. I added a note about "defaultProject".


* The new workspace folder is given the specified project name. The new app is created at the top level of the workspace folder.

* The new app's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name. No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a note somewhere about prompts. Something like this: The command prompts for information about features to include in the initial app project, such as routing and the CSS file to use.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I added this before, but messed up the PR and had to start over and recreate the text. Adding it back now.

"$id": "ng-cli://commands/update.json",
"description": "Updates your application and its dependencies.",
"$longDescription": "",
"description": "Updates your application and its dependencies. See \"https://update.angular.io/\",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heya, this line contains invalid JSON and is breaking the CI.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Don't mention Architect
We don't inline resources anymore
Minor grammar tweaks
Split out a couple more long descriptions so the short description is plain text
@alexeagle alexeagle merged commit 21956ca into angular:master Oct 16, 2018
@jbogarthyde jbogarthyde deleted the jb-cmds-edit branch October 16, 2018 21:39
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: @angular/cli area: docs Related to the documentation target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants