From fe5d0bb29e850e36693cae5594adf16f764aedf9 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 26 Dec 2021 17:29:58 +0100 Subject: refactor: Config persistence architecture The architecture in the main process is split into 3 main parts: * services: interfaces for services are injected into the stores through the MainEnv interface (for testability) * services/impl: electron-specific implementations of services * stores: the actions of the stores can invoke (asynchronous) services --- packages/main/package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packages/main/package.json') diff --git a/packages/main/package.json b/packages/main/package.json index 96cd52c..024fba8 100644 --- a/packages/main/package.json +++ b/packages/main/package.json @@ -14,11 +14,15 @@ "@sophie/shared": "workspace:*", "electron": "16.0.5", "json5": "^2.2.0", + "lodash": "^4.17.21", "mobx": "^6.3.10", - "mobx-state-tree": "^5.1.0" + "mobx-state-tree": "^5.1.0", + "ms": "^2.1.3" }, "devDependencies": { "@types/electron-devtools-installer": "^2.2.1", + "@types/lodash": "^4.14.178", + "@types/ms": "^0.7.31", "@types/node": "^17.0.4", "electron-devtools-installer": "^3.2.0", "rimraf": "^3.0.2", -- cgit v1.2.3-54-g00ecf