docs: update docs [deploy] (#4037)
* docs: update docs [deploy] * chore: update ci * chore: update ci * fix: ci errorpull/48/MERGE
parent
0d46a5471f
commit
36e33ea48a
|
@ -13,8 +13,8 @@ body:
|
||||||
label: Version
|
label: Version
|
||||||
description: What version of our software are you running?
|
description: What version of our software are you running?
|
||||||
options:
|
options:
|
||||||
- Vben Admin Pro
|
- Vben Admin V5
|
||||||
- Vben Admin
|
- Vben Admin V2
|
||||||
default: 0
|
default: 0
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
|
@ -83,8 +83,8 @@ jobs:
|
||||||
node-version: [20]
|
node-version: [20]
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
# - macos-latest
|
- macos-latest
|
||||||
# - windows-latest
|
- windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -109,11 +109,15 @@ jobs:
|
||||||
|
|
||||||
check:
|
check:
|
||||||
name: Check
|
name: Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [20]
|
node-version: [20]
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macos-latest
|
||||||
|
- windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -137,6 +141,7 @@ jobs:
|
||||||
|
|
||||||
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions
|
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions
|
||||||
- name: Check workflow files
|
- name: Check workflow files
|
||||||
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
||||||
./actionlint -color -shellcheck=""
|
./actionlint -color -shellcheck=""
|
||||||
|
|
|
@ -8,7 +8,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
deploy-push-ftp:
|
deploy-push-ftp:
|
||||||
name: Deploy Push Ftp
|
name: Deploy Push Ftp
|
||||||
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') && contains(github.event.head_commit.message, '[deploy]')
|
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
@ -12,6 +12,6 @@ jobs:
|
||||||
update_release_draft:
|
update_release_draft:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: release-drafter/release-drafter@master
|
- uses: release-drafter/release-drafter@v6
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
|
|
@ -53,7 +53,7 @@ jobs:
|
||||||
echo "version=${version}" >> $GITHUB_OUTPUT
|
echo "version=${version}" >> $GITHUB_OUTPUT
|
||||||
echo "major=${major}" >> $GITHUB_OUTPUT
|
echo "major=${major}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: release-drafter/release-drafter@master
|
- uses: release-drafter/release-drafter@v6
|
||||||
with:
|
with:
|
||||||
version: ${{ steps.version.outputs.version }}
|
version: ${{ steps.version.outputs.version }}
|
||||||
publish: true
|
publish: true
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"type": "chrome", // chrome、edge
|
"type": "chrome",
|
||||||
"name": "vben admin dev", // 调试的名称,可以自定义
|
"name": "vben admin antd dev",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"url": "http://localhost:5173",
|
"url": "http://localhost:5555",
|
||||||
"env": { "NODE_ENV": "development" },
|
"env": { "NODE_ENV": "development" },
|
||||||
"sourceMaps": true,
|
"sourceMaps": true,
|
||||||
"webRoot": "${workspaceFolder}/apps/web-antd/src"
|
"webRoot": "${workspaceFolder}/apps/web-antd/src"
|
||||||
|
|
|
@ -163,9 +163,7 @@
|
||||||
"yaml": false
|
"yaml": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"cssVariables.lookupFiles": [
|
"cssVariables.lookupFiles": ["packages/core/base/design/src/**/*.css"],
|
||||||
"packages/@vben-core/shared/design/src/**/*.css"
|
|
||||||
],
|
|
||||||
|
|
||||||
"i18n-ally.localesPaths": [
|
"i18n-ally.localesPaths": [
|
||||||
"packages/locales/src/langs",
|
"packages/locales/src/langs",
|
||||||
|
|
|
@ -24,10 +24,17 @@ VITE_INJECT_APP_LOADING=false
|
||||||
|
|
||||||
- 你可以使用跟`index.html`一样的语法,比如`VITE_APP_TITLE`变量,来获取应用的标题。
|
- 你可以使用跟`index.html`一样的语法,比如`VITE_APP_TITLE`变量,来获取应用的标题。
|
||||||
- 必须保证有一个`id="__app-loading__"`的元素。
|
- 必须保证有一个`id="__app-loading__"`的元素。
|
||||||
|
- 给`id="__app-loading__"`的元素,加一个 `hidden` class。
|
||||||
- 必须保证有一个`style[data-app-loading="inject-css"]`的元素。
|
- 必须保证有一个`style[data-app-loading="inject-css"]`的元素。
|
||||||
|
|
||||||
```html{1,4}
|
```html{1,4}
|
||||||
<style data-app-loading="inject-css">
|
<style data-app-loading="inject-css">
|
||||||
|
#__app-loading__.hidden {
|
||||||
|
pointer-events: none;
|
||||||
|
visibility: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
transition: all 1s ease-out;
|
||||||
|
}
|
||||||
/* ... */
|
/* ... */
|
||||||
</style>
|
</style>
|
||||||
<div id="__app-loading__">
|
<div id="__app-loading__">
|
||||||
|
|
|
@ -162,4 +162,4 @@ git hook 一般结合各种 lint,在 git 提交代码的时候进行代码风
|
||||||
|
|
||||||
### lint-staged
|
### lint-staged
|
||||||
|
|
||||||
用于自动修复提交文件风格问题,其配置文件为 `.lintstagedrc.mjs`,其核心配置放在`internal/lint-configs/lint-staged-config`目录下,可以根据项目需求进行修改。
|
用于自动修复提交文件风格问题,其配置文件为 `.lintstagedrc.mjs`,可以根据项目需求进行修改。
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { findMonorepoRoot } from '@vben/node-utils';
|
||||||
|
|
||||||
import { defineConfig, loadEnv, mergeConfig } from 'vite';
|
import { defineConfig, loadEnv, mergeConfig } from 'vite';
|
||||||
|
|
||||||
import { getDefaultPwaOptions } from '../options';
|
import { defaultImportmapOptions, getDefaultPwaOptions } from '../options';
|
||||||
import { loadApplicationPlugins } from '../plugins';
|
import { loadApplicationPlugins } from '../plugins';
|
||||||
import { loadAndConvertEnv } from '../utils/env';
|
import { loadAndConvertEnv } from '../utils/env';
|
||||||
import { getCommonConfig } from './common';
|
import { getCommonConfig } from './common';
|
||||||
|
@ -31,6 +31,7 @@ function defineApplicationConfig(userConfigPromise?: DefineApplicationOptions) {
|
||||||
extraAppConfig: true,
|
extraAppConfig: true,
|
||||||
html: true,
|
html: true,
|
||||||
i18n: true,
|
i18n: true,
|
||||||
|
importmapOptions: defaultImportmapOptions,
|
||||||
injectAppLoading: true,
|
injectAppLoading: true,
|
||||||
injectMetadata: true,
|
injectMetadata: true,
|
||||||
isBuild,
|
isBuild,
|
||||||
|
|
Loading…
Reference in New Issue