mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-02-19 19:58:23 +00:00
Makes environments consistent with cr-connect-frontend angular app
This commit is contained in:
parent
599ff28f8e
commit
6d3ffe8f35
29
angular.json
29
angular.json
@ -81,6 +81,35 @@
|
|||||||
"maximumError": "5mb"
|
"maximumError": "5mb"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.test.ts"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"optimization": true,
|
||||||
|
"outputHashing": "all",
|
||||||
|
"sourceMap": false,
|
||||||
|
"extractCss": true,
|
||||||
|
"namedChunks": false,
|
||||||
|
"aot": true,
|
||||||
|
"extractLicenses": true,
|
||||||
|
"vendorChunk": false,
|
||||||
|
"buildOptimizer": true,
|
||||||
|
"budgets": [
|
||||||
|
{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "2mb",
|
||||||
|
"maximumError": "5mb"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "anyComponentStyle",
|
||||||
|
"maximumWarning": "6kb",
|
||||||
|
"maximumError": "10kb"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
export const environment = {
|
import {AppEnvironment} from 'sartography-workflow-lib';
|
||||||
|
|
||||||
|
export const environment: AppEnvironment = {
|
||||||
production: true,
|
production: true,
|
||||||
api: 'https://crconnect.virginia.edu:5000',
|
api: 'https://crconnect.virginia.edu',
|
||||||
googleAnalyticsKey: '',
|
googleAnalyticsKey: '',
|
||||||
irbUrl: 'https://www.irb.virginia.edu',
|
irbUrl: 'https://www.irb.virginia.edu/index.cfm?fuseAction=ss_create.create',
|
||||||
};
|
};
|
||||||
|
14
src/environments/environment.spec.ts
Normal file
14
src/environments/environment.spec.ts
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import {environment as environment_dev} from './environment';
|
||||||
|
import {environment as environment_prod} from './environment.prod';
|
||||||
|
import {environment as environment_staging} from './environment.staging';
|
||||||
|
import {environment as environment_test} from './environment.test';
|
||||||
|
|
||||||
|
|
||||||
|
describe('Environments', () => {
|
||||||
|
it('should have settings for all the environments', () => {
|
||||||
|
expect(environment_dev).toBeDefined();
|
||||||
|
expect(environment_test).toBeDefined();
|
||||||
|
expect(environment_staging).toBeDefined();
|
||||||
|
expect(environment_prod).toBeDefined();
|
||||||
|
});
|
||||||
|
});
|
@ -4,5 +4,5 @@ export const environment: AppEnvironment = {
|
|||||||
production: true,
|
production: true,
|
||||||
api: 'http://workflow.sartography.com:5000/v1.0',
|
api: 'http://workflow.sartography.com:5000/v1.0',
|
||||||
googleAnalyticsKey: '',
|
googleAnalyticsKey: '',
|
||||||
irbUrl: 'https://workflow.sartography.com:5001/pb',
|
irbUrl: 'https://workflow.sartography.com:5001/pb/ui',
|
||||||
};
|
};
|
||||||
|
8
src/environments/environment.test.ts
Normal file
8
src/environments/environment.test.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import {AppEnvironment} from 'sartography-workflow-lib';
|
||||||
|
|
||||||
|
export const environment: AppEnvironment = {
|
||||||
|
production: false,
|
||||||
|
api: 'http://localhost:5000/v1.0',
|
||||||
|
googleAnalyticsKey: '',
|
||||||
|
irbUrl: 'https://localhost:5001/pb/ui',
|
||||||
|
};
|
@ -1,21 +1,8 @@
|
|||||||
// This file can be replaced during build by using the `fileReplacements` array.
|
|
||||||
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
||||||
// The list of file replacements can be found in `angular.json`.
|
|
||||||
|
|
||||||
import {AppEnvironment} from 'sartography-workflow-lib';
|
import {AppEnvironment} from 'sartography-workflow-lib';
|
||||||
|
|
||||||
export const environment: AppEnvironment = {
|
export const environment: AppEnvironment = {
|
||||||
production: false,
|
production: false,
|
||||||
api: 'http://localhost:5000/v1.0',
|
api: 'http://localhost:5000/v1.0',
|
||||||
googleAnalyticsKey: '',
|
googleAnalyticsKey: '',
|
||||||
irbUrl: 'https://workflow.sartography.com:5001/pb',
|
irbUrl: 'https://localhost:5001/pb/ui',
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
* For easier debugging in development mode, you can import the following file
|
|
||||||
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
|
||||||
*
|
|
||||||
* This import should be commented out in production mode because it will have a negative impact
|
|
||||||
* on performance if an error is thrown.
|
|
||||||
*/
|
|
||||||
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user