-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Storage Versioning (#54)
* Implemented Storage Versioning * Added Unit test * Removed experimental coverage
- Loading branch information
Showing
58 changed files
with
376 additions
and
690 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,11 @@ | |
"author": "Michael L Haufe <[email protected]> (https://final-hill.com)", | ||
"license": "AGPL-3.0-only", | ||
"scripts": { | ||
"build": "webpack", | ||
"build:dev": "webpack --mode development", | ||
"build:prod": "webpack --mode production", | ||
"lint": "eslint src/ --ext .mts --fix", | ||
"serve": "webpack serve", | ||
"test": "globstar -- node --experimental-test-coverage --import tsx --test \"src/**/*.test.mts\"" | ||
"serve": "webpack serve --mode development", | ||
"test": "globstar -- node --import tsx --test \"src/**/*.test.mts\"" | ||
}, | ||
"devDependencies": { | ||
"@types/dom-navigation": "^1.0.3", | ||
|
@@ -49,4 +50,4 @@ | |
"mermaid": "^10.6.1", | ||
"style-loader": "^3.3.3" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { Behavior } from '~/domain/Behavior.mjs'; | ||
import Behavior from '~/domain/Behavior.mjs'; | ||
import { LocalStorageRepository } from './LocalStorageRepository.mjs'; | ||
import BehaviorToJsonMapper from '~/mappers/BehaviorToJsonMapper.mjs'; | ||
import pkg from '~/../package.json' with { type: 'json' }; | ||
|
||
export class BehaviorRepository extends LocalStorageRepository<Behavior> { | ||
constructor() { super('behavior', Behavior); } | ||
constructor() { super('behavior', new BehaviorToJsonMapper(pkg.version)); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { Environment } from '~/domain/Environment.mjs'; | ||
import Environment from '~/domain/Environment.mjs'; | ||
import { PEGSRepository } from './PEGSRepository.mjs'; | ||
import EnvironmentToJsonMapper from '~/mappers/EnvironmentToJsonMapper.mjs'; | ||
import pkg from '~/../package.json' with { type: 'json' }; | ||
|
||
export class EnvironmentRepository extends PEGSRepository<Environment> { | ||
constructor() { super('environments', Environment); } | ||
constructor() { super('environments', new EnvironmentToJsonMapper(pkg.version)); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { GlossaryTerm } from '~/domain/GlossaryTerm.mjs'; | ||
import GlossaryTerm from '~/domain/GlossaryTerm.mjs'; | ||
import { LocalStorageRepository } from './LocalStorageRepository.mjs'; | ||
import GlossaryTermToJsonMapper from '~/mappers/GlossaryTermToJsonMapper.mjs'; | ||
import pkg from '~/../package.json' with { type: 'json' }; | ||
|
||
export class GlossaryRepository extends LocalStorageRepository<GlossaryTerm> { | ||
constructor() { | ||
super('glossary', GlossaryTerm); | ||
super('glossary', new GlossaryTermToJsonMapper(pkg.version)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { Goals } from '~/domain/Goals.mjs'; | ||
import Goals from '~/domain/Goals.mjs'; | ||
import { PEGSRepository } from './PEGSRepository.mjs'; | ||
import GoalsToJsonMapper from '~/mappers/GoalsToJsonMapper.mjs'; | ||
import pkg from '~/../package.json' with { type: 'json' }; | ||
|
||
export class GoalsRepository extends PEGSRepository<Goals> { | ||
constructor() { super('goals', Goals); } | ||
constructor() { super('goals', new GoalsToJsonMapper(pkg.version)); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { Project } from '~/domain/Project.mjs'; | ||
import Project from '~/domain/Project.mjs'; | ||
import { PEGSRepository } from './PEGSRepository.mjs'; | ||
import ProjectToJsonMapper from '~/mappers/ProjectToJsonMapper.mjs'; | ||
import pkg from '~/../package.json' with { type: 'json' }; | ||
|
||
export class ProjectRepository extends PEGSRepository<Project> { | ||
constructor() { super('projects', Project); } | ||
constructor() { super('projects', new ProjectToJsonMapper(pkg.version)); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { Stakeholder } from '~/domain/Stakeholder.mjs'; | ||
import Stakeholder from '~/domain/Stakeholder.mjs'; | ||
import { LocalStorageRepository } from './LocalStorageRepository.mjs'; | ||
import StakeholderToJsonMapper from '~/mappers/StakeholderToJsonMapper.mjs'; | ||
import pkg from '~/../package.json' with { type: 'json' }; | ||
|
||
export class StakeholderRepository extends LocalStorageRepository<Stakeholder> { | ||
constructor() { super('stakeholder', Stakeholder); } | ||
constructor() { super('stakeholder', new StakeholderToJsonMapper(pkg.version)); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.