0.2.53 • Published 2 years ago

@datago/monorepo v0.2.53

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Vue 3 + Typescript + Vite

This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Recommended IDE Setup

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's .vue type support plugin by running Volar: Switch TS Plugin on/off from VSCode command palette.

包管理器 pnpm

npm i -g pnpm

CHANGELOG 生成工具 全局安装

pnpm add -g conventional-changelog-cli

库更新及升级

commit

使用命令行:pnpm run cz 根据提示进行添加 commit message

release 版本包定义及 tag

使用命令行:pnpm run release 版本选择,并会自动提交 tag 和 push gitlab

publish 推送至 local npm

使用命令行:pnpm run publish

npm publish 需求 npm logged

  • 更改本地项目 .npmrc
    • registry = http://192.168.2.80:8081/repository/group-npm/ ➡️ registry = http://192.168.2.80:8081/repository/local-npm/
  • 运行命令行 npm login ,输入相应的账户密码邮箱 (Tips: 登录成功有提示 Logged in as zhangxz on http://192.168.2.80:8081/repository/local-npm/.)
  • 回退本地项目 .npmrc