mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add electron
This commit is contained in:
+91
-35
@@ -3,45 +3,58 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.21.3",
|
||||
"@babel/plugin-syntax-flow": "^7.18.6",
|
||||
"@babel/plugin-transform-react-jsx": "^7.21.0",
|
||||
"@babel/core": "7.21.3",
|
||||
"@babel/plugin-syntax-flow": "7.18.6",
|
||||
"@babel/plugin-transform-react-jsx": "7.21.0",
|
||||
"@plebbit/plebbit-react-hooks": "https://github.com/plebbit/plebbit-react-hooks.git#97b538693972e26f7c0f0f13ec6afab03b0e2e57",
|
||||
"@testing-library/dom": "^9.0.1",
|
||||
"@testing-library/jest-dom": "^5.14.1",
|
||||
"@testing-library/react": "^14.0.0",
|
||||
"@testing-library/user-event": "^14.4.3",
|
||||
"@types/node": "^18.15.5",
|
||||
"@types/react": "^18.0.30",
|
||||
"babel-plugin-styled-components": "^2.0.7",
|
||||
"dompurify": "^3.0.1",
|
||||
"eslint": "^8.36.0",
|
||||
"eslint-config-react-app": "^7.0.1",
|
||||
"ext-name": "^5.0.0",
|
||||
"lodash": "^4.17.21",
|
||||
"postcss": "^8.4.21",
|
||||
"react": "^18.2.0",
|
||||
"react-content-loader": "^6.2.1",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-draggable": "^4.4.5",
|
||||
"react-helmet-async": "^1.3.0",
|
||||
"react-infinite-scroller": "^1.2.6",
|
||||
"react-is": "^18.2.0",
|
||||
"react-markdown": "^8.0.6",
|
||||
"react-modal": "^3.16.1",
|
||||
"react-router-dom": "^6.9.0",
|
||||
"@testing-library/dom": "9.0.1",
|
||||
"@testing-library/jest-dom": "5.14.1",
|
||||
"@testing-library/react": "14.0.0",
|
||||
"@testing-library/user-event": "14.4.3",
|
||||
"@types/node": "18.15.5",
|
||||
"@types/react": "18.0.30",
|
||||
"babel-plugin-styled-components": "2.0.7",
|
||||
"dompurify": "3.0.1",
|
||||
"eslint": "8.36.0",
|
||||
"eslint-config-react-app": "7.0.1",
|
||||
"ext-name": "5.0.0",
|
||||
"lodash": "4.17.21",
|
||||
"postcss": "8.4.21",
|
||||
"electron-context-menu": "3.3.0",
|
||||
"electron-is-dev": "2.0.0",
|
||||
"react": "18.2.0",
|
||||
"react-content-loader": "6.2.1",
|
||||
"react-dom": "18.2.0",
|
||||
"react-draggable": "4.4.5",
|
||||
"react-helmet-async": "1.3.0",
|
||||
"react-infinite-scroller": "1.2.6",
|
||||
"react-is": "18.2.0",
|
||||
"react-markdown": "8.0.6",
|
||||
"mock-require": "3.0.3",
|
||||
"react-modal": "3.16.1",
|
||||
"react-router-dom": "6.9.0",
|
||||
"react-scripts": "5.0.1",
|
||||
"react-toastify": "^9.1.1",
|
||||
"react-tooltip": "^5.10.0",
|
||||
"remark-breaks": "^3.0.2",
|
||||
"styled-components": "^5.3.9",
|
||||
"web-vitals": "^3.3.0",
|
||||
"zustand": "^4.3.6"
|
||||
"react-toastify": "9.1.1",
|
||||
"react-tooltip": "5.10.0",
|
||||
"remark-breaks": "3.0.2",
|
||||
"styled-components": "5.3.9",
|
||||
"web-vitals": "3.3.0",
|
||||
"zustand": "4.3.6"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "craco start",
|
||||
"build": "craco build",
|
||||
"test": "craco test"
|
||||
"test": "craco test",
|
||||
"electron": "yarn electron:before && electron .",
|
||||
"electron:no-delete-data": "yarn electron:before:download-ipfs && electron .",
|
||||
"electron:start": "concurrently \"cross-env BROWSER=none yarn start\" \"wait-on http://localhost:3000 && yarn electron\"",
|
||||
"electron:start:no-delete-data": "concurrently \"cross-env BROWSER=none yarn start\" \"wait-on http://localhost:3000 && yarn electron:no-delete-data\"",
|
||||
"electron:build:linux": "electron-builder build --publish never -l",
|
||||
"electron:build:windows": "electron-builder build --publish never -w",
|
||||
"electron:build:mac": "electron-builder build --publish never -m",
|
||||
"electron:before": "yarn electron:before:download-ipfs && yarn electron:before:delete-data",
|
||||
"electron:before:download-ipfs": "node electron/downloadIpfs",
|
||||
"electron:before:delete-data": "rimraf .plebbit"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
@@ -61,9 +74,52 @@
|
||||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"main": "electron/main.js",
|
||||
"build": {
|
||||
"appId": "plebchan.desktop",
|
||||
"productName": "plebchan",
|
||||
"beforePack": "electron/beforePack.js",
|
||||
"afterAllArtifactBuild": "electron/afterAllArtifactBuild.js",
|
||||
"extraResources": [
|
||||
{
|
||||
"from": "bin/${os}",
|
||||
"to": "bin",
|
||||
"filter": [
|
||||
"**/*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"build/**/*",
|
||||
"electron/**/*",
|
||||
"package.json"
|
||||
],
|
||||
"extends": null,
|
||||
"mac": {
|
||||
"target": "dmg",
|
||||
"category": "public.app-category.social-networking",
|
||||
"type": "distribution"
|
||||
},
|
||||
"win": {
|
||||
"target": [
|
||||
"portable",
|
||||
"nsis"
|
||||
]
|
||||
},
|
||||
"linux": {
|
||||
"target": "AppImage",
|
||||
"category": "Network"
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@craco/craco": "^7.1.0",
|
||||
"typescript": "^5.0.2"
|
||||
"@craco/craco": "7.1.0",
|
||||
"concurrently": "8.0.1",
|
||||
"cross-env": "7.0.3",
|
||||
"decompress": "4.2.1",
|
||||
"electron": "19.0.1",
|
||||
"electron-builder": "23.0.9",
|
||||
"typescript": "5.0.2",
|
||||
"wait-on": "7.0.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"styled-components": "^5"
|
||||
|
||||
Reference in New Issue
Block a user