-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharguments-builder.config.ts
51 lines (50 loc) · 1.27 KB
/
arguments-builder.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { defineConfig } from "@iringo/arguments-builder";
export default defineConfig({
output: {
surge: {
path: "./dist/DualSubs.AddOn.MicrosoftTranslate.sgmodule",
transformEgern: {
enable: true,
path: "./dist/DualSubs.AddOn.MicrosoftTranslate.yaml",
},
},
loon: {
path: "./dist/DualSubs.AddOn.MicrosoftTranslate.plugin",
},
customItems: [
{
path: "./dist/DualSubs.AddOn.MicrosoftTranslate.stoverride",
template: "./template/stash.handlebars",
},
{
path: "./dist/DualSubs.AddOn.MicrosoftTranslate.srmodule",
template: "./template/shadowrocket.handlebars",
},
],
dts: {
isExported: true,
path: "./src/types.d.ts",
},
boxjsSettings: {
path: "./template/boxjs.settings.json",
scope: "@DualSubs.AddOn.Settings",
},
},
args: [
{
key: "LogLevel",
name: "[调试] 日志等级",
type: "string",
defaultValue: "WARN",
description: "选择脚本日志的输出等级,低于所选等级的日志将全部输出。",
options: [
{ key: "OFF", label: "关闭" },
{ key: "ERROR", label: "❌ 错误" },
{ key: "WARN", label: "⚠️ 警告" },
{ key: "INFO", label: "ℹ️ 信息" },
{ key: "DEBUG", label: "🅱️ 调试" },
{ key: "ALL", label: "全部" },
],
},
],
});