feat: nwjs支持server upload模式
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
"arduino": {
|
"arduino": {
|
||||||
"path": {
|
"path": {
|
||||||
"folder": "./arduino-cli",
|
"folder": "./arduino-cli",
|
||||||
"cli": "./arduino-cli/arduino-cli.exe",
|
"cli": "./arduino-cli/arduino-cli",
|
||||||
"libraries": [
|
"libraries": [
|
||||||
"./arduino-libs/arduino-cli/libraries"
|
"./arduino-libs/arduino-cli/libraries"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"arduino": {
|
"arduino": {
|
||||||
"path": {
|
"path": {
|
||||||
"folder": "./arduino-cli",
|
"folder": "./arduino-cli",
|
||||||
"cli": "./arduino-cli/arduino-cli.exe",
|
"cli": "./arduino-cli/arduino-cli",
|
||||||
"libraries": [
|
"libraries": [
|
||||||
"./arduino-libs/arduino-cli/libraries"
|
"./arduino-libs/arduino-cli/libraries"
|
||||||
],
|
],
|
||||||
|
|||||||
108
package.json
108
package.json
@@ -1,55 +1,55 @@
|
|||||||
{
|
{
|
||||||
"name": "mixly3-server",
|
"name": "mixly3-server",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"cert:generate": "node ./scripts/cert-generate.js",
|
"cert:generate": "node ./scripts/cert-generate.js",
|
||||||
"arduino:install": "node ./scripts/arduino-install.js",
|
"arduino:install": "node ./scripts/arduino-install.js",
|
||||||
"build:dev": "webpack --config=webpack.dev.cjs",
|
"build:dev": "webpack --config=webpack.dev.cjs",
|
||||||
"build:prod": "webpack --config=webpack.prod.cjs",
|
"build:prod": "webpack --config=webpack.prod.cjs",
|
||||||
"start-server": "nodemon --exec node dist/bundle.cjs",
|
"start-server": "nodemon --exec node dist/bundle.cjs",
|
||||||
"watch": "webpack --watch --config=webpack.dev.cjs",
|
"watch": "webpack --watch --config=webpack.dev.cjs",
|
||||||
"start": "npm-run-all --parallel watch start-server"
|
"start": "npm-run-all --parallel watch start-server"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitee.com/bnu_mixly/mixly3-server.git"
|
"url": "https://gitee.com/bnu_mixly/mixly3-server.git"
|
||||||
},
|
},
|
||||||
"author": "Mixly Team",
|
"author": "Mixly Team",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"await-to-js": "^3.0.0",
|
"await-to-js": "^3.0.0",
|
||||||
"better-sse": "^0.14.1",
|
"better-sse": "^0.14.1",
|
||||||
"commander": "^12.1.0",
|
"commander": "^12.1.0",
|
||||||
"decompress": "^4.2.1",
|
"decompress": "^4.2.1",
|
||||||
"decompress-unzip": "^4.0.1",
|
"decompress-unzip": "^4.0.1",
|
||||||
"express": "^4.21.1",
|
"express": "^4.21.1",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"fs-plus": "^3.1.1",
|
"fs-plus": "^3.1.1",
|
||||||
"iconv-lite": "^0.6.3",
|
"iconv-lite": "^0.6.3",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"mitt": "^3.0.1",
|
"mitt": "^3.0.1",
|
||||||
"mustache": "^4.2.0",
|
"mustache": "^4.2.0",
|
||||||
"node-fetch": "^3.3.2",
|
"node-fetch": "^3.3.2",
|
||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
"serialport": "^12.0.0",
|
"serialport": "^12.0.0",
|
||||||
"shelljs": "^0.9.2",
|
"shelljs": "^0.9.2",
|
||||||
"shortid": "^2.2.17",
|
"shortid": "^2.2.17",
|
||||||
"simple-git": "^3.27.0",
|
"simple-git": "^3.27.0",
|
||||||
"socket.io": "^4.8.1",
|
"socket.io": "^4.8.1",
|
||||||
"tar": "^7.4.3",
|
"tar": "^7.4.3",
|
||||||
"usb": "^2.14.0"
|
"usb": "^2.14.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^8.57.1",
|
"eslint": "^8.57.1",
|
||||||
"eslint-webpack-plugin": "^4.0.1",
|
"eslint-webpack-plugin": "^4.0.1",
|
||||||
"nodemon": "^3.1.10",
|
"nodemon": "^3.1.10",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"webpack": "^5.89.0",
|
"webpack": "^5.89.0",
|
||||||
"webpack-cli": "^5.1.4",
|
"webpack-cli": "^5.1.4",
|
||||||
"webpack-merge": "^6.0.1",
|
"webpack-merge": "^6.0.1",
|
||||||
"webpack-node-externals": "^3.0.0"
|
"webpack-node-externals": "^3.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
153
package.json.nw
153
package.json.nw
@@ -1,77 +1,80 @@
|
|||||||
{
|
{
|
||||||
"name": "mixly3-server",
|
"name": "mixly3-server",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"node-main": "./bundle.cjs",
|
"node-main": "./bundle.cjs",
|
||||||
"main": "http://127.0.0.1:7000/mixly",
|
"main": "http://127.0.0.1:7000/mixly",
|
||||||
"node-remote": "http://127.0.0.1:7000/mixly",
|
"node-remote": "http://127.0.0.1:7000/mixly",
|
||||||
"user-agent": "Mozilla/5.0 (%osinfo) AppleWebKit/%webkit_ver (KHTML, like Gecko, Chrome, Safari) NWjs/%nwver",
|
"user-agent": "Mozilla/5.0 (%osinfo) AppleWebKit/%webkit_ver (KHTML, like Gecko, Chrome, Safari) NWjs/%nwver",
|
||||||
"chromium-args": "--user-data-dir=./nw_cache/ --disk-cache-size=0 --media-cache-size=0",
|
"chromium-args": "--user-data-dir=./nw_cache/ --disk-cache-size=0 --media-cache-size=0",
|
||||||
"webkit": {
|
"webkit": {
|
||||||
"page-cache":false
|
"page-cache": false
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "nw ./ --remote-debugging-port=9222",
|
"start": "nw ./ --remote-debugging-port=9222",
|
||||||
"build:prod": "webpack --config=webpack.nw.cjs",
|
"rebuild:x64": "nw-gyp rebuild --target=0.72.0 --arch=x64 --directory=node_modules/@serialport/bindings-cpp && nw-gyp rebuild --target=0.72.0 --arch=x64 --directory=node_modules/usb",
|
||||||
"build:nw:win:x64": "npm run build:prod && build --tasks win-x64 --mirror https://npmmirror.com/mirrors/nwjs/ .",
|
"rebuild:x86": "nw-gyp rebuild --target=0.72.0 --arch=ia32 --directory=node_modules/@serialport/bindings-cpp && nw-gyp rebuild --target=0.72.0 --arch=ia32 --directory=node_modules/usb",
|
||||||
"build:nw:win:x86": "npm run build:prod && build --tasks win-x86 --mirror https://npmmirror.com/mirrors/nwjs/ .",
|
"build:prod": "webpack --config=webpack.nw.cjs",
|
||||||
"build:nw:linux:x64": "npm run build:prod && build --tasks linux-x64 --mirror https://npmmirror.com/mirrors/nwjs/ .",
|
"build:nw:win:x64": "npm run build:prod && build --tasks win-x64 --mirror https://npmmirror.com/mirrors/nwjs/ .",
|
||||||
"build:nw:mac:x64": "npm run build:prod && build --tasks mac-x64 --mirror https://npmmirror.com/mirrors/nwjs/ ."
|
"build:nw:win:x86": "npm run build:prod && build --tasks win-x86 --mirror https://npmmirror.com/mirrors/nwjs/ .",
|
||||||
},
|
"build:nw:linux:x64": "npm run build:prod && build --tasks linux-x64 --mirror https://npmmirror.com/mirrors/nwjs/ .",
|
||||||
"window": {
|
"build:nw:mac:x64": "npm run build:prod && build --tasks mac-x64 --mirror https://npmmirror.com/mirrors/nwjs/ ."
|
||||||
"icon": "mixly/common/media/mixly.png",
|
},
|
||||||
"position": "center"
|
"window": {
|
||||||
},
|
"icon": "mixly/common/media/mixly.png",
|
||||||
"keywords": [
|
"position": "center"
|
||||||
"NW.js",
|
},
|
||||||
"server"
|
"keywords": [
|
||||||
],
|
"NW.js",
|
||||||
"repository": {
|
"server"
|
||||||
"type": "git",
|
],
|
||||||
"url": "https://gitee.com/bnu_mixly/mixly3-server.git"
|
"repository": {
|
||||||
},
|
"type": "git",
|
||||||
"author": "Mixly Team",
|
"url": "https://gitee.com/bnu_mixly/mixly3-server.git"
|
||||||
"license": "MIT",
|
},
|
||||||
"dependencies": {
|
"author": "Mixly Team",
|
||||||
"await-to-js": "^3.0.0",
|
"license": "MIT",
|
||||||
"better-sse": "^0.14.1",
|
"dependencies": {
|
||||||
"commander": "^12.1.0",
|
"await-to-js": "^3.0.0",
|
||||||
"decompress": "^4.2.1",
|
"better-sse": "^0.14.1",
|
||||||
"decompress-unzip": "^4.0.1",
|
"commander": "^12.1.0",
|
||||||
"express": "^4.21.1",
|
"decompress": "^4.2.1",
|
||||||
"fs": "^0.0.1-security",
|
"decompress-unzip": "^4.0.1",
|
||||||
"fs-extra": "^11.2.0",
|
"express": "^4.21.1",
|
||||||
"fs-plus": "^3.1.1",
|
"fs": "^0.0.1-security",
|
||||||
"http": "^0.0.1-security",
|
"fs-extra": "^11.2.0",
|
||||||
"iconv-lite": "^0.6.3",
|
"fs-plus": "^3.1.1",
|
||||||
"lodash": "^4.17.21",
|
"http": "^0.0.1-security",
|
||||||
"mitt": "^3.0.1",
|
"iconv-lite": "^0.6.3",
|
||||||
"mustache": "^4.2.0",
|
"lodash": "^4.17.21",
|
||||||
"node-fetch": "^3.3.2",
|
"mitt": "^3.0.1",
|
||||||
"node-forge": "^1.3.1",
|
"mustache": "^4.2.0",
|
||||||
"path": "^0.12.7",
|
"node-fetch": "^3.3.2",
|
||||||
"serialport": "^12.0.0",
|
"node-forge": "^1.3.1",
|
||||||
"shelljs": "^0.9.2",
|
"path": "^0.12.7",
|
||||||
"shortid": "^2.2.17",
|
"serialport": "^12.0.0",
|
||||||
"simple-git": "^3.27.0",
|
"shelljs": "^0.9.2",
|
||||||
"socket.io": "^4.8.1",
|
"shortid": "^2.2.17",
|
||||||
"tar": "^7.4.3",
|
"simple-git": "^3.27.0",
|
||||||
"url": "^0.11.0",
|
"socket.io": "^4.8.1",
|
||||||
"usb": "^2.14.0"
|
"tar": "^7.4.3",
|
||||||
},
|
"url": "^0.11.0",
|
||||||
"build": {
|
"usb": "^2.14.0"
|
||||||
"nwVersion": "0.72.0"
|
},
|
||||||
},
|
"build": {
|
||||||
"devDependencies": {
|
"nwVersion": "0.72.0"
|
||||||
"eslint": "^8.57.1",
|
},
|
||||||
"eslint-webpack-plugin": "^4.0.1",
|
"devDependencies": {
|
||||||
"nodemon": "^3.1.10",
|
"eslint": "^8.57.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"eslint-webpack-plugin": "^4.0.1",
|
||||||
"nw": "0.72.0-sdk",
|
"nodemon": "^3.1.10",
|
||||||
"nwjs-builder-phoenix": "^1.15.0",
|
"npm-run-all": "^4.1.5",
|
||||||
"webpack": "^5.89.0",
|
"nw": "0.72.0-sdk",
|
||||||
"webpack-cli": "^5.1.4",
|
"nw-gyp": "^3.6.8",
|
||||||
"webpack-merge": "^6.0.1",
|
"nwjs-builder-phoenix": "^1.15.0",
|
||||||
"webpack-node-externals": "^3.0.0"
|
"webpack": "^5.89.0",
|
||||||
}
|
"webpack-cli": "^5.1.4",
|
||||||
}
|
"webpack-merge": "^6.0.1",
|
||||||
|
"webpack-node-externals": "^3.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user