Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

permissions:
# Required to checkout the code
Expand All @@ -18,6 +18,7 @@ jobs:
strategy:
matrix:
node-version: [24.x]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -58,3 +59,8 @@ jobs:
npm run build
npm run lint
working-directory: ./packages/multiplayer-template

- name: Start dev servers and verify startup
timeout-minutes: 1
run: npx concurrently --kill-others --success first "npm run dev" "npx wait-on http://localhost:8050/api/game/health --timeout 20000"
working-directory: ./packages/multiplayer-template
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import BasePlayer from '@template/server/Base/Player'
import { Vector3 } from 'three'
import IdleState from '../Player/IdleState'
import WalkingState from '../Player/WalkingState'
import PlayerLabel from '../ui/PlayerLabel'
import PlayerGraphicsComponent from './Player/PlayerGraphicsComponent'
import PlayerLabel from './Player/PlayerLabel'

export default class Character extends BasePlayer {
graphicalComponent: PlayerGraphicsComponent
Expand Down
36 changes: 31 additions & 5 deletions packages/multiplayer-template/package-lock.json

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

5 changes: 3 additions & 2 deletions packages/multiplayer-template/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"main": "src/index.ts",
"scripts": {
"start": "LOG_LEVEL=debug node ./dist/index.js",
"start": "cross-env LOG_LEVEL=debug node ./dist/index.js",
"dev": "tsup --watch --onSuccess \"npm run start\"",
"build": "tsup",
"typecheck": "tsc --noEmit"
Expand All @@ -19,6 +19,7 @@
},
"devDependencies": {
"@types/express": "^5.0.3",
"@types/node": "^24.0.0"
"@types/node": "^24.0.0",
"cross-env": "^10.1.0"
}
}
Loading