Understanding it's purpose and limits

angular.json, to say which project should run with ng commands without a defined project.

large discussion about project layout for 8.x.x.

my-app:

$ ng new my-app

angular.json with the following structure:

{
...,
"projects": {
"my-app": { ... },
"my-app-e2e": { ... },
},
"defaultProject": "my-app",
}

ng serve my-app.

Setting a new default project

To understand what values are valid, let's create a library and an application.

$ ng create application my-application
$ ng create library my-library

Now, we have the following structure:

{
...,
"projects": {
"my-app": { ... },
"my-app-e2e": { ... },
"my-application": { ... },
"my-application-e2e": { ... },
"my-library": { ... }
},
"defaultProject": "my-app",
}

ng e2e.

my-application) will automatically be set as the default project.

Commands

test.


collection of tips for managing Angular workspaces.

相关文章:

  • 2021-07-29
  • 2021-05-24
  • 2021-04-07
  • 2021-05-29
  • 2021-09-10
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
猜你喜欢
  • 2021-12-02
  • 2021-04-06
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
相关资源
相似解决方案