Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 committed Nov 11, 2024
1 parent b8104bc commit 78f1cd0
Show file tree
Hide file tree
Showing 24 changed files with 8,879 additions and 1,412 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy static content to Pages
name: Deploy Pages

on:
push:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Publish"
name: Publish
on:
push:
tags:
Expand All @@ -16,7 +16,7 @@ jobs:
draft: true
generate_release_notes: true

Publish:
Publish-NPM:
needs: Release
runs-on: ubuntu-latest
permissions:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Test
on:
pull_request:
branches:
- main

jobs:
Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml

- name: Install Dependencies
run: pnpm i

- name: Type Check
run: pnpm type:check

- name: Biome Check
run: pnpm biome check .

Test:
needs: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml

- name: Install Dependencies
run: pnpm i

- name: Test
run: pnpm test
10 changes: 5 additions & 5 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* Colors
* -------------------------------------------------------------------------- */
:root {
--vp-c-brand-1: hsl(128, 56%, 38%);
--vp-c-brand-2: hsl(128, 56%, 55%);
--vp-c-brand-3: hsl(128, 56%, 45%);
--vp-c-brand-1: #2b9939;
--vp-c-brand-2: #4ccd5d;
--vp-c-brand-3: #32b344;
--vp-c-brand-soft: rgba(98, 133, 208, 0.16);
}

Expand All @@ -14,8 +14,8 @@

:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, hsl(128, 56%, 38%) 30%, hsl(128, 56%, 60%));
--vp-home-hero-image-background-image: linear-gradient(120deg, hsl(100, 56%, 45%) 30%, hsl(120, 56%, 38%));
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #2b9939 30%, #60d26f);
--vp-home-hero-image-background-image: linear-gradient(120deg, #5db332 30%, #2b972b);

--vp-home-hero-image-filter: blur(40px);
}
Expand Down
14 changes: 10 additions & 4 deletions docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,25 +115,31 @@ DCloud 官方的百度云网盘,速度感人。这里分享一个我的阿里

请使用绝对路径;如果使用相对路径,请注意是**相对于 `src` 目录中的位置**

推荐使用环境变量的方式配置此变量,而不是在 `uniapp-cli.config.json` 中配置。
等同于使用环境变量,也可以在项目中的 `manifest.json` 中配置 `app-plus.distribute.android.keystore`

三种方式都是一样的效果。

优先级是 `manifest.json中的配置` > `uniapp-cli.config.json中的配置` > `环境变量中的配置`

以下 `STORE_PASSWORD`, `KEY_PASSWORD`, `KEY_ALIAS` 是同样的逻辑。

## STORE_PASSWORD

安卓打包签名密钥文件的密码。

推荐使用环境变量的方式配置此变量,而不是在 `uniapp-cli.config.json` 中配置。
等同于使用环境变量,也可以在项目中的 `manifest.json` 中配置 `app-plus.distribute.android.password`

## KEY_PASSWORD

安卓打包签名密钥别名的密码。

推荐使用环境变量的方式配置此变量,而不是在 `uniapp-cli.config.json` 中配置。
等同于使用环境变量,也可以在项目中的 `manifest.json` 中配置 `app-plus.distribute.android.password`

## KEY_ALIAS

安卓打包签名密钥别名。

推荐使用环境变量的方式配置此变量,而不是在 `uniapp-cli.config.json` 中配置。
等同于使用环境变量,也可以在项目中的 `manifest.json` 中配置 `app-plus.distribute.android.aliasname`

## WEIXIN_DEV_TOOL

Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
},
"files": ["bin", "templates", "dist"],
"scripts": {
"dev": "tsc -p tsconfig.json --pretty --declaration --sourceMap --watch",
"dev": "tsc -p tsconfig.build.json --pretty --declaration --sourceMap --watch",
"uniapp": "tsx src/index.ts",
"build": "pnpm build:js && pnpm build:type",
"build:js": "tsc -p tsconfig.json --pretty --removeComments --sourceMap",
"build:type": "tsc -p tsconfig.json --pretty --declaration --emitDeclarationOnly",
"prebuild": "node scripts/prebuild.mjs",
"build:js": "tsc -p tsconfig.build.json --pretty --removeComments --sourceMap",
"build:type": "tsc -p tsconfig.build.json --pretty --declaration --emitDeclarationOnly",
"test": "globstar -- node --import tsx --test tests/**/*.test.ts",
"type:check": "tsc --noEmit",
"check": "biome check --write .",
"prebuild": "node scripts/prebuild.mjs",
"preinstall": "npx -y only-allow pnpm",
"check": "biome check --write src",
"prepare": "husky && echo npx lint-staged > .husky/pre-commit"
},
"repository": {
Expand Down
Loading

0 comments on commit 78f1cd0

Please sign in to comment.