Skip to content

Commit

Permalink
improvement: log app version during bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Blockost committed Dec 7, 2024
1 parent c5ce31d commit b33f152
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 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",
"build": "genversion -es version.ts && ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"genversion": "genversion"
Expand Down
6 changes: 0 additions & 6 deletions src/app/tabs/groupedBySets/grouped-by-sets.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ export class GroupedBySetsTabComponent implements OnInit {
.filter((item) => item.klass === "armoire")
.forEach((item) => this.updateSet(item));

console.log("gearsBySet:", this.gearSets);

this.gearSets.sort((setA, setB) => {
const order = setB.value.progression - setA.value.progression;
if (order === 0) {
Expand Down Expand Up @@ -79,10 +77,6 @@ export class GroupedBySetsTabComponent implements OnInit {
gearVM.owned = this.isGearOwned(gear);
const set = this.gearSets.find((set) => set.key === gearVM.set);

if (gearVM.set === "Jeweler Set") {
console.log("Jeweler Set", set);
}

if (!!set) {
set.value.nbOfItemsInSet += 1;
set.value.nbItemsOwned += gearVM.owned ? 1 : 0;
Expand Down
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { bootstrapApplication } from "@angular/platform-browser";
import { appConfig } from "./app/app.config";
import { AppComponent } from "./app/app.component";
import { version } from "../version";

console.log(`== Application version: ${version} ==`);

bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));
2 changes: 1 addition & 1 deletion version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Generated by genversion.
module.exports = '0.0.1'
export const version = "0.0.1";

0 comments on commit b33f152

Please sign in to comment.