From 7fc2d53e96bc8689d615d33cd260de4547dc9a9f Mon Sep 17 00:00:00 2001 From: Seedgou Date: Mon, 25 Nov 2024 21:22:37 +0800 Subject: [PATCH 1/3] ci: remove windows and macos from test matrix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ea278f0..505388c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: node-version: [latest, 18, 20, 22] - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest] permissions: # Required to checkout the code From 0201c27d154137ab92dbbd141dabc9e4ac5afe99 Mon Sep 17 00:00:00 2001 From: Seedgou Date: Mon, 25 Nov 2024 22:23:07 +0800 Subject: [PATCH 2/3] chore: export package entry in package.json --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 12f4346..003d2cf 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,13 @@ "name": "hono-alibaba-cloud-fc3-adapter", "version": "1.0.0", "description": "", - "main": "index.js", + "main": "lib/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "type": "module", + "files": [ + "lib" + ], "scripts": { "build": "tsc", "lint": "eslint --fix .", From dd0b4ce27469273ed7e6c6d3666177ee1515fd00 Mon Sep 17 00:00:00 2001 From: Seedgou Date: Mon, 25 Nov 2024 22:35:50 +0800 Subject: [PATCH 3/3] docs: add `README.md` and info in `package.json` --- README.md | 26 ++++++++++++++++++++++++++ package.json | 18 ++++++++++++++---- 2 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..0daf4f0 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# Hono Alibaba Cloud FC3 Adapter + +[![Build](https://github.com/rwv/hono-alibaba-cloud-fc3-adapter/actions/workflows/build.yml/badge.svg)](https://github.com/rwv/hono-alibaba-cloud-fc3-adapter/actions/workflows/build.yml) + +An adapter for using [Hono](https://hono.dev) with [Alibaba Cloud Function Compute 3.0](https://www.alibabacloud.com/help/en/functioncompute/fc-3-0). + +一个用于在[阿里云函数计算 FC 3.0](https://help.aliyun.com/zh/functioncompute/fc-3-0/) 中使用 [Hono](https://hono.dev) 的适配器。 + +## Installation + +```bash +npm install hono-alibaba-cloud-fc3-adapter +``` + +## Usage + +```typescript +import { Hono } from "hono"; +import { handle } from "hono-alibaba-cloud-fc3-adapter"; + +const app = new Hono(); + +app.get("/", (c) => c.text("Hello Hono!")); + +export const handler = handle(app); +``` diff --git a/package.json b/package.json index 003d2cf..de0a59a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hono-alibaba-cloud-fc3-adapter", "version": "1.0.0", - "description": "", + "description": "An adapter for using Hono with Alibaba Cloud Function Compute 3.0", "main": "lib/index.js", "module": "lib/index.js", "types": "lib/index.d.ts", @@ -20,9 +20,19 @@ "test": "vitest", "coverage": "vitest --coverage" }, - "keywords": [], - "author": "", - "license": "ISC", + "keywords": [ + "hono", + "alibaba cloud", + "function compute", + "fc" + ], + "author": "rwv", + "license": "MIT", + "repository": "https://github.com/rwv/hono-alibaba-cloud-fc3-adapter", + "homepage": "https://github.com/rwv/hono-alibaba-cloud-fc3-adapter", + "bugs": { + "url": "https://github.com/rwv/hono-alibaba-cloud-fc3-adapter/issues" + }, "packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee", "devDependencies": { "@commitlint/cli": "^19.6.0",