Skip to content

Angular.json ability to define shared app build configuration #11299

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

Closed
mcm-ham opened this issue Jun 19, 2018 · 4 comments
Closed

Angular.json ability to define shared app build configuration #11299

mcm-ham opened this issue Jun 19, 2018 · 4 comments
Labels
feature Issue that requests a new feature

Comments

@mcm-ham
Copy link

mcm-ham commented Jun 19, 2018

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Area

- [x] devkit
- [ ] schematics

Desired functionality

I have a number of sub-projects that I would like the same build configuration apart from paths. In angular.json it would be helpful to have the ability to setup default build configurations that can apply to all projects (or ability for one app to refer to another apps build config).

@dominikg
Copy link

dominikg commented Jun 19, 2018

maybe an option for a js/ts config file with import/export would work well?

I imagine an angular.json file of a workspace with some apps/libraries can get quite verbose right now.
If you could break it down into something along the lines of

import appConfig from 'projects/app/angular-app-config';

export const config = {
...
  projects: {
    app: appConfig
  }
};

and in angular-app-config

import defaultConfig from '@angular/cli/config/app/default';
const appConfig = defaultConfig;
appConfig.foo = 'bar';
export default appConfig;

@Brocco Brocco added the feature Issue that requests a new feature label Jun 21, 2018
@MickL
Copy link

MickL commented Jun 22, 2018

Duplicate of: #11233
Also there is: #10612

@kyliau
Copy link
Contributor

kyliau commented May 27, 2020

This has already been and addressed and fixed in #10612

@kyliau kyliau closed this as completed May 27, 2020
@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 Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

5 participants