File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
packages/angular/cli/commands Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
Adds the npm package for a published library to your workspace, and configures your default
2
2
app project to use that library, in whatever way is specified by the library's schematic.
3
3
For example, adding ` @angular/pwa ` configures your project for PWA support.
4
+
5
+ The default app project is the value of ` defaultProject ` in ` angular.json ` .
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " http://json-schema.org/schema" ,
3
3
"$id" : " ng-cli://commands/new.json" ,
4
- "description" : " Creates a new workspace and a new default Angular app." ,
4
+ "description" : " Creates a new workspace and an initial Angular app." ,
5
5
"$longDescription" : " ./new.md" ,
6
6
7
7
"$aliases" : [ " n" ],
Original file line number Diff line number Diff line change 1
1
Creates and initializes a new Angular app that is the default project for a new workspace.
2
2
3
- * The new workspace folder is given the specified project name. The new app is created at the top level of the workspace folder.
3
+ Provides interactive prompts for optional configuration, such as adding routing support.
4
+ All prompts can safely be allowed to default.
5
+
6
+ * The new workspace folder is given the specified project name, and contains configuration files at the top level.
7
+
8
+ * The new app files are placed in the ` src/ ` subfolder. A corresponding end-to-end test app is placed in the ` e2e/ ` subfolder.
4
9
5
10
* The new app's configuration appears in the ` projects ` section of the ` angular.json ` workspace configuration file, under its project name.
You can’t perform that action at this time.
0 commit comments