Skip to content

Commit

Permalink
Harmonize environment names
Browse files Browse the repository at this point in the history
  • Loading branch information
cutoffthetop committed Feb 7, 2024
1 parent d5b9822 commit c858806
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"scripts": []
},
"configurations": {
"production": {
"prod": {
"budgets": [
{
"type": "initial",
Expand All @@ -52,7 +52,7 @@
"styles": {"inlineCritical": false}
}
},
"staging": {
"stage": {
"budgets": [
{
"type": "initial",
Expand All @@ -76,7 +76,7 @@
"styles": {"inlineCritical": false}
}
},
"development": {
"dev": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { secrets } from 'src/secrets';

export const environment = {
production: true,
prodMode: true,
apiBaseUrl: secrets.urls.api.prod,
};
4 changes: 2 additions & 2 deletions src/environments/environment.stage.ts
Original file line number Diff line number Diff line change
@@ -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,
};
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { secrets } from 'src/secrets';

export const environment = {
production: false,
prodMode: false,
apiBaseUrl: secrets.urls.api.dev,
};
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit c858806

Please sign in to comment.