Skip to content

Multiple app defintions in the angular-cli.json "apps" : [ ] property #4215

Closed

Description

@benwinding

Multiple app definitions

I noticed that inside the angular-cli.json file, the "apps": property is defined as an array. Is the following a valid example of the intended use for this property?

angular-cli.json :

{
  "project": {
    "version": "1.0.0-beta.26",
    "name": "example1"
  },
  "apps": [
    {
      "root": "src",
      "outDir": "dist",
      ...
    }, 
    {
      "root": "src2",
      "outDir": "dist2",
      ...
    }
  ],
  ...
}

I've tested with multiple definitions in the "apps": property. And ng build always builds the first app defintiion.

If all these assumptions are correct, How do you use ng build to compile the second app definition?

Current Config.

angular-cli: 1.0.0-beta.26
node: 6.5.0
os: win32 x64
@angular/common: 2.4.4
@angular/compiler: 2.4.4
@angular/core: 2.4.4
@angular/forms: 2.4.4
@angular/http: 2.4.4
@angular/platform-browser: 2.4.4
@angular/platform-browser-dynamic: 2.4.4
@angular/router: 3.4.4
@angular/compiler-cli: 2.4.4

Activity

  1. clydin commented on Jan 25, 2017

    @clydin
    Member

    That is the intended future use. However, only one app is currently supported.

  2. filipesilva commented on Jan 25, 2017

    @filipesilva
    Contributor

    Closing as answered by @clydin.

  3. sarathdr commented on Feb 3, 2017

    @sarathdr

    Is there a timeline for this? Could you suggest a workaround until then?

  4. leocaseiro commented on Apr 4, 2017

    @leocaseiro

    Check #5737

  5. benwinding commented on Apr 4, 2017

    @benwinding
    Author
  6. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    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.

  7. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions