From b697fc6708dc3bb592f8081ee48f4731ac2445da Mon Sep 17 00:00:00 2001 From: Naily Date: Wed, 30 Oct 2024 19:31:26 +0800 Subject: [PATCH] feat: update folder --- .vscode/settings.json | 5 +- .../backend-node-adapter/package.json | 0 .../backend-node-adapter/src/http-adapter.ts | 0 .../backend-node-adapter/src/index.ts | 0 .../src/node-bootstrap.ts | 0 .../src/plugin-protocol.ts | 0 .../backend-node-adapter/src/utils.ts | 0 .../backend-node-adapter/tsconfig.json | 0 .../backend-node-adapter/tsup.config.ts | 0 .../core}/backend/package.json | 0 .../core}/backend/src/backend-adapter.ts | 0 .../core}/backend/src/backend-bootstrap.ts | 0 .../core}/backend/src/backend-container.ts | 0 .../backend/src/class-method-executor.ts | 0 .../core}/backend/src/constant.ts | 0 .../core}/backend/src/decorators/index.ts | 0 .../decorators/rest-controller.decorator.ts | 0 .../src/decorators/restful.decorator.ts | 0 .../core}/backend/src/handler-context.ts | 0 .../core}/backend/src/index.ts | 0 .../core}/backend/src/node-adapter.ts | 0 .../core}/backend/src/plugin-protocol.ts | 0 .../core}/backend/src/types.ts | 0 .../core}/backend/test/full-backend.ts | 0 .../core}/backend/test/hander-context.spec.ts | 0 .../core}/backend/tsconfig.json | 0 .../core}/backend/tsup.config.ts | 0 .../core}/backend/vitest.config.ts | 0 .../core}/cache/package.json | 0 .../core}/cache/src/cache-provider.ts | 0 .../core}/cache/src/index.ts | 0 .../core}/cache/src/plugin-protocol.ts | 0 .../core}/cache/src/plugin.ts | 0 .../core}/cache/src/types.ts | 0 .../core}/cache/tsconfig.json | 0 .../core}/cache/tsup.config.ts | 0 .../core}/config/package.json | 0 .../core}/config/src/config-provider.ts | 0 .../core}/config/src/decorators/index.ts | 0 .../config/src/decorators/value.decorator.ts | 0 .../core}/config/src/helper.ts | 0 .../core}/config/src/index.ts | 0 .../core}/config/src/plugin-protocol.ts | 0 .../core}/config/src/plugin.ts | 0 .../core}/config/src/types.ts | 0 .../core}/config/tsconfig.json | 0 .../core}/config/tsup.config.ts | 0 .../core}/ioc/package.json | 0 .../core}/ioc/src/abstract-bootstrap.ts | 0 .../core}/ioc/src/apply-decorator.ts | 0 .../core}/ioc/src/constants/constant.ts | 0 .../core}/ioc/src/constants/index.ts | 0 .../core}/ioc/src/container-protocol.ts | 0 .../core}/ioc/src/container.ts | 0 .../ioc/src/decorators/catch.decorator.ts | 0 .../core}/ioc/src/decorators/index.ts | 0 .../ioc/src/decorators/inject.decorator.ts | 0 .../src/decorators/injectable.decorator.ts | 0 .../ioc/src/decorators/optional.decorator.ts | 0 .../core}/ioc/src/errors/index.ts | 0 .../errors/unknown-constructor-param-type.ts | 0 .../core}/ioc/src/index.ts | 0 .../core}/ioc/src/inject-wrapper.ts | 0 .../core}/ioc/src/injectable-wrapper.ts | 0 .../core}/ioc/src/plugin-protocol.ts | 0 .../core}/ioc/src/types.ts | 0 .../core}/ioc/tsconfig.json | 0 .../core}/ioc/tsup.config.ts | 0 .../core}/jexl/package.json | 0 .../core}/jexl/src/index.ts | 0 .../core}/jexl/tsconfig.json | 0 .../core}/jexl/tsup.config.ts | 0 packages/core/logger/package.json | 33 ++++ packages/core/logger/src/index.ts | 1 + .../core/logger}/tsconfig.json | 0 .../core/logger}/tsup.config.ts | 0 .../core}/rpc-protocol/package.json | 0 .../core}/rpc-protocol/src/index.ts | 0 packages/core/rpc-protocol/tsconfig.json | 8 + packages/core/rpc-protocol/tsup.config.ts | 11 ++ .../core}/rpc/package.json | 0 .../core}/rpc/src/axios.ts | 0 .../core}/rpc/src/constant.ts | 0 .../core}/rpc/src/decorators/index.ts | 0 .../decorators/rpc-controller.decorator.ts | 0 .../core}/rpc/src/index.ts | 0 .../core}/rpc/src/rpc-bootstrap.ts | 0 .../core}/rpc/src/rpc-controller-container.ts | 0 .../core}/rpc/src/rpc-handler.ts | 0 .../core}/rpc/src/rpc-plugin-protocol.ts | 0 .../core}/rpc/src/schema.ts | 0 .../core}/rpc/src/types.ts | 0 .../core}/rpc/test/rpc-backend.ts | 0 .../core}/rpc/tsconfig.json | 0 .../core}/rpc/tsup.config.ts | 0 .../core}/unplugin-rpc/LICENSE | 0 .../core}/unplugin-rpc/README.md | 0 .../core}/unplugin-rpc/package.json | 0 .../unplugin-rpc/playground/backend/main.ts | 0 .../playground/backend/welcome-server.ts | 0 .../playground/common/welcome-protocol.ts | 0 .../unplugin-rpc/playground/frontend/main.ts | 0 .../core}/unplugin-rpc/playground/index.html | 0 .../unplugin-rpc/playground/package.json | 0 .../unplugin-rpc/playground/tsconfig.json | 0 .../unplugin-rpc/playground/vite.config.ts | 0 .../core}/unplugin-rpc/scripts/postbuild.ts | 0 .../core}/unplugin-rpc/src/astro.ts | 0 .../core}/unplugin-rpc/src/core/hmr-logger.ts | 0 .../core}/unplugin-rpc/src/core/swc.ts | 0 .../src/core/vite-server-adapter.ts | 0 .../core}/unplugin-rpc/src/esbuild.ts | 0 .../core}/unplugin-rpc/src/farm.ts | 0 .../core}/unplugin-rpc/src/index.ts | 0 .../core}/unplugin-rpc/src/nuxt.ts | 0 .../core}/unplugin-rpc/src/rollup.ts | 0 .../core}/unplugin-rpc/src/rspack.ts | 0 .../core}/unplugin-rpc/src/types.ts | 0 .../core}/unplugin-rpc/src/vite.ts | 0 .../core}/unplugin-rpc/src/webpack.ts | 0 .../core}/unplugin-rpc/tsconfig.json | 0 .../core}/unplugin-rpc/tsup.config.ts | 0 pnpm-lock.yaml | 173 +++++++++++++++--- pnpm-workspace.yaml | 7 +- 124 files changed, 205 insertions(+), 33 deletions(-) rename {backend-adapter-packages => packages/backend-adapter}/backend-node-adapter/package.json (100%) rename {backend-adapter-packages => packages/backend-adapter}/backend-node-adapter/src/http-adapter.ts (100%) rename {backend-adapter-packages => packages/backend-adapter}/backend-node-adapter/src/index.ts (100%) rename {backend-adapter-packages => packages/backend-adapter}/backend-node-adapter/src/node-bootstrap.ts (100%) rename {backend-adapter-packages => packages/backend-adapter}/backend-node-adapter/src/plugin-protocol.ts (100%) rename {backend-adapter-packages => packages/backend-adapter}/backend-node-adapter/src/utils.ts (100%) rename {backend-adapter-packages => packages/backend-adapter}/backend-node-adapter/tsconfig.json (100%) rename {backend-adapter-packages => packages/backend-adapter}/backend-node-adapter/tsup.config.ts (100%) rename {core-packages => packages/core}/backend/package.json (100%) rename {core-packages => packages/core}/backend/src/backend-adapter.ts (100%) rename {core-packages => packages/core}/backend/src/backend-bootstrap.ts (100%) rename {core-packages => packages/core}/backend/src/backend-container.ts (100%) rename {core-packages => packages/core}/backend/src/class-method-executor.ts (100%) rename {core-packages => packages/core}/backend/src/constant.ts (100%) rename {core-packages => packages/core}/backend/src/decorators/index.ts (100%) rename {core-packages => packages/core}/backend/src/decorators/rest-controller.decorator.ts (100%) rename {core-packages => packages/core}/backend/src/decorators/restful.decorator.ts (100%) rename {core-packages => packages/core}/backend/src/handler-context.ts (100%) rename {core-packages => packages/core}/backend/src/index.ts (100%) rename {core-packages => packages/core}/backend/src/node-adapter.ts (100%) rename {core-packages => packages/core}/backend/src/plugin-protocol.ts (100%) rename {core-packages => packages/core}/backend/src/types.ts (100%) rename {core-packages => packages/core}/backend/test/full-backend.ts (100%) rename {core-packages => packages/core}/backend/test/hander-context.spec.ts (100%) rename {core-packages => packages/core}/backend/tsconfig.json (100%) rename {core-packages => packages/core}/backend/tsup.config.ts (100%) rename {core-packages => packages/core}/backend/vitest.config.ts (100%) rename {core-packages => packages/core}/cache/package.json (100%) rename {core-packages => packages/core}/cache/src/cache-provider.ts (100%) rename {core-packages => packages/core}/cache/src/index.ts (100%) rename {core-packages => packages/core}/cache/src/plugin-protocol.ts (100%) rename {core-packages => packages/core}/cache/src/plugin.ts (100%) rename {core-packages => packages/core}/cache/src/types.ts (100%) rename {core-packages => packages/core}/cache/tsconfig.json (100%) rename {core-packages => packages/core}/cache/tsup.config.ts (100%) rename {core-packages => packages/core}/config/package.json (100%) rename {core-packages => packages/core}/config/src/config-provider.ts (100%) rename {core-packages => packages/core}/config/src/decorators/index.ts (100%) rename {core-packages => packages/core}/config/src/decorators/value.decorator.ts (100%) rename {core-packages => packages/core}/config/src/helper.ts (100%) rename {core-packages => packages/core}/config/src/index.ts (100%) rename {core-packages => packages/core}/config/src/plugin-protocol.ts (100%) rename {core-packages => packages/core}/config/src/plugin.ts (100%) rename {core-packages => packages/core}/config/src/types.ts (100%) rename {core-packages => packages/core}/config/tsconfig.json (100%) rename {core-packages => packages/core}/config/tsup.config.ts (100%) rename {core-packages => packages/core}/ioc/package.json (100%) rename {core-packages => packages/core}/ioc/src/abstract-bootstrap.ts (100%) rename {core-packages => packages/core}/ioc/src/apply-decorator.ts (100%) rename {core-packages => packages/core}/ioc/src/constants/constant.ts (100%) rename {core-packages => packages/core}/ioc/src/constants/index.ts (100%) rename {core-packages => packages/core}/ioc/src/container-protocol.ts (100%) rename {core-packages => packages/core}/ioc/src/container.ts (100%) rename {core-packages => packages/core}/ioc/src/decorators/catch.decorator.ts (100%) rename {core-packages => packages/core}/ioc/src/decorators/index.ts (100%) rename {core-packages => packages/core}/ioc/src/decorators/inject.decorator.ts (100%) rename {core-packages => packages/core}/ioc/src/decorators/injectable.decorator.ts (100%) rename {core-packages => packages/core}/ioc/src/decorators/optional.decorator.ts (100%) rename {core-packages => packages/core}/ioc/src/errors/index.ts (100%) rename {core-packages => packages/core}/ioc/src/errors/unknown-constructor-param-type.ts (100%) rename {core-packages => packages/core}/ioc/src/index.ts (100%) rename {core-packages => packages/core}/ioc/src/inject-wrapper.ts (100%) rename {core-packages => packages/core}/ioc/src/injectable-wrapper.ts (100%) rename {core-packages => packages/core}/ioc/src/plugin-protocol.ts (100%) rename {core-packages => packages/core}/ioc/src/types.ts (100%) rename {core-packages => packages/core}/ioc/tsconfig.json (100%) rename {core-packages => packages/core}/ioc/tsup.config.ts (100%) rename {core-packages => packages/core}/jexl/package.json (100%) rename {core-packages => packages/core}/jexl/src/index.ts (100%) rename {core-packages => packages/core}/jexl/tsconfig.json (100%) rename {core-packages => packages/core}/jexl/tsup.config.ts (100%) create mode 100644 packages/core/logger/package.json create mode 100644 packages/core/logger/src/index.ts rename {core-packages/rpc-protocol => packages/core/logger}/tsconfig.json (100%) rename {core-packages/rpc-protocol => packages/core/logger}/tsup.config.ts (100%) rename {core-packages => packages/core}/rpc-protocol/package.json (100%) rename {core-packages => packages/core}/rpc-protocol/src/index.ts (100%) create mode 100644 packages/core/rpc-protocol/tsconfig.json create mode 100644 packages/core/rpc-protocol/tsup.config.ts rename {core-packages => packages/core}/rpc/package.json (100%) rename {core-packages => packages/core}/rpc/src/axios.ts (100%) rename {core-packages => packages/core}/rpc/src/constant.ts (100%) rename {core-packages => packages/core}/rpc/src/decorators/index.ts (100%) rename {core-packages => packages/core}/rpc/src/decorators/rpc-controller.decorator.ts (100%) rename {core-packages => packages/core}/rpc/src/index.ts (100%) rename {core-packages => packages/core}/rpc/src/rpc-bootstrap.ts (100%) rename {core-packages => packages/core}/rpc/src/rpc-controller-container.ts (100%) rename {core-packages => packages/core}/rpc/src/rpc-handler.ts (100%) rename {core-packages => packages/core}/rpc/src/rpc-plugin-protocol.ts (100%) rename {core-packages => packages/core}/rpc/src/schema.ts (100%) rename {core-packages => packages/core}/rpc/src/types.ts (100%) rename {core-packages => packages/core}/rpc/test/rpc-backend.ts (100%) rename {core-packages => packages/core}/rpc/tsconfig.json (100%) rename {core-packages => packages/core}/rpc/tsup.config.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/LICENSE (100%) rename {core-packages => packages/core}/unplugin-rpc/README.md (100%) rename {core-packages => packages/core}/unplugin-rpc/package.json (100%) rename {core-packages => packages/core}/unplugin-rpc/playground/backend/main.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/playground/backend/welcome-server.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/playground/common/welcome-protocol.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/playground/frontend/main.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/playground/index.html (100%) rename {core-packages => packages/core}/unplugin-rpc/playground/package.json (100%) rename {core-packages => packages/core}/unplugin-rpc/playground/tsconfig.json (100%) rename {core-packages => packages/core}/unplugin-rpc/playground/vite.config.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/scripts/postbuild.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/astro.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/core/hmr-logger.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/core/swc.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/core/vite-server-adapter.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/esbuild.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/farm.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/index.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/nuxt.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/rollup.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/rspack.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/types.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/vite.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/src/webpack.ts (100%) rename {core-packages => packages/core}/unplugin-rpc/tsconfig.json (100%) rename {core-packages => packages/core}/unplugin-rpc/tsup.config.ts (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json index 17435e7..050d5ee 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -77,9 +77,10 @@ "rpc-protocol": "interface", "jexl": "src", "backend-node-adapter": "node", - "backend-adapter-packages": "packages", + "backend-adapter": "packages", "backend-bun-adapter": "node", - "core-packages": "packages" + "logger": "log", + "logger-adapter": "packages" }, "vite.autoStart": false } diff --git a/backend-adapter-packages/backend-node-adapter/package.json b/packages/backend-adapter/backend-node-adapter/package.json similarity index 100% rename from backend-adapter-packages/backend-node-adapter/package.json rename to packages/backend-adapter/backend-node-adapter/package.json diff --git a/backend-adapter-packages/backend-node-adapter/src/http-adapter.ts b/packages/backend-adapter/backend-node-adapter/src/http-adapter.ts similarity index 100% rename from backend-adapter-packages/backend-node-adapter/src/http-adapter.ts rename to packages/backend-adapter/backend-node-adapter/src/http-adapter.ts diff --git a/backend-adapter-packages/backend-node-adapter/src/index.ts b/packages/backend-adapter/backend-node-adapter/src/index.ts similarity index 100% rename from backend-adapter-packages/backend-node-adapter/src/index.ts rename to packages/backend-adapter/backend-node-adapter/src/index.ts diff --git a/backend-adapter-packages/backend-node-adapter/src/node-bootstrap.ts b/packages/backend-adapter/backend-node-adapter/src/node-bootstrap.ts similarity index 100% rename from backend-adapter-packages/backend-node-adapter/src/node-bootstrap.ts rename to packages/backend-adapter/backend-node-adapter/src/node-bootstrap.ts diff --git a/backend-adapter-packages/backend-node-adapter/src/plugin-protocol.ts b/packages/backend-adapter/backend-node-adapter/src/plugin-protocol.ts similarity index 100% rename from backend-adapter-packages/backend-node-adapter/src/plugin-protocol.ts rename to packages/backend-adapter/backend-node-adapter/src/plugin-protocol.ts diff --git a/backend-adapter-packages/backend-node-adapter/src/utils.ts b/packages/backend-adapter/backend-node-adapter/src/utils.ts similarity index 100% rename from backend-adapter-packages/backend-node-adapter/src/utils.ts rename to packages/backend-adapter/backend-node-adapter/src/utils.ts diff --git a/backend-adapter-packages/backend-node-adapter/tsconfig.json b/packages/backend-adapter/backend-node-adapter/tsconfig.json similarity index 100% rename from backend-adapter-packages/backend-node-adapter/tsconfig.json rename to packages/backend-adapter/backend-node-adapter/tsconfig.json diff --git a/backend-adapter-packages/backend-node-adapter/tsup.config.ts b/packages/backend-adapter/backend-node-adapter/tsup.config.ts similarity index 100% rename from backend-adapter-packages/backend-node-adapter/tsup.config.ts rename to packages/backend-adapter/backend-node-adapter/tsup.config.ts diff --git a/core-packages/backend/package.json b/packages/core/backend/package.json similarity index 100% rename from core-packages/backend/package.json rename to packages/core/backend/package.json diff --git a/core-packages/backend/src/backend-adapter.ts b/packages/core/backend/src/backend-adapter.ts similarity index 100% rename from core-packages/backend/src/backend-adapter.ts rename to packages/core/backend/src/backend-adapter.ts diff --git a/core-packages/backend/src/backend-bootstrap.ts b/packages/core/backend/src/backend-bootstrap.ts similarity index 100% rename from core-packages/backend/src/backend-bootstrap.ts rename to packages/core/backend/src/backend-bootstrap.ts diff --git a/core-packages/backend/src/backend-container.ts b/packages/core/backend/src/backend-container.ts similarity index 100% rename from core-packages/backend/src/backend-container.ts rename to packages/core/backend/src/backend-container.ts diff --git a/core-packages/backend/src/class-method-executor.ts b/packages/core/backend/src/class-method-executor.ts similarity index 100% rename from core-packages/backend/src/class-method-executor.ts rename to packages/core/backend/src/class-method-executor.ts diff --git a/core-packages/backend/src/constant.ts b/packages/core/backend/src/constant.ts similarity index 100% rename from core-packages/backend/src/constant.ts rename to packages/core/backend/src/constant.ts diff --git a/core-packages/backend/src/decorators/index.ts b/packages/core/backend/src/decorators/index.ts similarity index 100% rename from core-packages/backend/src/decorators/index.ts rename to packages/core/backend/src/decorators/index.ts diff --git a/core-packages/backend/src/decorators/rest-controller.decorator.ts b/packages/core/backend/src/decorators/rest-controller.decorator.ts similarity index 100% rename from core-packages/backend/src/decorators/rest-controller.decorator.ts rename to packages/core/backend/src/decorators/rest-controller.decorator.ts diff --git a/core-packages/backend/src/decorators/restful.decorator.ts b/packages/core/backend/src/decorators/restful.decorator.ts similarity index 100% rename from core-packages/backend/src/decorators/restful.decorator.ts rename to packages/core/backend/src/decorators/restful.decorator.ts diff --git a/core-packages/backend/src/handler-context.ts b/packages/core/backend/src/handler-context.ts similarity index 100% rename from core-packages/backend/src/handler-context.ts rename to packages/core/backend/src/handler-context.ts diff --git a/core-packages/backend/src/index.ts b/packages/core/backend/src/index.ts similarity index 100% rename from core-packages/backend/src/index.ts rename to packages/core/backend/src/index.ts diff --git a/core-packages/backend/src/node-adapter.ts b/packages/core/backend/src/node-adapter.ts similarity index 100% rename from core-packages/backend/src/node-adapter.ts rename to packages/core/backend/src/node-adapter.ts diff --git a/core-packages/backend/src/plugin-protocol.ts b/packages/core/backend/src/plugin-protocol.ts similarity index 100% rename from core-packages/backend/src/plugin-protocol.ts rename to packages/core/backend/src/plugin-protocol.ts diff --git a/core-packages/backend/src/types.ts b/packages/core/backend/src/types.ts similarity index 100% rename from core-packages/backend/src/types.ts rename to packages/core/backend/src/types.ts diff --git a/core-packages/backend/test/full-backend.ts b/packages/core/backend/test/full-backend.ts similarity index 100% rename from core-packages/backend/test/full-backend.ts rename to packages/core/backend/test/full-backend.ts diff --git a/core-packages/backend/test/hander-context.spec.ts b/packages/core/backend/test/hander-context.spec.ts similarity index 100% rename from core-packages/backend/test/hander-context.spec.ts rename to packages/core/backend/test/hander-context.spec.ts diff --git a/core-packages/backend/tsconfig.json b/packages/core/backend/tsconfig.json similarity index 100% rename from core-packages/backend/tsconfig.json rename to packages/core/backend/tsconfig.json diff --git a/core-packages/backend/tsup.config.ts b/packages/core/backend/tsup.config.ts similarity index 100% rename from core-packages/backend/tsup.config.ts rename to packages/core/backend/tsup.config.ts diff --git a/core-packages/backend/vitest.config.ts b/packages/core/backend/vitest.config.ts similarity index 100% rename from core-packages/backend/vitest.config.ts rename to packages/core/backend/vitest.config.ts diff --git a/core-packages/cache/package.json b/packages/core/cache/package.json similarity index 100% rename from core-packages/cache/package.json rename to packages/core/cache/package.json diff --git a/core-packages/cache/src/cache-provider.ts b/packages/core/cache/src/cache-provider.ts similarity index 100% rename from core-packages/cache/src/cache-provider.ts rename to packages/core/cache/src/cache-provider.ts diff --git a/core-packages/cache/src/index.ts b/packages/core/cache/src/index.ts similarity index 100% rename from core-packages/cache/src/index.ts rename to packages/core/cache/src/index.ts diff --git a/core-packages/cache/src/plugin-protocol.ts b/packages/core/cache/src/plugin-protocol.ts similarity index 100% rename from core-packages/cache/src/plugin-protocol.ts rename to packages/core/cache/src/plugin-protocol.ts diff --git a/core-packages/cache/src/plugin.ts b/packages/core/cache/src/plugin.ts similarity index 100% rename from core-packages/cache/src/plugin.ts rename to packages/core/cache/src/plugin.ts diff --git a/core-packages/cache/src/types.ts b/packages/core/cache/src/types.ts similarity index 100% rename from core-packages/cache/src/types.ts rename to packages/core/cache/src/types.ts diff --git a/core-packages/cache/tsconfig.json b/packages/core/cache/tsconfig.json similarity index 100% rename from core-packages/cache/tsconfig.json rename to packages/core/cache/tsconfig.json diff --git a/core-packages/cache/tsup.config.ts b/packages/core/cache/tsup.config.ts similarity index 100% rename from core-packages/cache/tsup.config.ts rename to packages/core/cache/tsup.config.ts diff --git a/core-packages/config/package.json b/packages/core/config/package.json similarity index 100% rename from core-packages/config/package.json rename to packages/core/config/package.json diff --git a/core-packages/config/src/config-provider.ts b/packages/core/config/src/config-provider.ts similarity index 100% rename from core-packages/config/src/config-provider.ts rename to packages/core/config/src/config-provider.ts diff --git a/core-packages/config/src/decorators/index.ts b/packages/core/config/src/decorators/index.ts similarity index 100% rename from core-packages/config/src/decorators/index.ts rename to packages/core/config/src/decorators/index.ts diff --git a/core-packages/config/src/decorators/value.decorator.ts b/packages/core/config/src/decorators/value.decorator.ts similarity index 100% rename from core-packages/config/src/decorators/value.decorator.ts rename to packages/core/config/src/decorators/value.decorator.ts diff --git a/core-packages/config/src/helper.ts b/packages/core/config/src/helper.ts similarity index 100% rename from core-packages/config/src/helper.ts rename to packages/core/config/src/helper.ts diff --git a/core-packages/config/src/index.ts b/packages/core/config/src/index.ts similarity index 100% rename from core-packages/config/src/index.ts rename to packages/core/config/src/index.ts diff --git a/core-packages/config/src/plugin-protocol.ts b/packages/core/config/src/plugin-protocol.ts similarity index 100% rename from core-packages/config/src/plugin-protocol.ts rename to packages/core/config/src/plugin-protocol.ts diff --git a/core-packages/config/src/plugin.ts b/packages/core/config/src/plugin.ts similarity index 100% rename from core-packages/config/src/plugin.ts rename to packages/core/config/src/plugin.ts diff --git a/core-packages/config/src/types.ts b/packages/core/config/src/types.ts similarity index 100% rename from core-packages/config/src/types.ts rename to packages/core/config/src/types.ts diff --git a/core-packages/config/tsconfig.json b/packages/core/config/tsconfig.json similarity index 100% rename from core-packages/config/tsconfig.json rename to packages/core/config/tsconfig.json diff --git a/core-packages/config/tsup.config.ts b/packages/core/config/tsup.config.ts similarity index 100% rename from core-packages/config/tsup.config.ts rename to packages/core/config/tsup.config.ts diff --git a/core-packages/ioc/package.json b/packages/core/ioc/package.json similarity index 100% rename from core-packages/ioc/package.json rename to packages/core/ioc/package.json diff --git a/core-packages/ioc/src/abstract-bootstrap.ts b/packages/core/ioc/src/abstract-bootstrap.ts similarity index 100% rename from core-packages/ioc/src/abstract-bootstrap.ts rename to packages/core/ioc/src/abstract-bootstrap.ts diff --git a/core-packages/ioc/src/apply-decorator.ts b/packages/core/ioc/src/apply-decorator.ts similarity index 100% rename from core-packages/ioc/src/apply-decorator.ts rename to packages/core/ioc/src/apply-decorator.ts diff --git a/core-packages/ioc/src/constants/constant.ts b/packages/core/ioc/src/constants/constant.ts similarity index 100% rename from core-packages/ioc/src/constants/constant.ts rename to packages/core/ioc/src/constants/constant.ts diff --git a/core-packages/ioc/src/constants/index.ts b/packages/core/ioc/src/constants/index.ts similarity index 100% rename from core-packages/ioc/src/constants/index.ts rename to packages/core/ioc/src/constants/index.ts diff --git a/core-packages/ioc/src/container-protocol.ts b/packages/core/ioc/src/container-protocol.ts similarity index 100% rename from core-packages/ioc/src/container-protocol.ts rename to packages/core/ioc/src/container-protocol.ts diff --git a/core-packages/ioc/src/container.ts b/packages/core/ioc/src/container.ts similarity index 100% rename from core-packages/ioc/src/container.ts rename to packages/core/ioc/src/container.ts diff --git a/core-packages/ioc/src/decorators/catch.decorator.ts b/packages/core/ioc/src/decorators/catch.decorator.ts similarity index 100% rename from core-packages/ioc/src/decorators/catch.decorator.ts rename to packages/core/ioc/src/decorators/catch.decorator.ts diff --git a/core-packages/ioc/src/decorators/index.ts b/packages/core/ioc/src/decorators/index.ts similarity index 100% rename from core-packages/ioc/src/decorators/index.ts rename to packages/core/ioc/src/decorators/index.ts diff --git a/core-packages/ioc/src/decorators/inject.decorator.ts b/packages/core/ioc/src/decorators/inject.decorator.ts similarity index 100% rename from core-packages/ioc/src/decorators/inject.decorator.ts rename to packages/core/ioc/src/decorators/inject.decorator.ts diff --git a/core-packages/ioc/src/decorators/injectable.decorator.ts b/packages/core/ioc/src/decorators/injectable.decorator.ts similarity index 100% rename from core-packages/ioc/src/decorators/injectable.decorator.ts rename to packages/core/ioc/src/decorators/injectable.decorator.ts diff --git a/core-packages/ioc/src/decorators/optional.decorator.ts b/packages/core/ioc/src/decorators/optional.decorator.ts similarity index 100% rename from core-packages/ioc/src/decorators/optional.decorator.ts rename to packages/core/ioc/src/decorators/optional.decorator.ts diff --git a/core-packages/ioc/src/errors/index.ts b/packages/core/ioc/src/errors/index.ts similarity index 100% rename from core-packages/ioc/src/errors/index.ts rename to packages/core/ioc/src/errors/index.ts diff --git a/core-packages/ioc/src/errors/unknown-constructor-param-type.ts b/packages/core/ioc/src/errors/unknown-constructor-param-type.ts similarity index 100% rename from core-packages/ioc/src/errors/unknown-constructor-param-type.ts rename to packages/core/ioc/src/errors/unknown-constructor-param-type.ts diff --git a/core-packages/ioc/src/index.ts b/packages/core/ioc/src/index.ts similarity index 100% rename from core-packages/ioc/src/index.ts rename to packages/core/ioc/src/index.ts diff --git a/core-packages/ioc/src/inject-wrapper.ts b/packages/core/ioc/src/inject-wrapper.ts similarity index 100% rename from core-packages/ioc/src/inject-wrapper.ts rename to packages/core/ioc/src/inject-wrapper.ts diff --git a/core-packages/ioc/src/injectable-wrapper.ts b/packages/core/ioc/src/injectable-wrapper.ts similarity index 100% rename from core-packages/ioc/src/injectable-wrapper.ts rename to packages/core/ioc/src/injectable-wrapper.ts diff --git a/core-packages/ioc/src/plugin-protocol.ts b/packages/core/ioc/src/plugin-protocol.ts similarity index 100% rename from core-packages/ioc/src/plugin-protocol.ts rename to packages/core/ioc/src/plugin-protocol.ts diff --git a/core-packages/ioc/src/types.ts b/packages/core/ioc/src/types.ts similarity index 100% rename from core-packages/ioc/src/types.ts rename to packages/core/ioc/src/types.ts diff --git a/core-packages/ioc/tsconfig.json b/packages/core/ioc/tsconfig.json similarity index 100% rename from core-packages/ioc/tsconfig.json rename to packages/core/ioc/tsconfig.json diff --git a/core-packages/ioc/tsup.config.ts b/packages/core/ioc/tsup.config.ts similarity index 100% rename from core-packages/ioc/tsup.config.ts rename to packages/core/ioc/tsup.config.ts diff --git a/core-packages/jexl/package.json b/packages/core/jexl/package.json similarity index 100% rename from core-packages/jexl/package.json rename to packages/core/jexl/package.json diff --git a/core-packages/jexl/src/index.ts b/packages/core/jexl/src/index.ts similarity index 100% rename from core-packages/jexl/src/index.ts rename to packages/core/jexl/src/index.ts diff --git a/core-packages/jexl/tsconfig.json b/packages/core/jexl/tsconfig.json similarity index 100% rename from core-packages/jexl/tsconfig.json rename to packages/core/jexl/tsconfig.json diff --git a/core-packages/jexl/tsup.config.ts b/packages/core/jexl/tsup.config.ts similarity index 100% rename from core-packages/jexl/tsup.config.ts rename to packages/core/jexl/tsup.config.ts diff --git a/packages/core/logger/package.json b/packages/core/logger/package.json new file mode 100644 index 0000000..d24a854 --- /dev/null +++ b/packages/core/logger/package.json @@ -0,0 +1,33 @@ +{ + "name": "@nailyjs/logger", + "type": "module", + "version": "0.0.4", + "description": "Logger package for naily.js", + "author": "Naily Zero (https://naily.cc)", + "keywords": [ + "es-project-template" + ], + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.cjs", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "publishConfig": { + "access": "public" + }, + "scripts": { + "build": "tsup", + "watch": "tsup -w" + }, + "dependencies": { + "@nailyjs/ioc": "workspace:*" + }, + "devDependencies": { + "tsup": "^8.3.0" + } +} diff --git a/packages/core/logger/src/index.ts b/packages/core/logger/src/index.ts new file mode 100644 index 0000000..f60ea9d --- /dev/null +++ b/packages/core/logger/src/index.ts @@ -0,0 +1 @@ +export default 'Hello, world!' diff --git a/core-packages/rpc-protocol/tsconfig.json b/packages/core/logger/tsconfig.json similarity index 100% rename from core-packages/rpc-protocol/tsconfig.json rename to packages/core/logger/tsconfig.json diff --git a/core-packages/rpc-protocol/tsup.config.ts b/packages/core/logger/tsup.config.ts similarity index 100% rename from core-packages/rpc-protocol/tsup.config.ts rename to packages/core/logger/tsup.config.ts diff --git a/core-packages/rpc-protocol/package.json b/packages/core/rpc-protocol/package.json similarity index 100% rename from core-packages/rpc-protocol/package.json rename to packages/core/rpc-protocol/package.json diff --git a/core-packages/rpc-protocol/src/index.ts b/packages/core/rpc-protocol/src/index.ts similarity index 100% rename from core-packages/rpc-protocol/src/index.ts rename to packages/core/rpc-protocol/src/index.ts diff --git a/packages/core/rpc-protocol/tsconfig.json b/packages/core/rpc-protocol/tsconfig.json new file mode 100644 index 0000000..551ed97 --- /dev/null +++ b/packages/core/rpc-protocol/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ES2022", + "moduleResolution": "Bundler" + }, + "include": ["src"] +} diff --git a/packages/core/rpc-protocol/tsup.config.ts b/packages/core/rpc-protocol/tsup.config.ts new file mode 100644 index 0000000..31fd75b --- /dev/null +++ b/packages/core/rpc-protocol/tsup.config.ts @@ -0,0 +1,11 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: { + index: './src/index.ts', + }, + dts: true, + sourcemap: true, + clean: true, + format: ['cjs', 'esm'], +}) diff --git a/core-packages/rpc/package.json b/packages/core/rpc/package.json similarity index 100% rename from core-packages/rpc/package.json rename to packages/core/rpc/package.json diff --git a/core-packages/rpc/src/axios.ts b/packages/core/rpc/src/axios.ts similarity index 100% rename from core-packages/rpc/src/axios.ts rename to packages/core/rpc/src/axios.ts diff --git a/core-packages/rpc/src/constant.ts b/packages/core/rpc/src/constant.ts similarity index 100% rename from core-packages/rpc/src/constant.ts rename to packages/core/rpc/src/constant.ts diff --git a/core-packages/rpc/src/decorators/index.ts b/packages/core/rpc/src/decorators/index.ts similarity index 100% rename from core-packages/rpc/src/decorators/index.ts rename to packages/core/rpc/src/decorators/index.ts diff --git a/core-packages/rpc/src/decorators/rpc-controller.decorator.ts b/packages/core/rpc/src/decorators/rpc-controller.decorator.ts similarity index 100% rename from core-packages/rpc/src/decorators/rpc-controller.decorator.ts rename to packages/core/rpc/src/decorators/rpc-controller.decorator.ts diff --git a/core-packages/rpc/src/index.ts b/packages/core/rpc/src/index.ts similarity index 100% rename from core-packages/rpc/src/index.ts rename to packages/core/rpc/src/index.ts diff --git a/core-packages/rpc/src/rpc-bootstrap.ts b/packages/core/rpc/src/rpc-bootstrap.ts similarity index 100% rename from core-packages/rpc/src/rpc-bootstrap.ts rename to packages/core/rpc/src/rpc-bootstrap.ts diff --git a/core-packages/rpc/src/rpc-controller-container.ts b/packages/core/rpc/src/rpc-controller-container.ts similarity index 100% rename from core-packages/rpc/src/rpc-controller-container.ts rename to packages/core/rpc/src/rpc-controller-container.ts diff --git a/core-packages/rpc/src/rpc-handler.ts b/packages/core/rpc/src/rpc-handler.ts similarity index 100% rename from core-packages/rpc/src/rpc-handler.ts rename to packages/core/rpc/src/rpc-handler.ts diff --git a/core-packages/rpc/src/rpc-plugin-protocol.ts b/packages/core/rpc/src/rpc-plugin-protocol.ts similarity index 100% rename from core-packages/rpc/src/rpc-plugin-protocol.ts rename to packages/core/rpc/src/rpc-plugin-protocol.ts diff --git a/core-packages/rpc/src/schema.ts b/packages/core/rpc/src/schema.ts similarity index 100% rename from core-packages/rpc/src/schema.ts rename to packages/core/rpc/src/schema.ts diff --git a/core-packages/rpc/src/types.ts b/packages/core/rpc/src/types.ts similarity index 100% rename from core-packages/rpc/src/types.ts rename to packages/core/rpc/src/types.ts diff --git a/core-packages/rpc/test/rpc-backend.ts b/packages/core/rpc/test/rpc-backend.ts similarity index 100% rename from core-packages/rpc/test/rpc-backend.ts rename to packages/core/rpc/test/rpc-backend.ts diff --git a/core-packages/rpc/tsconfig.json b/packages/core/rpc/tsconfig.json similarity index 100% rename from core-packages/rpc/tsconfig.json rename to packages/core/rpc/tsconfig.json diff --git a/core-packages/rpc/tsup.config.ts b/packages/core/rpc/tsup.config.ts similarity index 100% rename from core-packages/rpc/tsup.config.ts rename to packages/core/rpc/tsup.config.ts diff --git a/core-packages/unplugin-rpc/LICENSE b/packages/core/unplugin-rpc/LICENSE similarity index 100% rename from core-packages/unplugin-rpc/LICENSE rename to packages/core/unplugin-rpc/LICENSE diff --git a/core-packages/unplugin-rpc/README.md b/packages/core/unplugin-rpc/README.md similarity index 100% rename from core-packages/unplugin-rpc/README.md rename to packages/core/unplugin-rpc/README.md diff --git a/core-packages/unplugin-rpc/package.json b/packages/core/unplugin-rpc/package.json similarity index 100% rename from core-packages/unplugin-rpc/package.json rename to packages/core/unplugin-rpc/package.json diff --git a/core-packages/unplugin-rpc/playground/backend/main.ts b/packages/core/unplugin-rpc/playground/backend/main.ts similarity index 100% rename from core-packages/unplugin-rpc/playground/backend/main.ts rename to packages/core/unplugin-rpc/playground/backend/main.ts diff --git a/core-packages/unplugin-rpc/playground/backend/welcome-server.ts b/packages/core/unplugin-rpc/playground/backend/welcome-server.ts similarity index 100% rename from core-packages/unplugin-rpc/playground/backend/welcome-server.ts rename to packages/core/unplugin-rpc/playground/backend/welcome-server.ts diff --git a/core-packages/unplugin-rpc/playground/common/welcome-protocol.ts b/packages/core/unplugin-rpc/playground/common/welcome-protocol.ts similarity index 100% rename from core-packages/unplugin-rpc/playground/common/welcome-protocol.ts rename to packages/core/unplugin-rpc/playground/common/welcome-protocol.ts diff --git a/core-packages/unplugin-rpc/playground/frontend/main.ts b/packages/core/unplugin-rpc/playground/frontend/main.ts similarity index 100% rename from core-packages/unplugin-rpc/playground/frontend/main.ts rename to packages/core/unplugin-rpc/playground/frontend/main.ts diff --git a/core-packages/unplugin-rpc/playground/index.html b/packages/core/unplugin-rpc/playground/index.html similarity index 100% rename from core-packages/unplugin-rpc/playground/index.html rename to packages/core/unplugin-rpc/playground/index.html diff --git a/core-packages/unplugin-rpc/playground/package.json b/packages/core/unplugin-rpc/playground/package.json similarity index 100% rename from core-packages/unplugin-rpc/playground/package.json rename to packages/core/unplugin-rpc/playground/package.json diff --git a/core-packages/unplugin-rpc/playground/tsconfig.json b/packages/core/unplugin-rpc/playground/tsconfig.json similarity index 100% rename from core-packages/unplugin-rpc/playground/tsconfig.json rename to packages/core/unplugin-rpc/playground/tsconfig.json diff --git a/core-packages/unplugin-rpc/playground/vite.config.ts b/packages/core/unplugin-rpc/playground/vite.config.ts similarity index 100% rename from core-packages/unplugin-rpc/playground/vite.config.ts rename to packages/core/unplugin-rpc/playground/vite.config.ts diff --git a/core-packages/unplugin-rpc/scripts/postbuild.ts b/packages/core/unplugin-rpc/scripts/postbuild.ts similarity index 100% rename from core-packages/unplugin-rpc/scripts/postbuild.ts rename to packages/core/unplugin-rpc/scripts/postbuild.ts diff --git a/core-packages/unplugin-rpc/src/astro.ts b/packages/core/unplugin-rpc/src/astro.ts similarity index 100% rename from core-packages/unplugin-rpc/src/astro.ts rename to packages/core/unplugin-rpc/src/astro.ts diff --git a/core-packages/unplugin-rpc/src/core/hmr-logger.ts b/packages/core/unplugin-rpc/src/core/hmr-logger.ts similarity index 100% rename from core-packages/unplugin-rpc/src/core/hmr-logger.ts rename to packages/core/unplugin-rpc/src/core/hmr-logger.ts diff --git a/core-packages/unplugin-rpc/src/core/swc.ts b/packages/core/unplugin-rpc/src/core/swc.ts similarity index 100% rename from core-packages/unplugin-rpc/src/core/swc.ts rename to packages/core/unplugin-rpc/src/core/swc.ts diff --git a/core-packages/unplugin-rpc/src/core/vite-server-adapter.ts b/packages/core/unplugin-rpc/src/core/vite-server-adapter.ts similarity index 100% rename from core-packages/unplugin-rpc/src/core/vite-server-adapter.ts rename to packages/core/unplugin-rpc/src/core/vite-server-adapter.ts diff --git a/core-packages/unplugin-rpc/src/esbuild.ts b/packages/core/unplugin-rpc/src/esbuild.ts similarity index 100% rename from core-packages/unplugin-rpc/src/esbuild.ts rename to packages/core/unplugin-rpc/src/esbuild.ts diff --git a/core-packages/unplugin-rpc/src/farm.ts b/packages/core/unplugin-rpc/src/farm.ts similarity index 100% rename from core-packages/unplugin-rpc/src/farm.ts rename to packages/core/unplugin-rpc/src/farm.ts diff --git a/core-packages/unplugin-rpc/src/index.ts b/packages/core/unplugin-rpc/src/index.ts similarity index 100% rename from core-packages/unplugin-rpc/src/index.ts rename to packages/core/unplugin-rpc/src/index.ts diff --git a/core-packages/unplugin-rpc/src/nuxt.ts b/packages/core/unplugin-rpc/src/nuxt.ts similarity index 100% rename from core-packages/unplugin-rpc/src/nuxt.ts rename to packages/core/unplugin-rpc/src/nuxt.ts diff --git a/core-packages/unplugin-rpc/src/rollup.ts b/packages/core/unplugin-rpc/src/rollup.ts similarity index 100% rename from core-packages/unplugin-rpc/src/rollup.ts rename to packages/core/unplugin-rpc/src/rollup.ts diff --git a/core-packages/unplugin-rpc/src/rspack.ts b/packages/core/unplugin-rpc/src/rspack.ts similarity index 100% rename from core-packages/unplugin-rpc/src/rspack.ts rename to packages/core/unplugin-rpc/src/rspack.ts diff --git a/core-packages/unplugin-rpc/src/types.ts b/packages/core/unplugin-rpc/src/types.ts similarity index 100% rename from core-packages/unplugin-rpc/src/types.ts rename to packages/core/unplugin-rpc/src/types.ts diff --git a/core-packages/unplugin-rpc/src/vite.ts b/packages/core/unplugin-rpc/src/vite.ts similarity index 100% rename from core-packages/unplugin-rpc/src/vite.ts rename to packages/core/unplugin-rpc/src/vite.ts diff --git a/core-packages/unplugin-rpc/src/webpack.ts b/packages/core/unplugin-rpc/src/webpack.ts similarity index 100% rename from core-packages/unplugin-rpc/src/webpack.ts rename to packages/core/unplugin-rpc/src/webpack.ts diff --git a/core-packages/unplugin-rpc/tsconfig.json b/packages/core/unplugin-rpc/tsconfig.json similarity index 100% rename from core-packages/unplugin-rpc/tsconfig.json rename to packages/core/unplugin-rpc/tsconfig.json diff --git a/core-packages/unplugin-rpc/tsup.config.ts b/packages/core/unplugin-rpc/tsup.config.ts similarity index 100% rename from core-packages/unplugin-rpc/tsup.config.ts rename to packages/core/unplugin-rpc/tsup.config.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2fd871f..ac58e49 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,7 +96,42 @@ importers: specifier: ^2.1.2 version: 2.1.3(@types/node@22.7.8)(@vitest/ui@2.1.3)(jsdom@24.1.3)(less@4.2.0)(terser@5.36.0) - core-packages/backend: + fixtures/backend: + dependencies: + '@nailyjs/backend': + specifier: workspace:* + version: link:../../packages/core/backend + '@nailyjs/cache': + specifier: workspace:* + version: link:../../packages/core/cache + '@nailyjs/config': + specifier: workspace:* + version: link:../../packages/core/config + '@nailyjs/ioc': + specifier: workspace:* + version: link:../../packages/core/ioc + '@nailyjs/jexl': + specifier: workspace:* + version: link:../../packages/core/jexl + devDependencies: + tsup: + specifier: ^8.3.0 + version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) + + packages/backend-adapter/backend-node-adapter: + dependencies: + '@nailyjs/backend': + specifier: workspace:* + version: link:../../core/backend + '@nailyjs/ioc': + specifier: workspace:* + version: link:../../core/ioc + devDependencies: + tsup: + specifier: ^8.3.0 + version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) + + packages/core/backend: dependencies: '@nailyjs/ioc': specifier: workspace:* @@ -104,12 +139,16 @@ importers: path-to-regexp: specifier: ^8.2.0 version: 8.2.0 + optionalDependencies: + '@nailyjs/backend-node-adapter': + specifier: workspace:* + version: link:../../backend-adapter/backend-node-adapter devDependencies: tsup: specifier: ^8.3.0 version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) - core-packages/cache: + packages/core/cache: dependencies: '@nailyjs/backend': specifier: workspace:* @@ -128,7 +167,7 @@ importers: specifier: ^8.3.0 version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) - core-packages/config: + packages/core/config: dependencies: '@nailyjs/ioc': specifier: workspace:* @@ -144,7 +183,7 @@ importers: specifier: ^8.3.0 version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) - core-packages/ioc: + packages/core/ioc: dependencies: reflect-metadata: specifier: ^0.2.2 @@ -157,7 +196,7 @@ importers: specifier: ^8.3.0 version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) - core-packages/jexl: + packages/core/jexl: dependencies: '@nailyjs/ioc': specifier: workspace:* @@ -173,7 +212,17 @@ importers: specifier: ^8.3.0 version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) - core-packages/rpc: + packages/core/logger: + dependencies: + '@nailyjs/ioc': + specifier: workspace:* + version: link:../ioc + devDependencies: + tsup: + specifier: ^8.3.0 + version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) + + packages/core/rpc: dependencies: '@nailyjs/backend': specifier: workspace:* @@ -192,7 +241,7 @@ importers: specifier: ^8.3.0 version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) - core-packages/rpc-protocol: + packages/core/rpc-protocol: dependencies: '@nailyjs/rpc': specifier: workspace:* @@ -211,7 +260,7 @@ importers: specifier: ^8.3.0 version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) - core-packages/unplugin-rpc: + packages/core/unplugin-rpc: dependencies: '@farmfe/core': specifier: '>=1' @@ -299,27 +348,14 @@ importers: specifier: ^5.94.0 version: 5.95.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(esbuild@0.23.1) - fixtures/backend: - dependencies: - '@nailyjs/backend': - specifier: workspace:* - version: link:../../core-packages/backend - '@nailyjs/cache': - specifier: workspace:* - version: link:../../core-packages/cache - '@nailyjs/config': - specifier: workspace:* - version: link:../../core-packages/config - '@nailyjs/ioc': - specifier: workspace:* - version: link:../../core-packages/ioc - '@nailyjs/jexl': - specifier: workspace:* - version: link:../../core-packages/jexl + packages/core/unplugin-rpc/playground: devDependencies: - tsup: - specifier: ^8.3.0 - version: 8.3.0(@swc/core@1.7.39(@swc/helpers@0.5.13))(jiti@2.3.3)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.3)(yaml@2.6.0) + vite: + specifier: ^5.4.2 + version: 5.4.9(@types/node@22.7.8)(less@4.2.0)(terser@5.36.0) + vite-plugin-inspect: + specifier: ^0.8.7 + version: 0.8.7(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3))(rollup@4.24.0)(vite@5.4.9(@types/node@22.7.8)(less@4.2.0)(terser@5.36.0)) packages: @@ -2061,6 +2097,10 @@ packages: resolution: {integrity: sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==} engines: {node: '>=12'} + bundle-name@4.1.0: + resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} + engines: {node: '>=18'} + bundle-require@5.0.0: resolution: {integrity: sha512-GuziW3fSSmopcx4KRymQEJVbZUfqlCqcq7dvs6TYwKRZiegK/2buMxQTPs6MGlNv50wms1699qYO54R8XfRX4w==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -2424,10 +2464,18 @@ packages: resolution: {integrity: sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==} engines: {node: '>=12'} + default-browser-id@5.0.0: + resolution: {integrity: sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==} + engines: {node: '>=18'} + default-browser@4.0.0: resolution: {integrity: sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==} engines: {node: '>=14.16'} + default-browser@5.2.1: + resolution: {integrity: sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==} + engines: {node: '>=18'} + define-data-property@1.1.4: resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} engines: {node: '>= 0.4'} @@ -2553,6 +2601,9 @@ packages: error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} + error-stack-parser-es@0.1.5: + resolution: {integrity: sha512-xHku1X40RO+fO8yJ8Wh2f2rZWVjqyhb1zgq1yZ8aZRQkv6OOKhKWRUaht3eSCUbAOBaKIgM+ykwFLE+QUxgGeg==} + es-abstract@1.23.3: resolution: {integrity: sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==} engines: {node: '>= 0.4'} @@ -3448,6 +3499,10 @@ packages: resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} engines: {node: '>=8'} + is-wsl@3.1.0: + resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==} + engines: {node: '>=16'} + isarray@2.0.5: resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} @@ -4099,6 +4154,10 @@ packages: only@0.0.2: resolution: {integrity: sha512-Fvw+Jemq5fjjyWz6CpKx6w9s7xxqo3+JCyM0WXWeCSOboZ8ABkyvP8ID4CZuChA/wxSx+XSJmdOm8rGVyJ1hdQ==} + open@10.1.0: + resolution: {integrity: sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==} + engines: {node: '>=18'} + open@9.1.0: resolution: {integrity: sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==} engines: {node: '>=14.16'} @@ -4489,6 +4548,10 @@ packages: resolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==} engines: {node: '>=12'} + run-applescript@7.0.0: + resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==} + engines: {node: '>=18'} + run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -5218,6 +5281,16 @@ packages: engines: {node: ^18.0.0 || >=20.0.0} hasBin: true + vite-plugin-inspect@0.8.7: + resolution: {integrity: sha512-/XXou3MVc13A5O9/2Nd6xczjrUwt7ZyI9h8pTnUMkr5SshLcb0PJUOVq2V+XVkdeU4njsqAtmK87THZuO2coGA==} + engines: {node: '>=14'} + peerDependencies: + '@nuxt/kit': '*' + vite: ^3.1.0 || ^4.0.0 || ^5.0.0-0 + peerDependenciesMeta: + '@nuxt/kit': + optional: true + vite-ssg@0.23.8: resolution: {integrity: sha512-uWjdxL2PrvmbUxj7K+YFR8hTuhUZ90r2PrP73evsN/XarjQzKvIbbopqczyGUSAdRXggN3C4sdnk4jqDOGbF4A==} engines: {node: '>=14.0.0'} @@ -7599,6 +7672,10 @@ snapshots: dependencies: run-applescript: 5.0.0 + bundle-name@4.1.0: + dependencies: + run-applescript: 7.0.0 + bundle-require@5.0.0(esbuild@0.23.1): dependencies: esbuild: 0.23.1 @@ -7955,6 +8032,8 @@ snapshots: bplist-parser: 0.2.0 untildify: 4.0.0 + default-browser-id@5.0.0: {} + default-browser@4.0.0: dependencies: bundle-name: 3.0.0 @@ -7962,6 +8041,11 @@ snapshots: execa: 7.2.0 titleize: 3.0.0 + default-browser@5.2.1: + dependencies: + bundle-name: 4.1.0 + default-browser-id: 5.0.0 + define-data-property@1.1.4: dependencies: es-define-property: 1.0.0 @@ -8064,6 +8148,8 @@ snapshots: dependencies: is-arrayish: 0.2.1 + error-stack-parser-es@0.1.5: {} + es-abstract@1.23.3: dependencies: array-buffer-byte-length: 1.0.1 @@ -9200,6 +9286,10 @@ snapshots: dependencies: is-docker: 2.2.1 + is-wsl@3.1.0: + dependencies: + is-inside-container: 1.0.0 + isarray@2.0.5: {} isbot@3.8.0: {} @@ -10067,6 +10157,13 @@ snapshots: only@0.0.2: {} + open@10.1.0: + dependencies: + default-browser: 5.2.1 + define-lazy-prop: 3.0.0 + is-inside-container: 1.0.0 + is-wsl: 3.1.0 + open@9.1.0: dependencies: default-browser: 4.0.0 @@ -10418,6 +10515,8 @@ snapshots: dependencies: execa: 5.1.1 + run-applescript@7.0.0: {} + run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 @@ -11241,6 +11340,24 @@ snapshots: - supports-color - terser + vite-plugin-inspect@0.8.7(@nuxt/kit@3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3))(rollup@4.24.0)(vite@5.4.9(@types/node@22.7.8)(less@4.2.0)(terser@5.36.0)): + dependencies: + '@antfu/utils': 0.7.10 + '@rollup/pluginutils': 5.1.2(rollup@4.24.0) + debug: 4.3.7(supports-color@5.5.0) + error-stack-parser-es: 0.1.5 + fs-extra: 11.2.0 + open: 10.1.0 + perfect-debounce: 1.0.0 + picocolors: 1.1.1 + sirv: 2.0.4 + vite: 5.4.9(@types/node@22.7.8)(less@4.2.0)(terser@5.36.0) + optionalDependencies: + '@nuxt/kit': 3.13.2(magicast@0.3.5)(rollup@4.24.0)(webpack-sources@3.2.3) + transitivePeerDependencies: + - rollup + - supports-color + vite-ssg@0.23.8(vite@5.4.9(@types/node@22.7.8)(less@4.2.0)(terser@5.36.0))(vue@3.5.12(typescript@5.6.3)): dependencies: '@unhead/dom': 1.11.10 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 5b90d8f..0c9293c 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,6 +1,7 @@ packages: - - core-packages/* - - adapter-packages/* + - packages/core/* + - packages/backend-adapter/* + - packages/logger-adapter/* - fixtures/* - tests/* - - packages/unplugin-rpc/playground + - packages/core/unplugin-rpc/playground