Skip to content
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

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

Closed
benwinding opened this issue Jan 25, 2017 · 6 comments
Closed

Comments

@benwinding
Copy link

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

@clydin
Copy link
Member

clydin commented Jan 25, 2017

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

@filipesilva
Copy link
Contributor

Closing as answered by @clydin.

@sarathdr
Copy link

sarathdr commented Feb 3, 2017

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

@leocaseiro
Copy link

leocaseiro commented Apr 4, 2017

Check #5737

@benwinding
Copy link
Author

benwinding commented Apr 4, 2017 via email

@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 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants