Skip to content

Commit

Permalink
npm: auto postinstall ammo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
culdo committed Mar 30, 2024
1 parent 60c0384 commit 004f733
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 926 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

# public
public/ammo.*

/test-results/
/playwright-report/
/blob-report/
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ It also use [the postprocessing lib](https://github.com/pmndrs/postprocessing) f

# Development
* Run `npm run dev`

Modules which mainly come from [the three.js example](https://threejs.org/examples/#webgl_loader_mmd_audio) is refactored to Classes and Async/Await styles.
This projects is refactored to using `Next.js`(TypeScript).

Expand All @@ -43,10 +44,6 @@ This projects is refactored to using `Next.js`(TypeScript).
* `video.js` (For audio from YT)
* `playwright` (For testing)

## Upgrade Ammo.js
1. `npm install github:kripken/ammo.js`: Install the latest version of Ammo.js
2. `npm run copyAmmoJS`: Copy the latest `ammo.wasm.js` and `ammo.wasm.wasm` to `public/`

## E2E Testing using Playwright
Run `npm test`

Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "next start",
"lint": "next lint",
"test": "playwright test",
"copyAmmoJS": "ts-node ./scripts/copyAmmoJS.ts"
"postinstall": "ts-node ./scripts/copyAmmoJS.ts"
},
"dependencies": {
"next": "14.2.0-canary.24",
Expand Down
Loading

0 comments on commit 004f733

Please sign in to comment.