Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
pzy_666
front-template-cli
比较版本
b1888e4b1114d7465fa40e20f9e3aa94e83b06eb...4c5e841847dc816c2f68f36d24bff16489fea7c2
F
front-template-cli
项目概览
pzy_666
/
front-template-cli
通知
10
Star
2
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
front-template-cli
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
源分支
4c5e841847dc816c2f68f36d24bff16489fea7c2
选择Git版本
...
目标分支
b1888e4b1114d7465fa40e20f9e3aa94e83b06eb
选择Git版本
比较
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
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
17 deletion
+27
-17
README.md
README.md
+15
-1
package.json
package.json
+1
-1
src/index.ts
src/index.ts
+11
-15
未找到文件。
README.md
浏览文件 @
4c5e8418
...
...
@@ -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
```
### 使用
...
...
package.json
浏览文件 @
4c5e8418
{
"name"
:
"@pzy915/front-template-cli"
,
"version"
:
"0.0.
3
"
,
"version"
:
"0.0.
4
"
,
"description"
:
""
,
"bin"
:
{
"ftc"
:
"./dist/index.es.js"
...
...
src/index.ts
浏览文件 @
4c5e8418
...
...
@@ -22,25 +22,21 @@ interface TemplateInfo {
}
const
repositoryList
:
Record
<
string
,
TemplateInfo
>
=
{
vue3
:
{
downloadUrl
:
'
https://gitcode.net/pzy_666/front-project-template/-/archive/vue3/front-project-template-vue3.zip
'
,
downloadUrl
:
'
https://gitcode.net/pzy_666/front-project-template/-/raw/master/zip/vue3.zip?inline=false
'
,
desc
:
'
vue3项目基础模板
'
,
},
'
vue3-element-plus
'
:
{
downloadUrl
:
'
https://gitcode.net/pzy_666/front-project-template/-/archive/vue3-element-plus/front-project-template-vue3-element-plus.zip
'
,
},
'
vue3-element-plus
'
:
{
downloadUrl
:
'
https://gitcode.net/pzy_666/front-project-template/-/raw/master/zip/vue3-element-plus.zip?inline=false
'
,
desc
:
'
vue3项目基础模板上整合进element-plus
'
,
},
'
vue3-vant
'
:
{
downloadUrl
:
'
https://gitcode.net/pzy_666/front-project-template/-/archive/vue3-vant/front-project-template-vue3-vant.zip
'
,
},
'
vue3-vant
'
:
{
downloadUrl
:
'
https://gitcode.net/pzy_666/front-project-template/-/raw/master/zip/vue3-vant.zip?inline=false
'
,
desc
:
'
vue3项目基础模板上整合进vant(适用移动端项目)
'
,
},
'
vitepress-doc
'
:
{
downloadUrl
:
'
direct:https://gitcode.net/pzy_666/front-project-template/-/archive/vitepress-doc/front-project-template-vitepress-doc.zip
'
,
},
'
vitepress-doc
'
:
{
downloadUrl
:
'
https://gitcode.net/pzy_666/front-project-template/-/raw/master/zip/vitepress-doc.zip?inline=false
'
,
desc
:
'
用于编写文档的vitepress模板
'
,
},
}
}
const
projectTemplateChoices
=
Object
.
keys
(
repositoryList
).
map
(
...
...