mas-server 2.0.2 → 2.0.3
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/dist/apiDoc/assets/empty-907982e4.js +1 -0
- package/dist/apiDoc/assets/index-b56e6bc6.js +1414 -0
- package/dist/apiDoc/assets/index-bb16d834.css +6 -0
- package/dist/apiDoc/assets/jsoneditor-icons-45c98bf0.svg +749 -0
- package/dist/apiDoc/favicon.ico +0 -0
- package/dist/apiDoc/index.html +15 -0
- package/dist/index.js +1 -0
- package/package.json +3 -2
- package/src/index.ts +1 -0
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<link rel="icon" href="./favicon.ico">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>Vite App</title>
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-b56e6bc6.js"></script>
|
|
9
|
+
<link rel="stylesheet" href="./assets/index-bb16d834.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="app"></div>
|
|
13
|
+
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
package/dist/index.js
CHANGED
|
@@ -104,6 +104,7 @@ function getApp(DIRNAME, beforeMounted) {
|
|
|
104
104
|
}
|
|
105
105
|
// 数据效验
|
|
106
106
|
app.use(validRouteData_1.default);
|
|
107
|
+
// 使用接口文档
|
|
107
108
|
if (config.apidoc) {
|
|
108
109
|
app.use("/apidoc", express_1.default.static(path_1.default.join(__dirname, "/apiDoc")));
|
|
109
110
|
(0, apiDoc_1.default)(app);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mas-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "一款基于express面向中小型项目的后端框架",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "src/index.ts",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"createApis": "npx ts-node ./test/scripts/createApis.ts",
|
|
15
15
|
"init": "npx nodemon ./test/scripts/beforeCreated.ts -end",
|
|
16
16
|
"gsft": "npx nodemon ./test/scripts/getSqlFormType.ts",
|
|
17
|
-
"build":"tsc"
|
|
17
|
+
"build":"tsc",
|
|
18
|
+
"publish": "tsc && npm publish && cnpm sync cnpmcore"
|
|
18
19
|
},
|
|
19
20
|
"keywords": [],
|
|
20
21
|
"author": "tingxi8087",
|