@kne/fastify-app-manager 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +486 -0
- package/index.js +87 -0
- package/libs/controllers/app.js +274 -0
- package/libs/controllers/gateway.js +88 -0
- package/libs/models/app.js +88 -0
- package/libs/models/appVersion.js +43 -0
- package/libs/services/app.js +470 -0
- package/libs/services/bootstrap.js +102 -0
- package/libs/utils/entryInject.js +76 -0
- package/libs/utils/env.js +79 -0
- package/libs/utils/logFiles.js +52 -0
- package/libs/utils/logStream.js +39 -0
- package/libs/utils/migrate.js +70 -0
- package/libs/utils/pathRewrite.js +55 -0
- package/libs/utils/pm2.js +96 -0
- package/libs/utils/portPool.js +29 -0
- package/libs/utils/validatePackage.js +59 -0
- package/libs/utils/version.js +77 -0
- package/libs/utils/zip.js +69 -0
- package/package.json +78 -0
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kne/fastify-app-manager",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Fastify 单机应用市场插件:版本上传、PM2 托管、路径/域名反代与日志 SSE",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"init": "husky",
|
|
8
|
+
"build:md": "npx @kne/md-doc",
|
|
9
|
+
"start:md": "npx @kne/md-doc --watch",
|
|
10
|
+
"test": "mocha test/**/*.test.js",
|
|
11
|
+
"test:coverage": "nyc --reporter=html --reporter=text mocha test/**/*.test.js",
|
|
12
|
+
"prettier": "prettier --config .prettierrc --write '{libs/**/*,index,test/**/*}.{js,jsx,ts,tsx,json,css,scss}'",
|
|
13
|
+
"lint-staged": "npx lint-staged"
|
|
14
|
+
},
|
|
15
|
+
"lint-staged": {
|
|
16
|
+
"{libs/**/*,index}.{js,jsx,ts,tsx,json,css,scss}": [
|
|
17
|
+
"prettier --config .prettierrc --write",
|
|
18
|
+
"git add"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"index.js",
|
|
23
|
+
"libs"
|
|
24
|
+
],
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/kne-union/fastify-app-manager.git"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"fastify",
|
|
31
|
+
"pm2",
|
|
32
|
+
"app-manager",
|
|
33
|
+
"marketplace",
|
|
34
|
+
"reverse-proxy",
|
|
35
|
+
"gateway",
|
|
36
|
+
"sse",
|
|
37
|
+
"deployment",
|
|
38
|
+
"kne"
|
|
39
|
+
],
|
|
40
|
+
"author": "linzp",
|
|
41
|
+
"license": "ISC",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/kne-union/fastify-app-manager/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/kne-union/fastify-app-manager#readme",
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@kne/fastify-namespace": "*",
|
|
48
|
+
"@kne/fastify-sequelize": "*",
|
|
49
|
+
"fastify-plugin": ">=5"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@fastify/env": "^5.0.2",
|
|
53
|
+
"@fastify/sensible": "^6.0.5",
|
|
54
|
+
"@kne/fastify-namespace": "^1.2.1",
|
|
55
|
+
"@kne/fastify-sequelize": "^3.0.6",
|
|
56
|
+
"chai": "^6.2.2",
|
|
57
|
+
"fastify": "^5.4.0",
|
|
58
|
+
"fastify-plugin": "^5.0.1",
|
|
59
|
+
"husky": "^9.0.11",
|
|
60
|
+
"mocha": "^12.0.0",
|
|
61
|
+
"nodemon": "^3.1.3",
|
|
62
|
+
"nyc": "^18.0.0",
|
|
63
|
+
"prettier": "^3.2.5",
|
|
64
|
+
"proxyquire": "^2.1.3",
|
|
65
|
+
"sqlite3": "^5.1.7"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@fastify/multipart": "^10.1.1",
|
|
69
|
+
"@fastify/reply-from": "^12.6.5",
|
|
70
|
+
"@kne/ensure-slash": "^0.1.0",
|
|
71
|
+
"adm-zip": "^0.6.0",
|
|
72
|
+
"fs-extra": "^11.4.0",
|
|
73
|
+
"jsdom": "^29.1.1",
|
|
74
|
+
"lodash": "^4.18.1",
|
|
75
|
+
"pm2": "^7.0.4",
|
|
76
|
+
"sequelize": "^6.37.7"
|
|
77
|
+
}
|
|
78
|
+
}
|