Skip to content

Commit

Permalink
ci: rename build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq committed Dec 16, 2024
1 parent b42c21a commit 0730dfb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_modules
*.log*
*.local

dist

# Typescript build info
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 0730dfb

Please sign in to comment.