nuxt-gin-tools 0.1.4 → 0.1.5
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/package.json +1 -1
- package/src/cleanup.js +4 -2
- package/src/server-config.json +25 -0
package/package.json
CHANGED
package/src/cleanup.js
CHANGED
|
@@ -73,13 +73,15 @@ function cleanUpBuild() {
|
|
|
73
73
|
// 清理原始 dist 目录
|
|
74
74
|
ifExistsRemove("dist");
|
|
75
75
|
// 清理临时文件
|
|
76
|
-
ifExistsRemove(".build
|
|
76
|
+
ifExistsRemove(".build");
|
|
77
|
+
// 清理临时文件
|
|
78
|
+
ifExistsRemove("tmp");
|
|
77
79
|
// 清理 Vue 应用构建输出目录
|
|
78
80
|
ifExistsRemove("vue/.output");
|
|
79
81
|
// 清理 OpenAPI 生成的文件
|
|
80
82
|
ifExistsRemove(".openapi-generator");
|
|
81
83
|
// 清理go.sum
|
|
82
|
-
ifExistsRemove("go.sum");
|
|
84
|
+
// ifExistsRemove("go.sum");
|
|
83
85
|
}
|
|
84
86
|
/**
|
|
85
87
|
* 清理构建目录和临时文件
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "API configuration schema",
|
|
3
|
+
"description": "API configuration schema. For more info see http://json-schema.org/ and https://frontaid.io/blog/json-schema-vscode/",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"ginPort": {
|
|
7
|
+
"title": "The port for Gin / Gin框架端口",
|
|
8
|
+
"type": "integer"
|
|
9
|
+
},
|
|
10
|
+
"nuxtPort": {
|
|
11
|
+
"title": "The port for Nuxt / Nuxt框架devServer端口",
|
|
12
|
+
"type": "integer"
|
|
13
|
+
},
|
|
14
|
+
"baseUrl": {
|
|
15
|
+
"title": "The base url for nuxt. / Nuxt的BaseUrl",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^\\/\\w.+"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"ginPort",
|
|
22
|
+
"nuxtPort",
|
|
23
|
+
"baseUrl"
|
|
24
|
+
]
|
|
25
|
+
}
|