Skip to content

Docs preview #12837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed

Docs preview #12837

wants to merge 10 commits into from

Conversation

jbogarthyde
Copy link
Contributor

@jbogarthyde jbogarthyde commented Nov 1, 2018

new and edited doc for commands and subcommands (from PRs #12741 and #12743)

Closes: #12898

@jbogarthyde jbogarthyde added area: docs Related to the documentation target: patch This PR is targeted for the next patch release labels Nov 1, 2018
Resources in CSS, such as images and fonts, are automatically written and fingerprinted at the root of the output folder.

Uses the Webpack build tool, with environment and build options specified in the CLI configuration file.
For further details, see Workspace Configuration.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should add a link?

Copy link
Contributor Author

@jbogarthyde jbogarthyde Nov 2, 2018

Choose a reason for hiding this comment

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

The new page just landed - adding link here, and another one in config.

A library is a type of project that does not run independently.
The library skeleton created by this command is placed by default in the `/projects` folder, and has `type` of "library".

You can build a new library using the `ng build` command, and unit-test it and lint it using the `ng test` and `ng lint` commands.
Copy link
Collaborator

@alan-agius4 alan-agius4 Nov 2, 2018

Choose a reason for hiding this comment

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

Note quite sure about the grammar here, and unit-test it and lint it

Maybe something like;

You can build the library, unit-test and lint it using the ng build, ng test and ng lint commands respectively.

Copy link

@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.

No show stoppers. Mostly just impressions from a first-time reader and a few typos.

@@ -1,3 +1,14 @@
Uses the Webpack build tool, with default configuration options specified in the workspace configuration file, `angular.json`, or with a named alternative configuration.

Choose a reason for hiding this comment

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

Edit: Looks like "webpack" uses lowercase for themselves: https://webpack.js.org/concepts/

@@ -1,3 +1,14 @@
Uses the Webpack build tool, with default configuration options specified in the workspace configuration file, `angular.json`, or with a named alternative configuration.

Choose a reason for hiding this comment

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

Edit: Comma thing. Could be misread as 3 things. Maybe this: "Uses the Webpack build tool, with default configuration options specified in the workspace configuration file (angular.json) or with a named alternative configuration.

"type": "string",
"aliases": [
"c"
]
},
"prod": {
"description": "When true, sets the build configuration to the production environment.\nAll builds make use of bundling and limited tree-shaking, A production build also runs limited dead code elimination using UglifyJS.",
"description": "When true, sets the build configuration to the production target.\nAll builds make use of bundling and limited tree-shaking, A production build also runs limited dead code elimination.",

Choose a reason for hiding this comment

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

Minor edit period instead of comma: When true, sets the build configuration to the production target.\nAll builds make use of bundling and limited tree-shaking. A production build also runs limited dead code elimination."

@@ -0,0 +1,16 @@
Architect is the tool that the CLI uses to perform complex tasks such as compilation, according to provided configurations.
The CLI commands run Architect targets such as `build`, `serve`, `test` and `lint`.

Choose a reason for hiding this comment

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

Minor edit: test, and lint.

@@ -1,8 +1,8 @@
{
"$schema": "http://json-schema.org/schema",
"$id": "ng-cli://commands/run.json",
"description": "Runs a custom target defined in your project.",
"$longDescription": "",
"description": "Runs an architect target with an optional custom builder configuration defined in your project.",

Choose a reason for hiding this comment

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

Edit: Architect in caps everywhere? (I don't have a pref. This is the only lowercase i noticed so far)

"type": "boolean",
"default": true
},
"minimal": {
"description": "Create a barebones project without any testing frameworks",
"description": "When true, creates a barebones project without any testing frameworks.",

Choose a reason for hiding this comment

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

Same comment...maybe remove "barebones"

@@ -29,17 +30,17 @@
"flat": {
"type": "boolean",
"default": true,
"description": "Flag to indicate if a directory is created."
"description": "When true (the default) creates files at the top level of the project."

Choose a reason for hiding this comment

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

When true (the default), creates

@@ -14,7 +14,7 @@
}
},
"experimentalAngularNext": {
"description": "Use the next version of Angular (@next dist-tag).",
"description": "True to use the next version of Angular (@next dist-tag).",

Choose a reason for hiding this comment

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

Maybe: When true, uses the next version...

"type": "boolean",
"default": false
},
"linkCli": {
"description": "Link CLI to global version (internal development only).",
"description": "When true, link CLI to global version (internal development only).",

Choose a reason for hiding this comment

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

Same ? as above

@@ -75,7 +75,7 @@
}
},
"minimal": {
"description": "Create a barebones project without any testing frameworks",
"description": "When true, creates a bare-bones project without any testing frameworks",

Choose a reason for hiding this comment

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

Remove "bare-bones"?

@ngbot
Copy link

ngbot bot commented Nov 7, 2018

Hi @jbogarthyde! This PR has merge conflicts due to recent upstream merges.
Please help to unblock it by resolving these conflicts. Thanks!

@jbogarthyde
Copy link
Contributor Author

@jenniferfell @hansl All comments have been addressed. I think this can be merged, I don't know why it is blocked.

@filipesilva
Copy link
Contributor

@hansl @alan-agius4 the docs-preview branch is behind master right now and in conflict. It is also a protect branch though, so it cannot be rebased. I'm not sure what the plan is for this branch.

Is it supposed to receive cherry picks from master? Either way for this PR to go in docs-preview needs to be updated to master.

@hansl hansl closed this in 9da4bdc Nov 13, 2018
@hansl hansl deleted the docs-preview branch November 13, 2018 21:18
@angular-automatic-lock-bot
Copy link

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: docs Related to the documentation state: blocked target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The difference between ng build --prod and ng build --configuration=production is unclear.
6 participants