@playcademy/vite-plugin 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -31
- package/dist/index.js +10934 -24185
- package/dist/lib/logging/utils.d.ts +1 -1
- package/dist/lib/sandbox/server.d.ts +0 -2
- package/dist/types/internal.d.ts +1 -8
- package/dist/types/options.d.ts +3 -35
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This plugin integrates Playcademy's development sandbox and build tools into you
|
|
|
8
8
|
|
|
9
9
|
The Playcademy Vite plugin streamlines game development by providing:
|
|
10
10
|
|
|
11
|
-
- **Development Sandbox**: Automatically starts a local Playcademy API server
|
|
11
|
+
- **Development Sandbox**: Automatically starts a local Playcademy API server during development.
|
|
12
12
|
- **Manifest Generation**: Creates required `playcademy.manifest.json` files for platform deployment
|
|
13
13
|
- **Build Optimization**: Configures Vite settings for optimal Playcademy platform compatibility
|
|
14
14
|
- **Deployment Packaging**: Optionally creates zip archives ready for platform upload
|
|
@@ -87,10 +87,6 @@ export default defineConfig({
|
|
|
87
87
|
seed: true, // Seed database with demo data
|
|
88
88
|
recreateDb: false, // Recreate database on each start
|
|
89
89
|
memoryOnly: false, // Use in-memory database
|
|
90
|
-
realtime: {
|
|
91
|
-
enabled: false, // Disabled by default, enable for multiplayer
|
|
92
|
-
port: 4322, // Defaults to API port + 1
|
|
93
|
-
},
|
|
94
90
|
},
|
|
95
91
|
}),
|
|
96
92
|
],
|
|
@@ -166,14 +162,6 @@ Configuration for the development sandbox server:
|
|
|
166
162
|
| `seed` | `boolean` | `true` | Seed database with demo data |
|
|
167
163
|
| `memoryOnly` | `boolean` | `false` | Use in-memory database (non-persistent) |
|
|
168
164
|
| `databasePath` | `string` | `undefined` | Custom path for database file |
|
|
169
|
-
| `realtime` | `object` | `{ enabled: false }` | Real-time server configuration |
|
|
170
|
-
|
|
171
|
-
#### Realtime Options (`sandbox.realtime`)
|
|
172
|
-
|
|
173
|
-
| Option | Type | Default | Description |
|
|
174
|
-
| --------- | --------- | ------------ | -------------------------------- |
|
|
175
|
-
| `enabled` | `boolean` | `false` | Enable WebSocket server |
|
|
176
|
-
| `port` | `number` | API port + 1 | Custom port for WebSocket server |
|
|
177
165
|
|
|
178
166
|
### Display Options (`display`)
|
|
179
167
|
|
|
@@ -420,24 +408,6 @@ export default defineConfig({
|
|
|
420
408
|
})
|
|
421
409
|
```
|
|
422
410
|
|
|
423
|
-
### Enabling Real-time Features
|
|
424
|
-
|
|
425
|
-
```typescript
|
|
426
|
-
// Enable the real-time server for multiplayer games
|
|
427
|
-
export default defineConfig({
|
|
428
|
-
plugins: [
|
|
429
|
-
playcademy({
|
|
430
|
-
sandbox: {
|
|
431
|
-
realtime: {
|
|
432
|
-
enabled: true,
|
|
433
|
-
port: 4322, // Optional: custom WebSocket port
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
|
-
}),
|
|
437
|
-
],
|
|
438
|
-
})
|
|
439
|
-
```
|
|
440
|
-
|
|
441
411
|
### Testing with Clean Database
|
|
442
412
|
|
|
443
413
|
```typescript
|