-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(workbench-testing-app): set up versioned deployment of testing app
Latest URL: https://workbench-testing-app.scion.vercel.app Versioned URL: https://workbench-testing-app-v18-0-0-beta-8.scion.vercel.app
- Loading branch information
1 parent
70cb418
commit 70b1544
Showing
7 changed files
with
175 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
apps/workbench-client-testing-app/src/environments/environment.vercel.release.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2018-2022 Swiss Federal Railways | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
import packageJson from '../../../../projects/scion/workbench/package.json'; | ||
|
||
const version = packageJson.version.replace(/\./g, '-'); | ||
|
||
/** | ||
* Environment used when packaging the app for Vercel. | ||
*/ | ||
export const environment = { | ||
animationEnabled: true, | ||
apps: { | ||
app1: { | ||
symbolicName: 'workbench-client-testing-app1', | ||
url: `https://workbench-client-testing-app1-v${version}.scion.vercel.app`, | ||
}, | ||
app2: { | ||
symbolicName: 'workbench-client-testing-app2', | ||
url: `https://workbench-client-testing-app2-v${version}.scion.vercel.app`, | ||
}, | ||
}, | ||
}; |
File renamed without changes.
36 changes: 36 additions & 0 deletions
36
apps/workbench-testing-app/src/environments/environment.vercel.release.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (c) 2018-2022 Swiss Federal Railways | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
import {MicrofrontendPlatformConfig} from '@scion/microfrontend-platform'; | ||
import {workbenchManifest} from '../app/workbench.manifest'; | ||
import packageJson from '../../../../projects/scion/workbench/package.json'; | ||
|
||
const version = packageJson.version.replace(/\./g, '-'); | ||
|
||
/** | ||
* Environment used when packaging the app for Vercel. | ||
*/ | ||
const microfrontendPlatformConfig: MicrofrontendPlatformConfig = { | ||
host: { | ||
symbolicName: 'workbench-host-app', | ||
manifest: workbenchManifest, | ||
}, | ||
applications: [ | ||
{symbolicName: 'workbench-client-testing-app1', manifestUrl: `https://workbench-client-testing-app1-v${version}.scion.vercel.app/manifest-app1.json`, intentionRegisterApiDisabled: false}, | ||
{symbolicName: 'workbench-client-testing-app2', manifestUrl: `https://workbench-client-testing-app2-v${version}.scion.vercel.app/manifest-app2.json`, intentionRegisterApiDisabled: false}, | ||
{symbolicName: 'devtools', manifestUrl: 'https://microfrontend-platform-devtools-v1-3-1.scion.vercel.app/manifest.json', intentionCheckDisabled: true, scopeCheckDisabled: true}, | ||
], | ||
}; | ||
|
||
export const environment = { | ||
animationEnabled: true, | ||
logAngularChangeDetectionCycles: false, | ||
microfrontendPlatformConfig, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters