Skip to content

Replace source in environments with separate environmentDefault entry #3857

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
filipesilva opened this issue Jan 4, 2017 · 2 comments · Fixed by #4705
Closed

Replace source in environments with separate environmentDefault entry #3857

filipesilva opened this issue Jan 4, 2017 · 2 comments · Fixed by #4705
Assignees
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@filipesilva
Copy link
Contributor

filipesilva commented Jan 4, 2017

Currently use use the source key inside the environments object to specify which file should be replaced:

"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}

But this is already the dev file. It would be cleaner to specify the default environment instead in a separate key:

"environmentSource": "environments/environment.ts",
"environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
@filipesilva filipesilva added command: build P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent labels Jan 4, 2017
@filipesilva filipesilva self-assigned this Jan 4, 2017
jsanchezgarcia added a commit to jsanchezgarcia/angular-cli that referenced this issue Jan 5, 2017
…ronmentDefault` entry

Replace `source` in environments with separate `environmentDefault` entry and updated docs to reflect this change

BREAKING CHANGE: angular-cli.json has changed. A new `environmentDefault` entry replaces the previous `source` entry inside `environments`.

To migrate the code follow the example below:

Before:

"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}

After:

"environmentSource": "environments/environment.ts",
"environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}

Closes angular#3857
@jsanchezgarcia
Copy link
Contributor

I just noticed that @filipesilva was assigned to this issue. Filipe, let me know if you want me to do any modifications to my PR (or feel free to do your own and discard mine).

jsanchezgarcia added a commit to jsanchezgarcia/angular-cli that referenced this issue Jan 6, 2017
…ronmentDefault` entry

Replace `source` in environments with separate `environmentDefault` entry and updated docs to reflect this change

BREAKING CHANGE: angular-cli.json has changed. A new `environmentDefault` entry replaces the previous `source` entry inside `environments`.

To migrate the code follow the example below:

Before:

"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}

After:

"environmentSource": "environments/environment.ts",
"environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}

Closes angular#3857
jsanchezgarcia added a commit to jsanchezgarcia/angular-cli that referenced this issue Jan 6, 2017
…fault` entry

Replace source in environments with separate environmentDefault entry and updated docs to reflect this change

BREAKING CHANGE: angular-cli.json has changed. A new environmentDefault entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:

"environments": {
"source": "environments/environment.ts",
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}

After:

"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}

Closes angular#3857
jsanchezgarcia added a commit to jsanchezgarcia/angular-cli that referenced this issue Jan 6, 2017
…fault` entry

Replace source in environments with separate environmentDefault entry and updated docs to reflect this change

BREAKING CHANGE: angular-cli.json has changed. A new environmentDefault entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:

"environments": {
"source": "environments/environment.ts",
	"dev": "environments/environment.ts",
	"prod": "environments/environment.prod.ts"
}

After:

"environmentSource": "environments/environment.ts",
"environments": {
	"dev": "environments/environment.ts",
	"prod": "environments/environment.prod.ts"
}

Closes angular#3857
jsanchezgarcia added a commit to jsanchezgarcia/angular-cli that referenced this issue Jan 6, 2017
…fault` entry

Replace source in environments with separate environmentDefault entry and updated docs to reflect this change

BREAKING CHANGE: angular-cli.json has changed. A new environmentDefault entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:

"environments": {
"source": "environments/environment.ts",
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}

After:

"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}

Closes angular#3857
jsanchezgarcia added a commit to jsanchezgarcia/angular-cli that referenced this issue Jan 6, 2017
…fault` entry

Replace source in environments with separate environmentDefault entry and updated docs to reflect this change

BREAKING CHANGE: angular-cli.json has changed. A new environmentDefault entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:

"environments": {
"source": "environments/environment.ts",
	"dev": "environments/environment.ts",
	"prod": "environments/environment.prod.ts"
}

After:

"environmentSource": "environments/environment.ts",
"environments": {
	"dev": "environments/environment.ts",
	"prod": "environments/environment.prod.ts"
}

Closes angular#3857
jsanchezgarcia added a commit to jsanchezgarcia/angular-cli that referenced this issue Feb 7, 2017
…fault` entry

Replace source in environments with separate environmentDefault entry and updated docs to reflect this change

BREAKING CHANGE: angular-cli.json has changed. A new environmentDefault entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:

"environments": {
"source": "environments/environment.ts",
	"dev": "environments/environment.ts",
	"prod": "environments/environment.prod.ts"
}

After:

"environmentSource": "environments/environment.ts",
"environments": {
	"dev": "environments/environment.ts",
	"prod": "environments/environment.prod.ts"
}

Closes angular#3857
jsanchezgarcia added a commit to jsanchezgarcia/angular-cli that referenced this issue Feb 7, 2017
…fault` entry

Replace source in environments with separate environmentDefault entry and updated docs to reflect this change

BREAKING CHANGE: angular-cli.json has changed. A new environmentDefault entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:

"environments": {
"source": "environments/environment.ts",
	"dev": "environments/environment.ts",
	"prod": "environments/environment.prod.ts"
}

After:

"environmentSource": "environments/environment.ts",
"environments": {
	"dev": "environments/environment.ts",
	"prod": "environments/environment.prod.ts"
}

Closes angular#3857
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 14, 2017
Heavily based on @	jsanchezgarcia work in angular#4476.

Fix angular#3857

BREAKING CHANGE:

A new environmentSource entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:
```
"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```

After:
```
"environmentSource": "environments/environment.ts",
  "environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 14, 2017
Heavily based on @jsanchezgarcia work in angular#4476.

Fix angular#3857

BREAKING CHANGE:

A new environmentSource entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:
```
"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```

After:
```
"environmentSource": "environments/environment.ts",
  "environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 14, 2017
Heavily based on @jsanchezgarcia work in angular#4476.

Fix angular#3857

BREAKING CHANGE:

A new environmentSource entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:
```
"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```

After:
```
"environmentSource": "environments/environment.ts",
  "environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 15, 2017
Heavily based on @jsanchezgarcia work in angular#4476.

Fix angular#3857

BREAKING CHANGE:

A new environmentSource entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:
```
"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```

After:
```
"environmentSource": "environments/environment.ts",
  "environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```
filipesilva added a commit that referenced this issue Feb 16, 2017
Heavily based on @jsanchezgarcia work in #4476.

Fix #3857

BREAKING CHANGE:

A new environmentSource entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:
```
"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```

After:
```
"environmentSource": "environments/environment.ts",
  "environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```
asnowwolf pushed a commit to asnowwolf/angular-cli that referenced this issue Apr 12, 2017
…ar#4705)

Heavily based on @jsanchezgarcia work in angular#4476.

Fix angular#3857

BREAKING CHANGE:

A new environmentSource entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:
```
"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```

After:
```
"environmentSource": "environments/environment.ts",
  "environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```
@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.