refactor environment.prod.ts to environment.production.ts

This commit is contained in:
William Welling
2021-12-17 08:14:15 -06:00
parent 21fcc9dde8
commit 4c46d9db2b
7 changed files with 7 additions and 7 deletions

View File

@@ -384,7 +384,7 @@ dspace-angular
│ ├── backend * Folder containing a mock of the REST API, hosted by the express server │ ├── backend * Folder containing a mock of the REST API, hosted by the express server
│ ├── config * │ ├── config *
│ ├── environments * │ ├── environments *
│ │ ├── environment.prod.ts * Production configuration files │ │ ├── environment.production.ts * Production configuration files
│ │ ├── environment.test.ts * Test configuration files │ │ ├── environment.test.ts * Test configuration files
│ │ └── environment.ts * Default (development) configuration files │ │ └── environment.ts * Default (development) configuration files
│ ├── mirador-viewer * │ ├── mirador-viewer *

View File

@@ -71,7 +71,7 @@
"fileReplacements": [ "fileReplacements": [
{ {
"replace": "src/environments/environment.ts", "replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts" "with": "src/environments/environment.production.ts"
} }
], ],
"optimization": true, "optimization": true,
@@ -203,7 +203,7 @@
"fileReplacements": [ "fileReplacements": [
{ {
"replace": "src/environments/environment.ts", "replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts" "with": "src/environments/environment.production.ts"
} }
] ]
} }

View File

@@ -178,7 +178,7 @@ export const buildAppConfig = (destConfigPath?: string): AppConfig => {
console.warn(`Unable to find dist config file at ${localConfigPath}`); 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); const externalConfigPath = ENV('APP_CONFIG_PATH', true);
if (isNotEmpty(externalConfigPath)) { if (isNotEmpty(externalConfigPath)) {
if (fs.existsSync(externalConfigPath)) { if (fs.existsSync(externalConfigPath)) {

View File

@@ -1,4 +1,4 @@
import { environment } from '../environments/environment.prod'; import { environment } from '../environments/environment.production';
import { extendEnvironmentWithAppConfig } from './config.util'; import { extendEnvironmentWithAppConfig } from './config.util';
import { DefaultAppConfig } from './default-app-config'; import { DefaultAppConfig } from './default-app-config';
import { HandleThemeConfig } from './theme.model'; import { HandleThemeConfig } from './theme.model';

View File

@@ -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 { BrowseByType } from '../app/browse-by/browse-by-switcher/browse-by-decorator';
import { RestRequestMethod } from '../app/core/data/rest-request-method'; import { RestRequestMethod } from '../app/core/data/rest-request-method';
import { NotificationAnimationsType } from '../app/shared/notifications/models/notification-animations-type'; import { NotificationAnimationsType } from '../app/shared/notifications/models/notification-animations-type';

View File

@@ -1,5 +1,5 @@
// This file can be replaced during build by using the `fileReplacements` array. // 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`. // `ng test --configuration test` replaces `environment.ts` with `environment.test.ts`.
// The list of file replacements can be found in `angular.json`. // The list of file replacements can be found in `angular.json`.