...
 
Commits (2)
    https://gitcode.net/pzy_666/front-template-cli/-/commit/54b43e01e8f83fc6a059a409249771cde11851cd fix: 修复模板下载问题 2022-12-06T17:43:56+08:00 free pan sd4015700@126.com https://gitcode.net/pzy_666/front-template-cli/-/commit/4c5e841847dc816c2f68f36d24bff16489fea7c2 refactor: 更新README和版本号 2022-12-06T18:01:20+08:00 free pan sd4015700@126.com
...@@ -6,8 +6,22 @@ ...@@ -6,8 +6,22 @@
### 安装 ### 安装
**npm**
```shell
# 卸载
npm uninstall @pzy915/front-template-cli -g
# 安装
npm install -g @pzy915/front-template-cli
``` ```
npm -g @pzy915/front-template-cli
**pnpm**
```shell
# 卸载
pnpm add @pzy915/front-template-cli -g
# 安装
pnpm remove @pzy915/front-template-cli --global
``` ```
### 使用 ### 使用
......
{ {
"name": "@pzy915/front-template-cli", "name": "@pzy915/front-template-cli",
"version": "0.0.3", "version": "0.0.4",
"description": "", "description": "",
"bin": { "bin": {
"ftc":"./dist/index.es.js" "ftc":"./dist/index.es.js"
......
...@@ -22,25 +22,21 @@ interface TemplateInfo { ...@@ -22,25 +22,21 @@ interface TemplateInfo {
} }
const repositoryList: Record<string, TemplateInfo> = { const repositoryList: Record<string, TemplateInfo> = {
vue3: { vue3: {
downloadUrl: downloadUrl: 'https://gitcode.net/pzy_666/front-project-template/-/raw/master/zip/vue3.zip?inline=false',
'https://gitcode.net/pzy_666/front-project-template/-/archive/vue3/front-project-template-vue3.zip',
desc: 'vue3项目基础模板', desc: 'vue3项目基础模板',
}, },
'vue3-element-plus': { 'vue3-element-plus': {
downloadUrl: downloadUrl: 'https://gitcode.net/pzy_666/front-project-template/-/raw/master/zip/vue3-element-plus.zip?inline=false',
'https://gitcode.net/pzy_666/front-project-template/-/archive/vue3-element-plus/front-project-template-vue3-element-plus.zip',
desc: 'vue3项目基础模板上整合进element-plus', desc: 'vue3项目基础模板上整合进element-plus',
}, },
'vue3-vant': { 'vue3-vant': {
downloadUrl: downloadUrl: 'https://gitcode.net/pzy_666/front-project-template/-/raw/master/zip/vue3-vant.zip?inline=false',
'https://gitcode.net/pzy_666/front-project-template/-/archive/vue3-vant/front-project-template-vue3-vant.zip',
desc: 'vue3项目基础模板上整合进vant(适用移动端项目)', desc: 'vue3项目基础模板上整合进vant(适用移动端项目)',
}, },
'vitepress-doc': { 'vitepress-doc': {
downloadUrl: downloadUrl: 'https://gitcode.net/pzy_666/front-project-template/-/raw/master/zip/vitepress-doc.zip?inline=false',
'direct:https://gitcode.net/pzy_666/front-project-template/-/archive/vitepress-doc/front-project-template-vitepress-doc.zip',
desc: '用于编写文档的vitepress模板', desc: '用于编写文档的vitepress模板',
}, }
} }
const projectTemplateChoices = Object.keys(repositoryList).map( const projectTemplateChoices = Object.keys(repositoryList).map(
......