Skip to content

Commit 4ee487e

Browse files
committed
Move the logic from @redux-devtools/app into @redux-devtools/app-core
This change splits out the main logic from the Redux Devtools App into a new core package but keeps the socket connection management in @redux-devtools/app. The aim is to allow for easier reuse of the rest of the app in other envioronments with their own transport methods, such as React Native or Electron.
1 parent c8cf847 commit 4ee487e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1030
-719
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build
2+
lib
3+
umd
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
extends: '../../eslintrc.js.base.json',
3+
overrides: [
4+
{
5+
files: ['*.ts', '*.tsx'],
6+
extends: '../../eslintrc.ts.react.base.json',
7+
parserOptions: {
8+
tsconfigRootDir: __dirname,
9+
project: true,
10+
},
11+
},
12+
],
13+
};
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Mihail Diordiev
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", { "targets": "defaults", "modules": false }],
4+
"@babel/preset-react",
5+
"@babel/preset-typescript"
6+
],
7+
"plugins": ["@babel/plugin-transform-runtime"]
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", { "targets": "defaults" }],
4+
"@babel/preset-react",
5+
"@babel/preset-typescript"
6+
],
7+
"plugins": ["@babel/plugin-transform-runtime"]
8+
}
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"name": "@redux-devtools/app-core",
3+
"version": "1.0.0",
4+
"description": "Redux DevTools app core",
5+
"homepage": "https://github.com/reduxjs/redux-devtools/tree/master/packages/redux-devtools-app-core",
6+
"bugs": {
7+
"url": "https://github.com/reduxjs/redux-devtools/issues"
8+
},
9+
"license": "MIT",
10+
"author": "Mihail Diordiev <zalmoxisus@gmail.com> (https://github.com/zalmoxisus)",
11+
"files": [
12+
"build",
13+
"lib",
14+
"src",
15+
"umd"
16+
],
17+
"main": "lib/cjs/index.js",
18+
"module": "lib/esm/index.js",
19+
"types": "lib/types/index.d.ts",
20+
"sideEffects": false,
21+
"repository": {
22+
"type": "git",
23+
"url": "https://github.com/reduxjs/redux-devtools.git"
24+
},
25+
"scripts": {
26+
"build": "pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
27+
"build:cjs": "babel src --extensions \".ts,.tsx\" --out-dir lib/cjs",
28+
"build:esm": "babel src --config-file ./babel.config.esm.json --extensions \".ts,.tsx\" --out-dir lib/esm",
29+
"build:types": "tsc --emitDeclarationOnly",
30+
"clean": "rimraf lib",
31+
"lint": "eslint . --ext .ts,.tsx",
32+
"type-check": "tsc --noEmit",
33+
"prepack": "pnpm run clean && pnpm run build",
34+
"prepublish": "pnpm run type-check && pnpm run lint"
35+
},
36+
"dependencies": {
37+
"@babel/runtime": "^7.24.1",
38+
"@redux-devtools/chart-monitor": "^5.0.1",
39+
"@redux-devtools/core": "^4.0.0",
40+
"@redux-devtools/inspector-monitor": "^6.0.0",
41+
"@redux-devtools/inspector-monitor-test-tab": "^4.0.0",
42+
"@redux-devtools/inspector-monitor-trace-tab": "^4.0.0",
43+
"@redux-devtools/log-monitor": "^5.0.0",
44+
"@redux-devtools/rtk-query-monitor": "^5.0.0",
45+
"@redux-devtools/slider-monitor": "^5.0.0",
46+
"@redux-devtools/ui": "^1.3.1",
47+
"d3-state-visualizer": "^3.0.0",
48+
"javascript-stringify": "^2.1.0",
49+
"jsan": "^3.1.14",
50+
"jsondiffpatch": "^0.6.0",
51+
"react-icons": "^5.0.1",
52+
"react-is": "^18.2.0",
53+
"react-redux": "^8.1.3",
54+
"redux": "^4.2.1",
55+
"redux-persist": "^6.0.0"
56+
},
57+
"devDependencies": {
58+
"@babel/cli": "^7.24.1",
59+
"@babel/core": "^7.24.3",
60+
"@babel/eslint-parser": "^7.24.1",
61+
"@babel/plugin-transform-runtime": "^7.24.3",
62+
"@babel/preset-env": "^7.24.3",
63+
"@babel/preset-react": "^7.24.1",
64+
"@babel/preset-typescript": "^7.24.1",
65+
"@emotion/react": "^11.11.4",
66+
"@rjsf/core": "^4.2.3",
67+
"@types/jsan": "^3.1.5",
68+
"@types/json-schema": "^7.0.15",
69+
"@types/node": "^20.11.30",
70+
"@types/react": "^18.2.72",
71+
"@types/react-dom": "^18.2.22",
72+
"@types/styled-components": "^5.1.34",
73+
"@typescript-eslint/eslint-plugin": "^7.4.0",
74+
"@typescript-eslint/parser": "^7.4.0",
75+
"cross-env": "^7.0.3",
76+
"esbuild": "^0.20.2",
77+
"eslint": "^8.57.0",
78+
"eslint-config-prettier": "^9.1.0",
79+
"eslint-plugin-react": "^7.34.1",
80+
"eslint-plugin-react-hooks": "^4.6.0",
81+
"react": "^18.2.0",
82+
"react-dom": "^18.2.0",
83+
"rimraf": "^5.0.5",
84+
"styled-components": "^5.3.11",
85+
"ts-node": "^10.9.2",
86+
"typescript": "~5.3.3"
87+
},
88+
"peerDependencies": {
89+
"@emotion/react": "^11.11.4",
90+
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
91+
"@types/styled-components": "^5.1.34",
92+
"react": "^16.8.4 || ^17.0.0 || ^18.0.0",
93+
"react-dom": "^16.8.4 || ^17.0.0 || ^18.0.0",
94+
"styled-components": "^5.3.11"
95+
}
96+
}

0 commit comments

Comments
 (0)