Skip to content

Commit 3a72ef8

Browse files
author
微信公众号:储凡
authored
Merge pull request #150 from 142vip/feat/utils-add-constants
feat(@142vip/utils): 新增`OPEN_SOURCE`相关常量,优化结构
2 parents b04715b + 30d9624 commit 3a72ef8

File tree

11 files changed

+42
-16
lines changed

11 files changed

+42
-16
lines changed

packages/utils/src/constants.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* 一些地址信息
3+
*/
4+
export enum OPEN_SOURCE_ADDRESS {
5+
GITHUB_REPO_408 = 'https://github.com/142vip/408CSFamily',
6+
GITHUB_REPO_CORE_X = 'https://github.com/142vip/core-x',
7+
GITHUB_REPO_JSC = 'https://github.com/142vip/JavaScriptCollection',
8+
9+
/**
10+
* 142vip 仓库地址
11+
* - 格式:`${VipDockerAddress}/项目代号:${pkg.name}-${pkg.version}`
12+
* - 例如:registry.cn-hangzhou.aliyuncs.com/142vip/docs:JavaScriptCollection-0.0.1
13+
*/
14+
DOCKER_ALIYUNCS_VIP = 'registry.cn-hangzhou.aliyuncs.com/142vip',
15+
16+
// Github 组织名称
17+
GITHUB_ORGANIZATION = '142vip',
18+
}
19+
20+
/**
21+
* 开源作者
22+
*/
23+
export const OPEN_SOURCE_AUTHOR = {
24+
name: '微信公众号:储凡',
25+
email: 'fairy_vip@2925.com',
26+
url: 'https://github.com/142vip',
27+
homePage: 'https://142vip.cn',
28+
github: 'https://github.com/mmdapl',
29+
githubVip: 'https://github.com/142vip',
30+
gitee: 'https://gitee.com/chufan443',
31+
}
File renamed without changes.

packages/utils/src/docker.ts renamed to packages/utils/src/core/docker.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ import { vipSymbols } from './color'
55

66
const vipLog = new VipLogger()
77

8-
/**
9-
* 142vip 仓库地址
10-
* - 格式:`${VipDockerAddress}/项目代号:${pkg.name}-${pkg.version}`
11-
* - 例如:registry.cn-hangzhou.aliyuncs.com/142vip/docs:JavaScriptCollection-0.0.1
12-
*/
13-
export const VipDockerAddress: string = 'registry.cn-hangzhou.aliyuncs.com/142vip'
14-
158
interface DockerOptions {
169
logger?: boolean
1710
}
File renamed without changes.
File renamed without changes.

packages/utils/src/core/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export * from './color'
2+
export * from './logger'
3+
export * from './exec'
4+
export * from './shell'
5+
export * from './inquirer'
6+
export * from './git'
7+
export * from './docker'
8+
export * from './qs'
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/utils/src/shell.ts renamed to packages/utils/src/core/shell.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { name, version } from '../package.json'
1+
import { name, version } from '../../package.json'
22
import { execCommand } from './exec'
33
import { VipLogger } from './logger'
44
import { vipColor } from './color'

0 commit comments

Comments
 (0)