Skip to content

Commit

Permalink
docs: fixed demo not getting copied to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AlansCodeLog committed Oct 8, 2023
1 parent d38e8af commit 89aa6dd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ jobs:

- run: pnpm test

- run: pnpm doc

- run: pnpm install --frozen-lockfile
working-directory: demo

- run: pnpm demo:build

- run: pnpm doc

- name: Documentation
if: "env.ENABLE_DOCS == 'true'"
uses: crazy-max/ghaction-github-pages@v2
Expand Down
8 changes: 6 additions & 2 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"debug": "ts-node -r tsconfig-paths/register -T --esm",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"build": "npm run build:parent && vite build && cp -r dist ../docs/demo",
"build:dev": "vite build --mode development",
"build:watch": "vite build --watch --mode production",
"build:parent": "npm run build --prefix ../",
"prepare": " npm run build"
},
"devDependencies": {
"typescript": "^5.0.2",
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
"doc:serve": "http-server docs --port=5001",
"doc:dev": "concurrently \"npm run doc:watch\" \"npm run doc:serve\"",
"doc:check-invalid": "typedoc --options typedoc.config.cjs --listInvalidSymbolLinks",
"demo:dev": "cd demo && concurrently \"vite\" \"npm run build:watch\"",
"demo:build": "cd demo && npm run build",
"actions:debug": "act -r -v -j build",
"gen:exports": "indexit update -o '${path}.js' -i **/*.d.ts",
"prepare": "husky install && npm run build"
Expand Down

0 comments on commit 89aa6dd

Please sign in to comment.