RED-6686 version fix
This commit is contained in:
parent
d18fa633a8
commit
9ad47a8f61
@ -1,3 +0,0 @@
|
||||
{
|
||||
"hash": "development"
|
||||
}
|
||||
@ -11,8 +11,8 @@ if (environment.production) {
|
||||
|
||||
// https://github.com/angular/angular/issues/11195#issuecomment-248020928
|
||||
async function bootstrap(appConfig: AppConfig) {
|
||||
const packageJson = await import('.git-version.json');
|
||||
const config = { ...appConfig, FRONTEND_APP_VERSION: packageJson.hash };
|
||||
const packageJson = await import('version.json');
|
||||
const config = { ...appConfig, FRONTEND_APP_VERSION: packageJson.FRONTEND_APP_VERSION };
|
||||
|
||||
console.log('Started with local config: ', config);
|
||||
const appModule = appModuleFactory(config);
|
||||
|
||||
@ -33,8 +33,7 @@ COPY .eslintrc.json .eslintrc.json
|
||||
COPY tsconfig.json tsconfig.json
|
||||
COPY paligo-styles paligo-styles
|
||||
COPY sonar.js sonar.js
|
||||
COPY grab-git-info.js grab-git-info.js
|
||||
|
||||
COPY version.json version.json
|
||||
## Build the angular app in production mode and store the artifacts in dist folder
|
||||
|
||||
# Fix auth issue then uncomment
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
{
|
||||
"dirty": true,
|
||||
"raw": "a84073b85-dirty",
|
||||
"hash": "a84073b85",
|
||||
"distance": null,
|
||||
"tag": null,
|
||||
"semver": null,
|
||||
"suffix": "a84073b85-dirty",
|
||||
"semverString": null
|
||||
}
|
||||
@ -5,8 +5,7 @@
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "nx build",
|
||||
"set-git-version": "node grab-git-info.js",
|
||||
"build-lint-all": "node grab-git-info.js && nx build --project=red-ui --configuration production --base-href /ui/",
|
||||
"build-lint-all": "nx build --project=red-ui --configuration production --base-href /ui/",
|
||||
"build-paligo-styles": "mkdir -p dist/paligo-styles && sass --load-path=. paligo-styles/style.scss > dist/paligo-styles/redacto-theme.css",
|
||||
"i18n:extract": "ngx-translate-extract --input ./apps/red-ui/src ./libs/common-ui/src --output apps/red-ui/src/assets/i18n/{redact,scm}/{en,de}.json --clean --sort --format namespaced-json && prettier apps/red-ui/src/assets/i18n/*/*.json --write",
|
||||
"nx": "nx",
|
||||
@ -111,7 +110,6 @@
|
||||
"typescript": "5.1.3",
|
||||
"webpack": "5.87.0",
|
||||
"webpack-bundle-analyzer": "^4.8.0",
|
||||
"xliff": "^6.1.0",
|
||||
"git-describe": "^4.1.1"
|
||||
"xliff": "^6.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
3
version.json
Normal file
3
version.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"FRONTEND_APP_VERSION": "development"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user