From 4c46d9db2b6000c5091929e3bb714887b1fb0a8f Mon Sep 17 00:00:00 2001 From: William Welling Date: Fri, 17 Dec 2021 08:14:15 -0600 Subject: [PATCH] refactor environment.prod.ts to environment.production.ts --- README.md | 2 +- angular.json | 4 ++-- src/config/config.server.ts | 2 +- src/config/config.util.spec.ts | 2 +- .../{environment.prod.ts => environment.production.ts} | 0 src/environments/environment.test.ts | 2 +- src/environments/environment.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename src/environments/{environment.prod.ts => environment.production.ts} (100%) diff --git a/README.md b/README.md index b4ae6c884b..829f7121b2 100644 --- a/README.md +++ b/README.md @@ -384,7 +384,7 @@ dspace-angular │ ├── backend * Folder containing a mock of the REST API, hosted by the express server │ ├── config * │ ├── environments * -│ │ ├── environment.prod.ts * Production configuration files +│ │ ├── environment.production.ts * Production configuration files │ │ ├── environment.test.ts * Test configuration files │ │ └── environment.ts * Default (development) configuration files │ ├── mirador-viewer * diff --git a/angular.json b/angular.json index b9b8cb41cc..a0a4cd8ea1 100644 --- a/angular.json +++ b/angular.json @@ -71,7 +71,7 @@ "fileReplacements": [ { "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" + "with": "src/environments/environment.production.ts" } ], "optimization": true, @@ -203,7 +203,7 @@ "fileReplacements": [ { "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" + "with": "src/environments/environment.production.ts" } ] } diff --git a/src/config/config.server.ts b/src/config/config.server.ts index 36d7d1f9d8..ade4e90591 100644 --- a/src/config/config.server.ts +++ b/src/config/config.server.ts @@ -178,7 +178,7 @@ export const buildAppConfig = (destConfigPath?: string): AppConfig => { console.warn(`Unable to find dist config file at ${localConfigPath}`); } - // override with external config if specified by environment variable `APP_CONFIG_PATH` + // override with external config if specified by environment variable `DSPACE_APP_CONFIG_PATH` const externalConfigPath = ENV('APP_CONFIG_PATH', true); if (isNotEmpty(externalConfigPath)) { if (fs.existsSync(externalConfigPath)) { diff --git a/src/config/config.util.spec.ts b/src/config/config.util.spec.ts index f9989f5a83..7896b1f5c2 100644 --- a/src/config/config.util.spec.ts +++ b/src/config/config.util.spec.ts @@ -1,4 +1,4 @@ -import { environment } from '../environments/environment.prod'; +import { environment } from '../environments/environment.production'; import { extendEnvironmentWithAppConfig } from './config.util'; import { DefaultAppConfig } from './default-app-config'; import { HandleThemeConfig } from './theme.model'; diff --git a/src/environments/environment.prod.ts b/src/environments/environment.production.ts similarity index 100% rename from src/environments/environment.prod.ts rename to src/environments/environment.production.ts diff --git a/src/environments/environment.test.ts b/src/environments/environment.test.ts index 0af2fc8546..0cf069bd56 100644 --- a/src/environments/environment.test.ts +++ b/src/environments/environment.test.ts @@ -1,4 +1,4 @@ -// This configuration is only used for unit tests, end-to-end tests use environment.prod.ts +// This configuration is only used for unit tests, end-to-end tests use environment.production.ts import { BrowseByType } from '../app/browse-by/browse-by-switcher/browse-by-decorator'; import { RestRequestMethod } from '../app/core/data/rest-request-method'; import { NotificationAnimationsType } from '../app/shared/notifications/models/notification-animations-type'; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 29b67704eb..90eecac900 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -1,5 +1,5 @@ // This file can be replaced during build by using the `fileReplacements` array. -// `ng build --configuration production` replaces `environment.ts` with `environment.prod.ts`. +// `ng build --configuration production` replaces `environment.ts` with `environment.production.ts`. // `ng test --configuration test` replaces `environment.ts` with `environment.test.ts`. // The list of file replacements can be found in `angular.json`.