From 32359861b5c4c8ea38c3bdb61c0722830a7f06ef Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Sat, 20 Apr 2024 12:08:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cool/bootstrap/eps.ts | 2 +- src/cool/bootstrap/module.ts | 2 +- src/cool/{hook => hooks}/browser.ts | 0 src/cool/{hook => hooks}/hmr.ts | 0 src/cool/{hook => hooks}/index.ts | 0 src/cool/{hook => hooks}/mitt.ts | 0 src/cool/index.ts | 2 +- src/cool/module/index.ts | 4 ++-- src/cool/service/index.ts | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename src/cool/{hook => hooks}/browser.ts (100%) rename src/cool/{hook => hooks}/hmr.ts (100%) rename src/cool/{hook => hooks}/index.ts (100%) rename src/cool/{hook => hooks}/mitt.ts (100%) diff --git a/src/cool/bootstrap/eps.ts b/src/cool/bootstrap/eps.ts index f88cc6c..b998687 100644 --- a/src/cool/bootstrap/eps.ts +++ b/src/cool/bootstrap/eps.ts @@ -4,7 +4,7 @@ import { Module } from "../types"; import { path2Obj } from "../utils"; import { config, isDev } from "/@/config"; import { eps } from "virtual:eps"; -import { hmr } from "../hook"; +import { hmr } from "../hooks"; import { module } from "../module"; // 更新事件 diff --git a/src/cool/bootstrap/module.ts b/src/cool/bootstrap/module.ts index 3f81f23..48f18d8 100644 --- a/src/cool/bootstrap/module.ts +++ b/src/cool/bootstrap/module.ts @@ -2,7 +2,7 @@ import { App } from "vue"; import { isFunction, orderBy, chain } from "lodash-es"; import { filename } from "../utils"; import { module } from "../module"; -import { hmr } from "../hook"; +import { hmr } from "../hooks"; // 扫描文件 const files: any = import.meta.glob( diff --git a/src/cool/hook/browser.ts b/src/cool/hooks/browser.ts similarity index 100% rename from src/cool/hook/browser.ts rename to src/cool/hooks/browser.ts diff --git a/src/cool/hook/hmr.ts b/src/cool/hooks/hmr.ts similarity index 100% rename from src/cool/hook/hmr.ts rename to src/cool/hooks/hmr.ts diff --git a/src/cool/hook/index.ts b/src/cool/hooks/index.ts similarity index 100% rename from src/cool/hook/index.ts rename to src/cool/hooks/index.ts diff --git a/src/cool/hook/mitt.ts b/src/cool/hooks/mitt.ts similarity index 100% rename from src/cool/hook/mitt.ts rename to src/cool/hooks/mitt.ts diff --git a/src/cool/index.ts b/src/cool/index.ts index d06dd5c..0942ffc 100644 --- a/src/cool/index.ts +++ b/src/cool/index.ts @@ -1,6 +1,6 @@ export * from "./service"; export * from "./bootstrap"; -export * from "./hook"; +export * from "./hooks"; export * from "./module"; export * from "./router"; export * from "./types"; diff --git a/src/cool/module/index.ts b/src/cool/module/index.ts index 84b4082..d85db58 100644 --- a/src/cool/module/index.ts +++ b/src/cool/module/index.ts @@ -1,5 +1,5 @@ -import { Module } from "../types"; -import { hmr } from "../hook"; +import { type Module } from "../types"; +import { hmr } from "../hooks"; import { dirs } from "virtual:module"; // 模块列表 diff --git a/src/cool/service/index.ts b/src/cool/service/index.ts index fc1fc5e..ee01e75 100644 --- a/src/cool/service/index.ts +++ b/src/cool/service/index.ts @@ -1,4 +1,4 @@ -import { hmr } from "../hook"; +import { hmr } from "../hooks"; import { BaseService } from "./base"; // service 数据集合