diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 77180fcd..7c89bf12 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -16,13 +16,16 @@ permissions: contents: read jobs: - deploy-cfw: + deploy-cloudflare-worker: runs-on: ubuntu-latest steps: - name: Setup repo uses: actions/checkout@v3 + - name: setup pnpm + run: npm install -g pnpm + - name: Setup Wrangler uses: cloudflare/wrangler-action@v3 with: diff --git a/example/auth/app.ts b/example/singleFileAuth/app.ts similarity index 98% rename from example/auth/app.ts rename to example/singleFileAuth/app.ts index 903b931d..c4027369 100644 --- a/example/auth/app.ts +++ b/example/singleFileAuth/app.ts @@ -1,4 +1,4 @@ -import * as Peko from "../../index.ts"; // "https://deno.land/x/peko/mod.ts" +import * as Peko from "../../lib/mod.ts"; // "https://deno.land/x/peko/mod.ts" const html = String; const router = new Peko.Router(); diff --git a/lib/handlers/static.ts b/lib/handlers/file.ts similarity index 100% rename from lib/handlers/static.ts rename to lib/handlers/file.ts diff --git a/index.ts b/mod.ts similarity index 83% rename from index.ts rename to mod.ts index e265fa71..e0d89e4d 100644 --- a/index.ts +++ b/mod.ts @@ -1,5 +1,5 @@ /** - * Featherweight HTTP routing and utils for apps on the edge. + * Featherweight apps on the edge */ // Core classes, functions & types @@ -7,20 +7,21 @@ export * from "./lib/Router.ts"; export * from "./lib/types.ts"; // Handlers -export * from "./lib/handlers/static.ts"; -export * from "./lib/handlers/ssr.ts"; +export * from "./lib/handlers/file.ts"; export * from "./lib/handlers/sse.ts"; +export * from "./lib/handlers/ssr.ts"; // Middlewares -export * from "./lib/middleware/logger.ts"; -export * from "./lib/middleware/cacher.ts"; export * from "./lib/middleware/authenticator.ts"; +export * from "./lib/middleware/cacher.ts"; +export * from "./lib/middleware/logger.ts"; // Utils export * from "./lib/utils/CacheItem.ts"; export * from "./lib/utils/Cascade.ts"; export * from "./lib/utils/Crypto.ts"; export * from "./lib/utils/helpers.ts"; +export * from "./lib/utils/Profiler.ts"; import { Router } from "./lib/Router.ts"; export default Router;