create-remix-game 1.1.13 → 1.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/bin/auth.js +2 -0
- package/bin/link.js +2 -0
- package/dist/auth.d.ts +2 -0
- package/dist/auth.js +83 -0
- package/dist/cli.js +130 -0
- package/dist/link.d.ts +2 -0
- package/dist/link.js +110 -0
- package/dist/scaffold.d.ts +2 -0
- package/dist/scaffold.js +4 -1
- package/package.json +5 -2
- package/templates/base/package.json.template +2 -2
- package/templates/base/remix.config.ts.template +34 -0
- package/templates/base/src/main.ts.template +4 -4
- package/templates/base/src/scenes/DemoScene.ts +492 -253
- package/templates/base/vite.config.ts +2 -10
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { remixPlugin } from '@insidethesim/remix-dev/vite'
|
|
2
|
-
import fs from 'fs'
|
|
3
2
|
import { defineConfig } from 'vite'
|
|
4
|
-
|
|
5
|
-
// Read multiplayer setting from package.json
|
|
6
|
-
const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf-8'))
|
|
7
|
-
const isMultiplayer = packageJson.multiplayer === true
|
|
3
|
+
import remixConfig from './remix.config'
|
|
8
4
|
|
|
9
5
|
export default defineConfig({
|
|
10
|
-
plugins: [
|
|
11
|
-
remixPlugin({
|
|
12
|
-
multiplayer: isMultiplayer,
|
|
13
|
-
}),
|
|
14
|
-
],
|
|
6
|
+
plugins: [remixPlugin(remixConfig)],
|
|
15
7
|
})
|