Feat: Vite + React (#991)
* remove test_web * integrate reactjs-vite * update lint-staged * simple cors proxy server which handles cookies and redirections * overrider global fetch with proxy call * simple examples for set cookies and fetch request * app bar * add redux * loadPlugins. error: cant load urlencode module * add ts-node for transforming * plugin search & select * plugin slice * accordion components * path item & popular novel * optional for filters * search novel * parse novel * parseChapter * update cookies * default filters * fix: import path * bundler module resolution * new json_plugins * fix: generate multisrc (missing filters) * fix: host scripts * fix: plugin code path * remove typechecking action
This commit is contained in:
+31
-29
@@ -1,15 +1,17 @@
|
||||
{
|
||||
"name": "lnreader-plugins",
|
||||
"version": "2.2.0",
|
||||
"version": "3.0.0",
|
||||
"description": "Plugins repo for LNReader",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "ts-node ./tswatch.ts",
|
||||
"start": "concurrently \"npm run dev\" \"npm run proxy\"",
|
||||
"dev": "vite",
|
||||
"proxy": "node proxy_server.js",
|
||||
"test": "exit 0",
|
||||
"json": "tsc && node ./.js/scripts/json_plugins.js",
|
||||
"generate": "ts-node ./scripts/multisrc/generate.ts",
|
||||
"json": "node ./scripts/json_plugins.js",
|
||||
"generate": "node ./scripts/multisrc/generate.js",
|
||||
"clearMultisrc": "find . -type f -wholename \"*plugins*\\[*\\]*.[t,j]s\" -delete",
|
||||
"less": "npx less ./test_web/static/css/index.less ./test_web/static/css/index.css",
|
||||
"host-linux": "chmod +x ./host.sh && ./host.sh",
|
||||
"host-windows": "powershell ./host.ps1",
|
||||
"prettier": "prettier --write \"./**/*.{js,ts}\"",
|
||||
@@ -19,42 +21,42 @@
|
||||
"author": "LNReader",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"body-parser": "^1.20.2",
|
||||
"browserify": "^17.0.0",
|
||||
"@emotion/react": "^11.11.4",
|
||||
"@emotion/styled": "^11.11.5",
|
||||
"@fontsource/roboto": "^5.0.13",
|
||||
"@mui/icons-material": "^5.15.20",
|
||||
"@mui/material": "^5.15.20",
|
||||
"@reduxjs/toolkit": "^2.2.5",
|
||||
"cheerio": "^1.0.0-rc.12",
|
||||
"cli-color": "^2.0.3",
|
||||
"dayjs": "^1.11.10",
|
||||
"express": "^4.18.2",
|
||||
"htmlparser2": "^9.1.0",
|
||||
"image-size": "^1.1.1",
|
||||
"less": "^4.2.0",
|
||||
"module-alias": "^2.2.3",
|
||||
"protobufjs": "^7.2.6",
|
||||
"qs": "^6.11.2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-redux": "^9.1.2",
|
||||
"react-virtuoso": "^4.7.11",
|
||||
"react-window": "^1.8.10",
|
||||
"sanitize-html": "^2.12.1",
|
||||
"terser": "^5.31.1",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsc-alias": "^1.8.8",
|
||||
"typescript": "^5.3.3",
|
||||
"urlencode": "^2.0.0"
|
||||
},
|
||||
"_moduleAliases": {
|
||||
"@libs": "./.js/libs",
|
||||
"@icons": "./.js/icons",
|
||||
"@plugins": "./.js/plugins",
|
||||
"@scripts": "./.js/scripts",
|
||||
"@typings": "./.js/types"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/jquery": "^3.5.29",
|
||||
"@types/node": "^20.11.19",
|
||||
"@types/qs": "^6.9.15",
|
||||
"@types/react": "^18.2.66",
|
||||
"@types/react-dom": "^18.2.22",
|
||||
"@types/react-window": "^1.8.8",
|
||||
"@vitejs/plugin-react-swc": "^3.5.0",
|
||||
"concurrently": "^8.2.2",
|
||||
"http-proxy": "^1.18.1",
|
||||
"husky": "^9.0.11",
|
||||
"image-size": "^1.1.1",
|
||||
"lint-staged": "^15.2.2",
|
||||
"prettier": "3.2.5",
|
||||
"tsc-watch": "^6.0.4"
|
||||
"terser": "^5.31.1",
|
||||
"ts-node": "^10.9.2",
|
||||
"vite": "^5.2.0"
|
||||
},
|
||||
"lint-staged": {
|
||||
"**/*.{js,ts}": "prettier --write"
|
||||
"**/*.{js,ts,jsx,tsx}": "prettier --write"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user