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

fix(config): allow minimal config for build/serve #3835

Merged
merged 1 commit into from
Jan 3, 2017

Conversation

filipesilva
Copy link
Contributor

@filipesilva filipesilva commented Jan 3, 2017

This PR fixes a lot of errors that would show up when angular-cli.json was missing some entries.

A config as small as the following now works for ng build/serve:

{
  "apps": [
    {
      "root": "src",
      "main": "main.ts"
    }
  ]
}

In future PRs we should verify the rest of the commands work correctly with minimal configs (i.e. throw correct errors instead of just dying because of an undefined).

This PR fixes a lot of errors that would show up when `angular-cli.json` was missing some entries.

A config as small as the following now works for `ng build/serve`:

```
{
  "apps": [
    {
      "root": "src",
      "main": "main.ts"
    }
  ]
}
```

In future PRs we should verify the rest of the commands work correctly with minimal configs.
@filipesilva filipesilva merged commit f616158 into angular:master Jan 3, 2017
@filipesilva filipesilva deleted the minimal-cli-config branch January 3, 2017 15:48
MRHarrison pushed a commit to MRHarrison/angular-cli that referenced this pull request Feb 9, 2017
This PR fixes a lot of errors that would show up when `angular-cli.json` was missing some entries.

A config as small as the following now works for `ng build/serve`:

```
{
  "apps": [
    {
      "root": "src",
      "main": "main.ts"
    }
  ]
}
```

In future PRs we should verify the rest of the commands work correctly with minimal configs.
@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 11, 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

Successfully merging this pull request may close these issues.

3 participants