Skip to content

Commit

Permalink
fix(patch): fix actions ci build docs and refix external gl-matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
sakitam-fdd committed Jan 28, 2023
1 parent 6fcd529 commit 5ca130c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ jobs:
${{ runner.os }}-
- run: npm i -g pnpm
- run: pnpm i
- run: cd documents
- run: pnpm run api
- run: pnpm run build
- run: pnpm run build:docs

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"build": "rollup --config rollup.config.ts --configPlugin esbuild --environment NODE_ENV:production",
"build:minify": "rollup --config rollup.config.ts --configPlugin esbuild --environment MINIFY,NODE_ENV:production",
"build:analyze": "cross-env BUILD_ANALYZER=true pnpm run build",
"build:docs": "cd documents && pnpm run api && pnpm run build",
"lint": "eslint src --ext js,jsx,ts,tsx",
"prepublishOnly": "npm run build && npm run build:minify",
"test": "npm run build && npm run test-only",
Expand Down
6 changes: 6 additions & 0 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ const getFileName = (name) => {

const external = [
...Object.keys(pkg.dependencies),
'gl-matrix/mat4',
'gl-matrix/mat3',
'gl-matrix/quat',
'gl-matrix/vec2',
'gl-matrix/vec3',
'gl-matrix/vec4',
];

const plugins = [
Expand Down

0 comments on commit 5ca130c

Please sign in to comment.