create-eigen-game 0.7.1 → 0.7.3
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/package.json +4 -4
- package/templates/app-overlay/assets/icon/icon.png +0 -0
- package/templates/app-overlay/assets/icon/icon_foreground.png +0 -0
- package/templates/app-overlay/assets/icon/splash.png +0 -0
- package/templates/app-overlay/assets/icon/splash_dark.png +0 -0
- package/templates/app-overlay/lib/main.dart.template +7 -2
- package/templates/project/README.md +10 -0
- package/templates/worker/src/index.ts +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-eigen-game",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Scaffold an EigenInteractive game Worker and Flutter app without cloning the engine repositories.",
|
|
6
6
|
"type": "module",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"vitest": "^4.1.10",
|
|
26
26
|
"wrangler": "^4.110.0",
|
|
27
27
|
"zod": "^4.4.3",
|
|
28
|
-
"@eigeninteractive/
|
|
29
|
-
"@eigeninteractive/
|
|
30
|
-
"@eigeninteractive/testkit": "0.2.
|
|
28
|
+
"@eigeninteractive/rules": "0.2.4",
|
|
29
|
+
"@eigeninteractive/server": "0.2.4",
|
|
30
|
+
"@eigeninteractive/testkit": "0.2.4"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=22"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import 'package:eigen_flutter/eigen_flutter.dart';
|
|
2
2
|
import 'package:firebase_core/firebase_core.dart';
|
|
3
3
|
import 'package:firebase_messaging/firebase_messaging.dart';
|
|
4
|
-
import 'package:flutter/material.dart';
|
|
5
4
|
|
|
6
5
|
import 'firebase_options.dart';
|
|
7
6
|
import 'game/module.dart';
|
|
@@ -15,9 +14,15 @@ Future<void> main() async {
|
|
|
15
14
|
await runEngineApp(
|
|
16
15
|
module: const ExampleGameModule(),
|
|
17
16
|
config: AppConfig(
|
|
17
|
+
// `seedColor` is left at its default, the EigenInteractive teal that the
|
|
18
|
+
// placeholder icon and the worker's own pages are drawn in. To make the
|
|
19
|
+
// app yours, import 'package:flutter/material.dart' and add
|
|
20
|
+
// `seedColor: Colors.deepPurple` (or any Color) — Material 3 rebuilds the
|
|
21
|
+
// whole light and dark scheme from it. Do it alongside the launcher-icon
|
|
22
|
+
// and splash colours in pubspec.yaml, which cannot read Dart:
|
|
23
|
+
// https://eigeninteractive.com/docs/ship-it/branding
|
|
18
24
|
branding: const Branding(
|
|
19
25
|
appName: 'Example Game',
|
|
20
|
-
seedColor: Colors.indigo,
|
|
21
26
|
),
|
|
22
27
|
engine: EngineConfig(
|
|
23
28
|
apiBaseUrl: _apiBaseUrl,
|
|
@@ -99,6 +99,16 @@ Then `firebase login`. Nothing before this point needs either tool — rules,
|
|
|
99
99
|
fixtures and `wrangler dev` all run without them — but the app itself throws
|
|
100
100
|
`Firebase is not configured` on launch until this has run once.
|
|
101
101
|
|
|
102
|
+
The first run asks which Firebase project to use, and can create one. Name it
|
|
103
|
+
up front to skip the prompts, which is also how CI runs this:
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
{{PACKAGE_MANAGER}} run firebase:configure -- --project my-project-id
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Later runs reuse the project recorded in `app/firebase.json`, so there is
|
|
110
|
+
nothing to pass again. Add `--help` for the rest.
|
|
111
|
+
|
|
102
112
|
The command uses FlutterFire's selected Web app to generate both
|
|
103
113
|
`lib/firebase_options.dart` and `web/firebase-config.js`; do not copy Firebase
|
|
104
114
|
identifiers by hand. Put the public VAPID key in `app-config.json` separately —
|
|
@@ -14,4 +14,23 @@ export default createEngine({
|
|
|
14
14
|
appName: "Example Game",
|
|
15
15
|
d1: (env: Env) => env.GAME_DB,
|
|
16
16
|
gameDO: (env: Env) => env.GAME_DO,
|
|
17
|
+
|
|
18
|
+
// Uncomment to turn on the game's public website: the download page grows a
|
|
19
|
+
// tagline, screenshots and structured data, and /terms, /privacy and
|
|
20
|
+
// /delete-account start serving the engine's default documents with your
|
|
21
|
+
// details in them. The app stores require all three, so this is not optional
|
|
22
|
+
// for long — but read what they say before you publish, because you are the
|
|
23
|
+
// one on the hook for it. https://eigeninteractive.com/docs/ship-it/branding
|
|
24
|
+
//
|
|
25
|
+
// site: {
|
|
26
|
+
// tagline: "Race an opponent to the target.",
|
|
27
|
+
// primaryColor: "#006a60",
|
|
28
|
+
// screenshots: ["1.png", "2.png"], // under public/screenshots/
|
|
29
|
+
// operator: {
|
|
30
|
+
// name: "Your Company Ltd",
|
|
31
|
+
// jurisdiction: "India",
|
|
32
|
+
// contactEmail: "hello@example.com",
|
|
33
|
+
// effectiveDate: "1 July 2026",
|
|
34
|
+
// },
|
|
35
|
+
// },
|
|
17
36
|
});
|