@mypaas/hcm-cli
Version:
Vant Cli 是一个 Vue 组件库构建工具,通过 Vant Cli 可以快速搭建一套功能完备的 Vue 组件库。
30 lines (29 loc) • 841 B
TypeScript
/**
* Replace van to hcm
* @param source
* @returns {string}
*
* @example
* .van-button => .hcm-button
* [class*='hcm--'] => [class*='hcm--']
* \@keyframes hcm--circular => @keyframes hcm--circular
*/
export declare function styleReplacer(source: string): string;
/**
* Replace van to hcm
* @param source
* @returns {string}
*
* @example
* van-dialog => hcm-dialog
* vanTabs => hcmTabs
* VanDialog => HcmDialog
* $vant => $hcm
* [Vant => [Hcm
*/
export declare function scriptReplacer(source: string): string;
export declare function sfcReplacer(source: string): string;
export declare function markdownReplacer(source: string): string;
export declare function replaceStyle(filePath: string): void;
export declare function replaceScript(filePath: string): void;
export declare function replaceMd(filePath: string): void;