nuxt-gin-tools 0.1.19 → 0.1.21
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/develop.js +1 -1
- package/src/pack-config.schema.json +62 -0
package/package.json
CHANGED
package/src/develop.js
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Nuxt Gin Tools Pack Config",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"extraFiles": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"description": "额外需要打包的文件映射(key: 源文件路径,value: 打包后对应位置)",
|
|
9
|
+
"additionalProperties": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"extraFilesGlobs": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"description": "额外需要打包的文件 Glob(相对于项目根目录)",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"exclude": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"description": "排除文件/目录 Glob(相对于项目根目录)",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"zipName": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "打包输出 zip 名称(相对于默认 zip 目录)"
|
|
30
|
+
},
|
|
31
|
+
"zipPath": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "打包输出 zip 路径(相对于项目根目录或绝对路径)"
|
|
34
|
+
},
|
|
35
|
+
"serverPath": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "服务器构建输出目录(相对于项目根目录或绝对路径)"
|
|
38
|
+
},
|
|
39
|
+
"beforePack": {
|
|
40
|
+
"description": "打包前钩子(仅在代码调用传入时生效)"
|
|
41
|
+
},
|
|
42
|
+
"afterPack": {
|
|
43
|
+
"description": "打包后钩子(仅在代码调用传入时生效)"
|
|
44
|
+
},
|
|
45
|
+
"cleanDist": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"description": "是否清理 dist"
|
|
48
|
+
},
|
|
49
|
+
"writeScripts": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"description": "是否写入启动脚本和 package.json"
|
|
52
|
+
},
|
|
53
|
+
"packageJson": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"description": "写入/覆盖 package.json 内容"
|
|
56
|
+
},
|
|
57
|
+
"overwrite": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"description": "复制时是否覆盖同名文件"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|