From 7885cede659f3255be56f77c1eef2ada7387d6f1 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期日, 22 三月 2026 16:23:21 +0800
Subject: [PATCH] 初始化项目

---
 package.json |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/package.json b/package.json
new file mode 100644
index 0000000..9d5b367
--- /dev/null
+++ b/package.json
@@ -0,0 +1,44 @@
+{
+  "name": "sws-communication-gateway",
+  "version": "1.0.0",
+  "description": "透析机 Socket 通讯网关服务端",
+  "main": "src/index.js",
+  "scripts": {
+    "start": "node src/index.js",
+    "dev": "node src/index.js",
+    "build": "ncc build src/index.js -o dist",
+    "stress:50": "node scripts/stress-50-devices.js",
+    "pkg": "npm run build && pkg ./dist/index.js --targets node18-win-x64,node18-linux-x64 --out-path dist",
+    "build:exe": "pkg . --targets node18-win-x64 --out-path dist",
+    "build:linux": "pkg . --targets node18-linux-x64 --out-path dist",
+    "build:all": "pkg . --targets node18-win-x64,node18-linux-x64 --out-path dist"
+  },
+  "bin": "src/index.js",
+  "dependencies": {
+    "aliyun-iot-device-sdk": "^1.0.1",
+    "axios": "^1.13.6",
+    "express": "^4.19.2",
+    "mqtt": "^5.7.0",
+    "qs": "^6.15.0",
+    "winston": "^3.17.0",
+    "winston-daily-rotate-file": "^5.0.0"
+  },
+  "devDependencies": {
+    "pkg": "^5.8.1",
+    "@vercel/ncc": "^0.38.1"
+  },
+  "pkg": {
+    "assets": [
+      "schema.json",
+      "config.json"
+    ],
+    "scripts": [
+      "src/**/*.js"
+    ],
+    "targets": [
+      "node18-win-x64",
+      "node18-linux-x64"
+    ],
+    "outputPath": "dist"
+  }
+}

--
Gitblit v1.8.0