https://github.com/endel/colyseus-webpack
Testing Colyseus compatibility with Webpack
https://github.com/endel/colyseus-webpack
colyseus webpack
Last synced: 2 months ago
JSON representation
Testing Colyseus compatibility with Webpack
- Host: GitHub
- URL: https://github.com/endel/colyseus-webpack
- Owner: endel
- Created: 2021-05-13T19:19:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-13T20:42:23.000Z (over 4 years ago)
- Last Synced: 2025-06-04T10:27:06.528Z (4 months ago)
- Topics: colyseus, webpack
- Language: JavaScript
- Homepage:
- Size: 121 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# colyseus-webpack
This is a sandbox for testing Colyseus + Webpack compatibility. There are a few quirks required. Check out the [`webpack.config.js`](webpack.config.js) file.
```
npm install
npm run webpack
```# Welcome to Colyseus!
This project has been created using [⚔️ `create-colyseus-app`](https://github.com/colyseus/create-colyseus-app/) - an npm init template for kick starting a Colyseus project in TypeScript.
[Documentation](http://docs.colyseus.io/)
## :crossed_swords: Usage
```
npm start
```## Structure
- `index.ts`: main entry point, register an empty room handler and attach [`@colyseus/monitor`](https://github.com/colyseus/colyseus-monitor)
- `src/rooms/MyRoom.ts`: an empty room handler for you to implement your logic
- `src/rooms/schema/MyRoomState.ts`: an empty schema used on your room's state.
- `loadtest/example.ts`: scriptable client for the loadtest tool (see `npm run loadtest`)
- `package.json`:
- `scripts`:
- `npm start`: runs `ts-node-dev index.ts`
- `npm run loadtest`: runs the [`@colyseus/loadtest`](https://github.com/colyseus/colyseus-loadtest/) tool for testing the connection, using the `loadtest/example.ts` script.
- `tsconfig.json`: TypeScript configuration file## License
MIT