重构 CLI 代码,删除不必要的命令和文件,更新路由配置,优化构建设置
This commit is contained in:
@@ -199,7 +199,7 @@ app.route({
|
||||
}).define(async (ctx) => {
|
||||
const { list, set } = ctx.args;
|
||||
const config = getConfig();
|
||||
const defaultRegistry = ['https://kevisual.cn', 'https://kevisual.silkyai.cn', 'https://kevisual.xiongxiao.me', 'http://localhost:3005'];
|
||||
const defaultRegistry = ['https://kevisual.cn', 'https://kevisual.xiongxiao.me', 'http://localhost:3005'];
|
||||
if (list) {
|
||||
showList(defaultRegistry);
|
||||
return;
|
||||
@@ -236,6 +236,21 @@ app.route({
|
||||
showList(defaultRegistry);
|
||||
}).addTo(app)
|
||||
|
||||
app.route({
|
||||
path: 'baseURL',
|
||||
key: 'me',
|
||||
description: 'xiongxiao.me registry',
|
||||
metadata: {
|
||||
middleware: ['auth'],
|
||||
args: {}
|
||||
}
|
||||
}).define(async () => {
|
||||
const config = getConfig();
|
||||
const defaultRegistry = ['https://kevisual.xiongxiao.me'];
|
||||
writeConfig({ ...config, baseURL: defaultRegistry[0] });
|
||||
showList(defaultRegistry);
|
||||
}).addTo(app)
|
||||
|
||||
app.route({
|
||||
path: 'baseURL',
|
||||
key: 'local',
|
||||
|
||||
Reference in New Issue
Block a user