@youngjuning/create-vscode-preview
Version:
youngjuning's vscode preview extension template.
45 lines (31 loc) • 1.47 kB
Markdown
# @youngjuning/create-vscode-preview
youngjuning's vscode preview extension template.
## 随用随走
```sh
$ npx @youngjuning/create-vscode-preview
```
## 全局安装
```sh
# 安装
$ npm install @youngjuning/create-vscode-preview -g
# 使用
$ create-vscode-preview
```
## 开发前必看
1. 务必替换 Icon(默认是Aaron Young早茶馆公众号二维码)
2. 务必修改 README.md(默认的执行 `vsce package` 会报错)
3. 模板配置了 commit 提交规范,提交信息需要符合规范
4. `package.nls.json` 和 `package.nls.zh-cn.json` 是国际化配置文件
## 发布前必看
1. 提升版本执行 `yarn release-it`
2. 发布到商店执行 `yarn publish-it`
## 推荐工具
- [@youngjuning/vscode-utils](https://github.com/youngjuning/youngjuning/tree/main/packages/vscode-utils):vscode 扩展开发相关 utils
- [@youngjuning/vscode-channel](https://github.com/youngjuning/youngjuning/tree/main/packages/vscode-channel):vscode 和 webview 通信的 channel
- [vscode-nls-i18n](https://www.npmjs.com/package/vscode-nls-i18n):支持 vscode i18n 的库
- [axios 简单封装](https://github.com/youngjuning/juejin-me/blob/main/src/utils/axios.ts)
## 相关文档
- [VS Code 扩展开发中文文档](https://liiked.github.io/VS-Code-Extension-Doc-ZH/#/)
- [VS Code API 中文文档](https://vscode-api-cn.js.org/)
- [VS Code 官网文档](https://code.visualstudio.com/docs)
- [vscode 插件发布](http://tny.im/bShcp)