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

23
docs/widget/.npmignore Normal file
View File

@@ -0,0 +1,23 @@
# Git 相关
.git
.gitignore
# 文档目录
docs
# 开发依赖
node_modules
# IDE
.vscode
.idea
# Claude Code
.claude
# 其他
package-lock.json
*.log
.DS_Store
.npmrc