Skip to content

Commit aebf115

Browse files
JeanMechethePunderWoman
authored andcommitted
ci: Remove environment files and EnableProdMode on integration tests (angular#49746)
Since v15, prod mode is handled by the CLI with the `optimization` flag. We can remove the environement files and `enableProdMode` when the tests use the CLI. PR Close angular#49746
1 parent 5715154 commit aebf115

File tree

46 files changed

+1
-360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1
-360
lines changed

integration/animations/angular.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@
3535
},
3636
"configurations": {
3737
"production": {
38-
"fileReplacements": [
39-
{
40-
"replace": "src/environments/environment.ts",
41-
"with": "src/environments/environment.prod.ts"
42-
}
43-
],
4438
"optimization": true,
4539
"outputHashing": "all",
4640
"sourceMap": false,

integration/animations/src/environments/environment.prod.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

integration/animations/src/environments/environment.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

integration/animations/src/main.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
import { enableProdMode } from '@angular/core';
21
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
32

43
import { AppModule } from './app/app.module';
5-
import { environment } from './environments/environment';
6-
7-
if (environment.production) {
8-
enableProdMode();
9-
}
104

115
platformBrowserDynamic().bootstrapModule(AppModule)
126
.catch(err => console.error(err));

integration/cli-elements-universal/angular.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@
3939
},
4040
"configurations": {
4141
"production": {
42-
"fileReplacements": [
43-
{
44-
"replace": "src/environments/environment.ts",
45-
"with": "src/environments/environment.prod.ts"
46-
}
47-
],
4842
"optimization": true,
4943
"outputHashing": "all",
5044
"sourceMap": false,
@@ -143,12 +137,6 @@
143137
"configurations": {
144138
"production": {
145139
"outputHashing": "media",
146-
"fileReplacements": [
147-
{
148-
"replace": "src/environments/environment.ts",
149-
"with": "src/environments/environment.prod.ts"
150-
}
151-
],
152140
"sourceMap": false,
153141
"optimization": true
154142
}

integration/cli-elements-universal/src/environments/environment.prod.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

integration/cli-elements-universal/src/environments/environment.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
import '@angular/platform-server/init';
2-
import { enableProdMode } from '@angular/core';
3-
4-
import { environment } from './environments/environment';
5-
6-
if (environment.production) {
7-
enableProdMode();
8-
}
92

103
export { AppServerModule } from './app/app.server.module';

integration/cli-elements-universal/src/main.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
import { enableProdMode } from '@angular/core';
21
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
32

43
import { AppModule } from './app/app.module';
5-
import { environment } from './environments/environment';
6-
7-
if (environment.production) {
8-
enableProdMode();
9-
}
104

115
document.addEventListener('DOMContentLoaded', () => {
126
platformBrowserDynamic().bootstrapModule(AppModule)

integration/cli-hello-world-ivy-i18n/angular.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@
3838
},
3939
"configurations": {
4040
"production": {
41-
"fileReplacements": [
42-
{
43-
"replace": "src/environments/environment.ts",
44-
"with": "src/environments/environment.prod.ts"
45-
}
46-
],
4741
"optimization": true,
4842
"outputHashing": "all",
4943
"sourceMap": false,

0 commit comments

Comments
 (0)