Skip to content

Commit

Permalink
add production configuration (#81)
Browse files Browse the repository at this point in the history
* repairs for enviroments.development.spec.ts
  • Loading branch information
MocStepan authored May 8, 2024
1 parent eb1c3eb commit da81446
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy frontend and backend
name: Deploy app
run-name: "Run ${{github.run_id}}, triggered by ${{github.actor}}"

on:
Expand Down
4 changes: 2 additions & 2 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.production.ts"
"with": "src/environments/environment.prod.ts"
}
]
},
Expand All @@ -59,7 +59,7 @@
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.development.ts"
"with": "src/environments/environment.dev.ts"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"build": "ng build --configuration production",
"watch": "ng build --watch --configuration development",
"test": "jest --verbose --coverage",
"test:coverage": "jest --coverage",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/test/enviroments/enviroments.development.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {environment} from "../../environments/environment.development";
import {environment} from "../../environments/environment.dev";

describe('Development Environment Configuration', () => {
it('should have correct baseUrl for development', () => {
Expand All @@ -10,6 +10,6 @@ describe('Development Environment Configuration', () => {
});

it('should have version set to 0.0.1 for development', () => {
expect(environment.version).toBe('0.0.1');
expect(environment.version).toBe('1.0.0');
});
});

0 comments on commit da81446

Please sign in to comment.