Switch from abandonned remote-dev-server to @redux-devtools/cli

This commit is contained in:
GHOSCHT 2021-08-27 17:51:07 +02:00
parent 1bcff410e2
commit 4c41c0aabb
4 changed files with 11159 additions and 38232 deletions

28642
Dashboard/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -47,16 +47,18 @@
"postinstall": "electron-builder install-app-deps",
"lint": "cross-env NODE_ENV=development eslint . --cache --ext .js,.jsx,.ts,.tsx",
"lint:fix": "cross-env NODE_ENV=development eslint . --cache --fix --ext .js,.jsx,.ts,.tsx",
"remotedev": "remotedev --hostname=localhost --port=8000"
"remotedev": "redux-devtools --hostname=localhost --port=8000"
},
"license": "ISC",
"dependencies": {
"@redux-devtools/cli": "^1.0.0-9",
"@types/jest": "^26.0.23",
"@types/node": "^15.12.5",
"@types/react": "^17.0.11",
"@types/react-dom": "^17.0.8",
"@types/remote-redux-devtools": "^0.5.5",
"@types/styled-components": "^5.1.11",
"chalk": "^4.1.2",
"electron-acrylic-window": "^0.5.5",
"electron-devtools-installer": "^3.2.0",
"electron-is-dev": "^2.0.0",
@ -75,8 +77,7 @@
"sqlite3": "^5.0.2",
"styled-components": "^5.3.0",
"typesafe-actions": "^5.1.0",
"typescript": "^4.3.4",
"chalk": "^4.1.2"
"typescript": "^4.3.4"
},
"devDependencies": {
"@babel/core": "^7.11.0",
@ -101,7 +102,6 @@
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^6.2.12",
"html-webpack-plugin": "^4.3.0",
"remotedev-server": "^0.3.1",
"style-loader": "^1.2.1",
"ts-loader": "^9.2.3",
"wait-on": "^6.0.0",

View file

@ -64,8 +64,8 @@ function createWindow() {
if (isDev) {
win.webContents.openDevTools({ mode: "detach" });
const remotedev = require("remotedev-server");
remotedev({ hostname: "localhost", port: 8000 }).then(() => {
const reduxDevTools = require("@redux-devtools/cli").default;
reduxDevTools({ hostname: "localhost", port: 8000 }).then(() => {
console.log(chalk.blue("RemoteDev server running at http://localhost:8000/"));
});
}

File diff suppressed because it is too large Load diff