-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
7,039 additions
and
5,006 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,18 +10,18 @@ on: | |
# 任务 | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest #部署运行环境搭建 | ||
runs-on: ubuntu-latest # 部署运行环境搭建 | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@main | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 #github代码拉取深度 | ||
fetch-depth: 0 # github代码拉取深度 | ||
- name: Setup Node 🎬 | ||
uses: actions/setup-node@main | ||
with: | ||
node-version: "lts/*" | ||
- name: Build 🔧 | ||
node-version: 'lts/*' | ||
- name: Build 🔧 | ||
run: | | ||
yarn | ||
yarn run build | ||
|
@@ -51,20 +51,20 @@ jobs: | |
# source-repo: '[email protected]:fxzer/zerdocs.git' | ||
# # 注意替换为你的 Gitee 目标仓库地址 | ||
# destination-repo: '[email protected]:fxzer/zerdocs.git' | ||
|
||
# - name: ✅ Build Gitee Pages #触发Gitee自动部署 | ||
# uses: yanglbme/gitee-pages-action@master | ||
# with: | ||
# # 注意替换为你的 Gitee 用户名 | ||
# gitee-username: fxzer | ||
# # 注意在 Settings->Secrets 配置 GITEE_PASSWORD | ||
# gitee-password: ${{ secrets.GITEE_PASSWORD }} | ||
# # 注意替换为你的 Gitee 仓库 | ||
# # 注意替换为你的 Gitee 仓库 | ||
# # 坑点:https://gitee.com/fxzer/zerdocs -->则填:fxzer/zerdocs,注意仓库名和路径名不一致问题 | ||
# gitee-repo: fxzer/zerdocs | ||
# gitee-repo: fxzer/zerdocs | ||
# # 要部署的分支 | ||
# branch: gh-pages | ||
|
||
# - name: Deploy 🚀 #把打包后的dist文件部署到master分支 | ||
# uses: JamesIves/[email protected] | ||
# with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
// Enable the ESlint flat config support | ||
"eslint.experimental.useFlatConfig": true, | ||
|
||
// Disable the default formatter, use eslint instead | ||
"prettier.enable": false, | ||
"editor.formatOnSave": false, | ||
|
||
// Auto fix | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit", | ||
"source.organizeImports": "never" | ||
}, | ||
|
||
// Silent the stylistic rules in you IDE, but still auto fix them | ||
"eslint.rules.customizations": [ | ||
{ "rule": "style/*", "severity": "off" }, | ||
{ "rule": "format/*", "severity": "off" }, | ||
{ "rule": "*-indent", "severity": "off" }, | ||
{ "rule": "*-spacing", "severity": "off" }, | ||
{ "rule": "*-spaces", "severity": "off" }, | ||
{ "rule": "*-order", "severity": "off" }, | ||
{ "rule": "*-dangle", "severity": "off" }, | ||
{ "rule": "*-newline", "severity": "off" }, | ||
{ "rule": "*quotes", "severity": "off" }, | ||
{ "rule": "*semi", "severity": "off" } | ||
], | ||
|
||
// Enable eslint for all supported languages | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"vue", | ||
"html", | ||
"markdown", | ||
"json", | ||
"jsonc", | ||
"yaml", | ||
"toml" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
const express = require('express'); | ||
const app = express(); | ||
const express = require('express') | ||
|
||
const app = express() | ||
app.use(express.static('../dist')) | ||
module.exports = app; | ||
module.exports = app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.