From c85880681c791a8c8ce7d955943c8b384b200a70 Mon Sep 17 00:00:00 2001 From: Nicolas Drebenstedt Date: Wed, 7 Feb 2024 15:42:40 +0100 Subject: [PATCH] Harmonize environment names --- .cruft.json | 2 +- README.md | 2 +- angular.json | 22 +++++++++++----------- package.json | 2 +- src/environments/environment.prod.ts | 2 +- src/environments/environment.stage.ts | 4 ++-- src/environments/environment.ts | 2 +- src/main.ts | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.cruft.json b/.cruft.json index 60313e3..2c80c34 100644 --- a/.cruft.json +++ b/.cruft.json @@ -6,7 +6,7 @@ "cookiecutter": { "project_name": "editor", "short_summary": "Metadata editor web application.", - "long_summary": "The `mex-editor` is an angular application that allows creating and editing rules to non-destructivley manipulate metadata. This can be used to enrich data with manual input or insert new data from scratch.", + "long_summary": "The `mex-editor` is an angular application that allows creating and editing rules to non-destructively manipulate metadata. This can be used to enrich data with manual input or insert new data from scratch.", "_template": "https://github.com/robert-koch-institut/mex-template" } }, diff --git a/README.md b/README.md index 902c411..03be7db 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ data Findable, Accessible, Interoperable and Reusable. ## package The `mex-editor` is an angular application that allows creating and editing rules to -non-destructivley manipulate metadata. This can be used to enrich data with manual input +non-destructively manipulate metadata. This can be used to enrich data with manual input or insert new data from scratch. ## license diff --git a/angular.json b/angular.json index cc744ef..34f5b49 100644 --- a/angular.json +++ b/angular.json @@ -28,7 +28,7 @@ "scripts": [] }, "configurations": { - "production": { + "prod": { "budgets": [ { "type": "initial", @@ -52,7 +52,7 @@ "styles": {"inlineCritical": false} } }, - "staging": { + "stage": { "budgets": [ { "type": "initial", @@ -76,7 +76,7 @@ "styles": {"inlineCritical": false} } }, - "development": { + "dev": { "buildOptimizer": false, "optimization": false, "vendorChunk": true, @@ -85,22 +85,22 @@ "namedChunks": true } }, - "defaultConfiguration": "production" + "defaultConfiguration": "prod" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "configurations": { - "production": { - "browserTarget": "mex-editor:build:production" + "prod": { + "browserTarget": "mex-editor:build:prod" }, - "staging": { - "browserTarget": "mex-editor:build:staging" + "stage": { + "browserTarget": "mex-editor:build:stage" }, - "development": { - "browserTarget": "mex-editor:build:development" + "dev": { + "browserTarget": "mex-editor:build:dev" } }, - "defaultConfiguration": "development" + "defaultConfiguration": "dev" }, "test": { "builder": "@angular-devkit/build-angular:karma", diff --git a/package.json b/package.json index cbc53c5..cfda193 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "lint": "ng lint", "start": "ng serve", "test": "ng test", - "watch": "ng build --watch --configuration development", + "watch": "ng build --watch --configuration dev", "prepare": "husky install", "setup-dummy-data": "npx ts-node setup-dummy-data.ts", "prettify-src": "npx prettier --print-width 120 --write src" diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 3a79ed9..7d70dfc 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,6 +1,6 @@ import { secrets } from 'src/secrets'; export const environment = { - production: true, + prodMode: true, apiBaseUrl: secrets.urls.api.prod, }; diff --git a/src/environments/environment.stage.ts b/src/environments/environment.stage.ts index 97065d7..80045cd 100644 --- a/src/environments/environment.stage.ts +++ b/src/environments/environment.stage.ts @@ -1,6 +1,6 @@ import { secrets } from 'src/secrets'; export const environment = { - production: true, - apiBaseUrl: secrets.urls.api.staging, + prodMode: true, + apiBaseUrl: secrets.urls.api.stage, }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 3bb314a..26f66d5 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -1,6 +1,6 @@ import { secrets } from 'src/secrets'; export const environment = { - production: false, + prodMode: false, apiBaseUrl: secrets.urls.api.dev, }; diff --git a/src/main.ts b/src/main.ts index 6f555c3..8e1193f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; -if (environment.production) { +if (environment.prodMode) { enableProdMode(); }