UNPKG

atchain-mapbox-vue

Version:

A Vue 3 MapBox component library with subway lines, stations, markers and polygons support. Zero dependencies except Vue 3 and Mapbox GL JS.

116 lines (88 loc) 3.03 kB
# 🔍 最终发布前检查报告 ## ✅ 用户信息确认 - **NPM 用户名**: `cesar0` - **包名**: `atchain-mapbox-vue` - **邮箱**: `451591198@qq.com` - **GitHub**: `https://github.com/cesar0` ## ✅ package.json 配置检查 ```json { "name": "atchain-mapbox-vue", ✅ 正确 "version": "1.0.0", ✅ 正确 "author": { "name": "cesar0", ✅ 正确 "email": "451591198@qq.com", ✅ 正确 "url": "https://github.com/cesar0" ✅ 正确 }, "repository": { "type": "git", "url": "git+https://github.com/atchain/atchain-mapbox-vue.git" ✅ 正确 }, "homepage": "https://github.com/atchain/atchain-mapbox-vue#readme", ✅ 正确 "bugs": { "url": "https://github.com/atchain/atchain-mapbox-vue/issues" ✅ 正确 } } ``` ## ✅ 文件配置检查 ### 1. LICENSE 文件 - **版权所有者**: `cesar0` ✅ 正确 ### 2. CONTRIBUTING.md - **联系邮箱**: `451591198@qq.com` ✅ 正确 ### 3. 文档中的包名 - **README.md**: `atchain-mapbox-vue` ✅ 正确 - **QUICK_START.md**: `atchain-mapbox-vue` ✅ 正确 - **示例文件**: `atchain-mapbox-vue` ✅ 正确 ## 🚀 发布步骤 ### 1. 检查包名可用性 ```bash npm view atchain-mapbox-vue # 如果返回 404,说明包名可用 ``` ### 2. 登录 NPM ```bash npm login # 使用用户名: cesar0 # 使用邮箱: 451591198@qq.com ``` ### 3. 发布包 **重要**: 请在 mapbox 组件目录中运行发布脚本 ```bash # 进入 mapbox 组件目录 cd src/components/mapbox # Windows 用户 - 使用简化脚本(推荐) publish-simple.bat # 或使用原脚本 scripts\publish.bat # Linux/Mac 用户 ./scripts/publish.sh # 手动发布 npm publish ``` ## 📋 发布前最后检查清单 - [x] 包名正确: `atchain-mapbox-vue` - [x] 作者信息正确: `cesar0 <451591198@qq.com>` - [x] 版本号合理: `1.0.0` - [x] 仓库地址正确: `https://github.com/atchain/atchain-mapbox-vue` - [x] 许可证文件存在: `MIT License` - [x] 文档完整: `README.md`, `QUICK_START.md`, `CHANGELOG.md` - [x] 类型定义存在: `types.d.ts` - [x] 导出配置正确: `index.ts` - [x] 依赖配置合理: 只有 `vue``mapbox-gl` 作为 peerDependencies ## ⚠️ 注意事项 1. **GitHub 仓库**: 需要先创建 `https://github.com/atchain/atchain-mapbox-vue` 仓库 2. **NPM 登录**: 确保使用 `cesar0` 账号登录 3. **包名唯一性**: 发布前确认 `atchain-mapbox-vue` 在 npm 上不存在 ## 🎯 发布后验证 发布成功后,可以通过以下方式验证: 1. **NPM 官网查看**: https://www.npmjs.com/package/atchain-mapbox-vue 2. **测试安装**: ```bash npm install atchain-mapbox-vue mapbox-gl ``` 3. **测试导入**: ```javascript import { MapBox } from 'atchain-mapbox-vue' ``` ## ✅ 准备就绪! 所有配置已检查完毕,可以安全发布到 NPM!🚀