Skip to content

Commit 5b52786

Browse files
committed
feat: 添加快速初始化项目脚本
1 parent 9ea9a32 commit 5b52786

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

init.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ echo "开始初始化模版..."
44
echo "我们需要精简一些项目无关文件,请放心使用"
55
rm -rf 使用说明.md LICENSE README.md
66
echo "开始将模版替换为简洁版本"
7-
cp ./src/views/template.vue ./src/views/home.vue ./src/views/about.vue
8-
echo "模版初始化完成,即将销毁本脚步和模版文件,祝开发顺利!"
9-
rm -rf ./src/views/template.vue init.sh
7+
cp './src/views/template.vue' './src/views/home.vue'
8+
cp './src/views/template.vue' './src/views/about.vue'
9+
echo "模版初始化完成,开始销毁本脚步和模版文件,祝开发顺利!"
10+
rm -rf './src/views/template.vue' init.sh

0 commit comments

Comments
 (0)