unbag
Version:
一个专门用来开发npm工具的包
200 lines (199 loc) • 6.34 kB
TypeScript
import { Locale } from "../common";
import { message as zh_cn_message } from "./zh-cn";
export type Message = typeof zh_cn_message;
export declare const useMessage: (params: {
locale: Locale;
}) => {
config: {
file: {
notFound: (filePath: string) => string;
};
};
transform: {
starting: () => string;
action: {
empty: () => string;
processParentNotFound: (params: {
uid: string;
}) => string;
taskProcessing: (params: {
startTime: string;
name: string;
}) => string;
taskEnd: (params: {
name: string;
interval: number;
endTime: string;
}) => string;
taskFail: (params: {
name: string;
interval: number;
endTime: string;
}) => string;
};
plugin: {
processing: (params: {
name: string;
}) => string;
};
watch: {
enabled: () => string;
fileChanged: (params: {
type: string;
filePath: string;
}) => string;
};
end: () => string;
};
commit: {
branch: {
stageFiles: {
empty: () => string;
};
};
lint: {
error: (params: {
message: string;
}) => string;
success: (params: {
message: string;
}) => string;
};
};
release: {
scope: {
undefinedCheck: () => string;
unValidScopeName: () => string;
};
dry: {
tip: () => string;
bump: {
versionFileWriteDisable: () => string;
};
changelog: {
fileWriteDisable: () => string;
};
commit: {
disable: () => string;
};
tag: {
disable: () => string;
};
push: {
disable: () => string;
};
};
branch: {
currentBranchUndefined: () => string;
};
bump: {
unValidOldVersion: () => string;
end: (params: {
version: string;
oldVersion: string;
}) => string;
unValidVersionResult: () => string;
};
changelog: {
generating: () => string;
newChangeset: (params: {
newChangeset: string;
}) => string;
};
commit: {
processing: () => string;
willCommitAll: () => string;
fileCollecting: () => string;
commitFilesEmpty: () => string;
commitFilesInfo: ({ files }: {
files: string[];
}) => string;
messageUndefined: () => string;
messageInfo: (params: {
message: string;
}) => string;
disable: () => string;
};
tag: {
processing: () => string;
undefinedGenPrefix: () => string;
prefix: (params: {
prefix: string;
}) => string;
name: (params: {
name: string;
}) => string;
message: (params: {
message: string;
}) => string;
force: () => string;
};
push: {
processing: () => string;
disable: () => string;
force: () => string;
fail: () => string;
success: () => string;
};
};
releaseCurrentBranchUndefined: () => string;
releaseCurrentBranchName: ({ currentBranchName }: {
currentBranchName: string;
}) => string;
releaseMainBranchChecking: () => string;
releaseMainBranchCheckDisable: () => string;
releaseMainBranchCheckSuccess: () => string;
releaseMainBranchCheckFail: ({ currentBranchName, mainBranchName }: {
currentBranchName: string;
mainBranchName: string;
}) => string;
releaseBranchCleanChecking: () => string;
releaseBranchCleanCheckFail: ({ branchStatusInfo }: {
branchStatusInfo: string;
}) => string;
releaseBranchCleanCheckSuccess: () => string;
releaseBranchCleanCheckDisable: () => string;
releaseBumping: () => string;
releaseBumpNotFoundVersionFile: () => string;
releaseBumpOldVersion: ({ oldVersion }: {
oldVersion: string;
}) => string;
releaseBumpReleaseAsUnValid: (currentValue?: string | undefined) => string;
releaseBumpVersionByReleaseAs: ({ releaseAs }: {
releaseAs: string;
}) => string;
releaseBumpReleaseTypeUnValid: (currentValue?: string | undefined) => string;
releaseBumpVersionByReleaseType: ({ releaseType, version }: {
releaseType: string;
version: string;
}) => string;
releaseBumpGenUnValidVersion: () => string;
releaseBumpingByCommits: () => string;
releaseBumpCommitsList: ({ commits }: {
commits: import("conventional-commits-parser").Commit[];
}) => string;
releaseBumpCommitsNoData: ({ oldVersion }: {
oldVersion: string;
}) => string;
releaseBumpCommitsGenUnValidReleaseType: () => string;
releaseBumpCommitsGenReleaseTypeSuccess: ({ releaseType }: {
releaseType: string;
}) => string;
releaseBumpVersionFileWriteDisable: () => string;
releaseBumpVersionFileWriteSuccess: ({ version }: {
version: string;
}) => string;
releaseChangelogFileWriting: () => string;
releaseChangelogFileWriteSuccess: () => string;
releaseChangelogFileWriteDisable: () => string;
releaseCommitMessageInfoUndefined: () => string;
releaseCommitSuccess: () => string;
releaseTagDisable: () => string;
releaseTagAddSuccess: ({ tagName, tagMessage }: {
tagName: string;
tagMessage: string;
}) => string;
configPropertyUndefined: (keyPath: string, configFilePath?: string | undefined) => string;
releaseUndefinedChangelogFilePathConfig: () => string;
releaseUndefinedPkgFilePathConfig: () => string;
};