From 0730dfb44a058625771ab3b9af8247c588f30ceb Mon Sep 17 00:00:00 2001 From: ntnyq Date: Tue, 17 Dec 2024 02:37:45 +0800 Subject: [PATCH] ci: rename build script --- .github/workflows/ci.yml | 2 +- .gitignore | 1 + package.json | 5 +++-- vercel.json | 6 ++++++ 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 vercel.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0263c78..b7eb453 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,5 +23,5 @@ jobs: - run: pnpm run lint - run: pnpm run typecheck - run: pnpm run build - - run: pnpm run build:docs + - run: pnpm run docs:build - run: pnpm run test diff --git a/.gitignore b/.gitignore index dbe5184..769cab3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ node_modules *.log* *.local + dist # Typescript build info diff --git a/package.json b/package.json index bb4387c..77cb220 100644 --- a/package.json +++ b/package.json @@ -38,13 +38,14 @@ ], "scripts": { "build": "run-s clean build:lib copy", - "build:docs": "pnpm -C docs run build", "build:lib": "tsc", + "build:site": "run-s build docs:build", "clean": "rimraf dist *.tsbuildinfo", "copy": "copyfiles -a -u 1 -V src/**/*.css dist", "dev": "run-s clean dev:lib", - "dev:docs": "pnpm -C docs run dev", "dev:lib": "tsc-watch --onSuccess \"npm run copy\"", + "docs:build": "pnpm -C docs run build", + "docs:dev": "pnpm -C docs run dev", "lint": "eslint .", "prepare": "husky", "release": "run-s release:check release:publish", diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..c6b18ea --- /dev/null +++ b/vercel.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://openapi.vercel.sh/vercel.json", + "installCommand": "pnpm install --frozen-lockfile", + "buildCommand": "pnpm run build:site", + "outputDirectory": "docs/.vuepress/dist" +}