Browse Source

chore: add environment types

pull/4956/head
mehmet-erim 6 years ago
parent
commit
8fe5c4e487
  1. 6
      npm/ng-packs/apps/dev-app/src/environments/environment.prod.ts
  2. 6
      npm/ng-packs/apps/dev-app/src/environments/environment.ts
  3. 6
      templates/app/angular/src/environments/environment.prod.ts
  4. 5
      templates/app/angular/src/environments/environment.ts
  5. 6
      templates/module/angular/projects/dev-app/src/environments/environment.prod.ts
  6. 6
      templates/module/angular/projects/dev-app/src/environments/environment.ts

6
npm/ng-packs/apps/dev-app/src/environments/environment.prod.ts

@ -1,7 +1,10 @@
import { Config } from '@abp/ng.core';
export const environment = {
production: true,
hmr: false,
application: {
baseUrl: 'http://localhost:4200/',
name: 'MyProjectName',
logoUrl: '',
},
@ -10,7 +13,6 @@ export const environment = {
clientId: 'MyProjectName_App',
dummyClientSecret: '1q2w3e*',
scope: 'MyProjectName',
showDebugInformation: true,
oidc: false,
requireHttps: true,
},
@ -19,4 +21,4 @@ export const environment = {
url: 'https://localhost:44305',
},
},
};
} as Config.Environment;

6
npm/ng-packs/apps/dev-app/src/environments/environment.ts

@ -1,7 +1,10 @@
import { Config } from '@abp/ng.core';
export const environment = {
production: false,
hmr: false,
application: {
baseUrl: 'http://localhost:4200/',
name: 'MyProjectName',
logoUrl: '',
},
@ -10,7 +13,6 @@ export const environment = {
clientId: 'MyProjectName_App',
dummyClientSecret: '1q2w3e*',
scope: 'MyProjectName',
showDebugInformation: true,
oidc: false,
requireHttps: true,
},
@ -19,4 +21,4 @@ export const environment = {
url: 'https://localhost:44305',
},
},
};
} as Config.Environment;

6
templates/app/angular/src/environments/environment.prod.ts

@ -1,6 +1,9 @@
import { Config } from '@abp/ng.core';
export const environment = {
production: true,
application: {
baseUrl: 'https://localhost:4200/',
name: 'MyProjectName',
logoUrl: '',
},
@ -9,7 +12,6 @@ export const environment = {
clientId: 'MyProjectName_App',
dummyClientSecret: '1q2w3e*',
scope: 'MyProjectName',
showDebugInformation: true,
oidc: false,
requireHttps: true,
},
@ -21,4 +23,4 @@ export const environment = {
localization: {
defaultResourceName: 'MyProjectName',
},
};
} as Config.Environment;

5
templates/app/angular/src/environments/environment.ts

@ -1,6 +1,9 @@
import { Config } from '@abp/ng.core';
export const environment = {
production: false,
application: {
baseUrl: 'http://localhost:4200/',
name: 'MyProjectName',
logoUrl: '',
},
@ -21,4 +24,4 @@ export const environment = {
localization: {
defaultResourceName: 'MyProjectName',
},
};
} as Config.Environment;

6
templates/module/angular/projects/dev-app/src/environments/environment.prod.ts

@ -1,6 +1,9 @@
import { Config } from '@abp/ng.core';
export const environment = {
production: true,
application: {
baseUrl: 'https://localhost:4200/',
name: 'MyProjectName',
logoUrl: '',
},
@ -9,7 +12,6 @@ export const environment = {
clientId: 'MyProjectName_ConsoleTestApp',
dummyClientSecret: '1q2w3e*',
scope: 'MyProjectName',
showDebugInformation: true,
oidc: false,
requireHttps: true,
},
@ -21,4 +23,4 @@ export const environment = {
url: 'https://localhost:44300',
},
},
};
} as Config.Environment;

6
templates/module/angular/projects/dev-app/src/environments/environment.ts

@ -1,6 +1,9 @@
import { Config } from '@abp/ng.core';
export const environment = {
production: false,
application: {
baseUrl: 'https://localhost:4200/',
name: 'MyProjectName',
logoUrl: '',
},
@ -9,7 +12,6 @@ export const environment = {
clientId: 'MyProjectName_ConsoleTestApp',
dummyClientSecret: '1q2w3e*',
scope: 'MyProjectName',
showDebugInformation: true,
oidc: false,
requireHttps: true,
},
@ -21,4 +23,4 @@ export const environment = {
url: 'https://localhost:44300',
},
},
};
} as Config.Environment;

Loading…
Cancel
Save