Skip to content

Commit 967bf62

Browse files
committed
fix: 移除dist目录,新增自动发布github page, 登录页适配
1 parent 34a9635 commit 967bf62

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+54
-1371
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
22
.DS_Store
33
dist-ssr
4-
./dist
54
*.local

deploy-gh.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env sh
2+
3+
# 确保脚本抛出遇到的错误
4+
set -e
5+
6+
# 生成静态文件
7+
yarn build
8+
9+
# 进入生成的文件夹
10+
cd dist
11+
12+
# 如果是发布到自定义域名
13+
# echo 'www.example.com' > CNAME
14+
git init
15+
git add -A
16+
git commit -m 'deploy'
17+
18+
# 如果发布到 https://<USERNAME>.github.io
19+
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
20+
21+
# 如果发布到 https://<USERNAME>.github.io/<REPO>
22+
# git push -f git@github.com:<USERNAME>/<REPO>.git master:gh-pages
23+
24+
# 把上面的 <USERNAME> 换成你自己的 Github 用户名,<REPO> 换成仓库名,比如我这里就是:
25+
git push -f git@github.com:hu-snail/vue3-admin-element-template.git master:gh-pages
26+
27+
cd -

dist/favicon.ico

-4.19 KB
Binary file not shown.

dist/index.html

Lines changed: 0 additions & 37 deletions
This file was deleted.

dist/static/401-legacy.79a18ae5.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/static/401.786f9d1a.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)