feat(widget): 准备 npm 包发布

- 添加 GitHub Actions 工作流以在推送标签时自动发布到 npm
- 更新 package.json,包含包名、版本、描述、作者等信息
- 添加 README.md、LICENSE 和 .npmignore 文件
- 更新根目录 .gitignore,忽略 .npmrc 文件
This commit is contained in:
anghunk
2026-01-31 11:48:15 +08:00
parent 1a7a9db88f
commit 59acfec575
6 changed files with 297 additions and 4 deletions

View File

@@ -1,12 +1,19 @@
{
"name": "widget",
"version": "0.0.0",
"name": "cwd-widget",
"version": "0.0.1",
"description": "Server-free, extremely fast and secure, plug-and-play commenting system based on Cloudflare Workers and the Global Edge Network.",
"type": "module",
"author": "anghunk",
"license": "Apache-2.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"keywords": [
"cloudflare workers",
"Comment"
],
"devDependencies": {
"terser": "^5.44.1",
"vite": "^6.0.11",
@@ -16,4 +23,4 @@
"dompurify": "^3.3.1",
"marked": "^17.0.1"
}
}
}