refactor: tailchat-cli@1.5.14 remove ghproxy because server is down #192

pull/193/head
moonrailgun 1 year ago
parent 9b48a1b0e2
commit 445b538224

@ -1,6 +1,6 @@
{ {
"name": "tailchat-cli", "name": "tailchat-cli",
"version": "1.5.13", "version": "1.5.14",
"description": "A Command line interface of tailchat", "description": "A Command line interface of tailchat",
"bin": { "bin": {
"tailchat": "./bin/cli" "tailchat": "./bin/cli"

@ -4,12 +4,9 @@ import fs, { mkdirp } from 'fs-extra';
import path from 'path'; import path from 'path';
import ora from 'ora'; import ora from 'ora';
import got from 'got'; import got from 'got';
import { withGhProxy } from '../utils';
const onlineDeclarationUrl = withGhProxy(
'https://raw.githubusercontent.com/msgbyte/tailchat/master/client/web/tailchat.d.ts'
);
const onlineDeclarationUrl =
'https://raw.githubusercontent.com/msgbyte/tailchat/master/client/web/tailchat.d.ts';
export const declarationCommand: CommandModule = { export const declarationCommand: CommandModule = {
command: 'declaration <source>', command: 'declaration <source>',
describe: 'Tailchat plugin type declaration', describe: 'Tailchat plugin type declaration',

@ -35,12 +35,10 @@ Run the following command to complete the image download and start:
- ${chalk.bold('docker compose up -d')} ${chalk.gray('# Start service')} - ${chalk.bold('docker compose up -d')} ${chalk.gray('# Start service')}
================`); ================`);
const envUrl = withGhProxy( const envUrl =
'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.env' 'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.env';
); const configUrl =
const configUrl = withGhProxy( 'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.yml';
'https://raw.githubusercontent.com/msgbyte/tailchat/master/docker-compose.yml'
);
export const dockerInitCommand: CommandModule = { export const dockerInitCommand: CommandModule = {
command: 'init', command: 'init',

@ -7,6 +7,8 @@ export function isDev(): boolean {
/** /**
* Add github resource proxy to optimize chinese access speed * Add github resource proxy to optimize chinese access speed
*
* @deprecated this website is down
*/ */
export function withGhProxy(url: string): string { export function withGhProxy(url: string): string {
return `https://ghproxy.com/${url}`; return `https://ghproxy.com/${url}`;

Loading…
Cancel
Save