create-eigen-game 0.1.0

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.
Files changed (39) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +80 -0
  3. package/dist/chunk-BSJVRXI4.js +127 -0
  4. package/dist/chunk-BSJVRXI4.js.map +1 -0
  5. package/dist/cli.d.ts +1 -0
  6. package/dist/cli.js +58 -0
  7. package/dist/cli.js.map +1 -0
  8. package/dist/index.d.ts +21 -0
  9. package/dist/index.js +9 -0
  10. package/dist/index.js.map +1 -0
  11. package/package.json +48 -0
  12. package/templates/app-overlay/app-config.json.template +6 -0
  13. package/templates/app-overlay/lib/firebase_options.dart.template +14 -0
  14. package/templates/app-overlay/lib/game/README.md +18 -0
  15. package/templates/app-overlay/lib/game/module.dart.template +29 -0
  16. package/templates/app-overlay/lib/game/v1/rules.dart.template +79 -0
  17. package/templates/app-overlay/lib/main.dart.template +39 -0
  18. package/templates/app-overlay/test/game/twin_fixtures_test.dart.template +28 -0
  19. package/templates/app-overlay/web/firebase-config.js.template +4 -0
  20. package/templates/app-overlay/web/firebase-messaging-sw.js.template +15 -0
  21. package/templates/app-overlay/web/flutter_bootstrap.js.template +19 -0
  22. package/templates/app-overlay/web/index.html.template +17 -0
  23. package/templates/project/README.md +104 -0
  24. package/templates/project/package.json +12 -0
  25. package/templates/scaffold/project.gitignore +9 -0
  26. package/templates/scaffold/worker.gitignore +10 -0
  27. package/templates/worker/.dev.vars.example +4 -0
  28. package/templates/worker/README.md +50 -0
  29. package/templates/worker/game-contract.json +109 -0
  30. package/templates/worker/package.json +51 -0
  31. package/templates/worker/public/.gitkeep +1 -0
  32. package/templates/worker/src/index.ts +17 -0
  33. package/templates/worker/src/module/fixtures/v1/counter.json +31 -0
  34. package/templates/worker/src/module/index.ts +4 -0
  35. package/templates/worker/src/module/v1.ts +57 -0
  36. package/templates/worker/test/twin.spec.ts +4 -0
  37. package/templates/worker/tsconfig.json +15 -0
  38. package/templates/worker/worker-configuration.d.ts +14718 -0
  39. package/templates/worker/wrangler.jsonc +40 -0
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "node_modules/wrangler/config-schema.json",
3
+ "name": "example-game",
4
+ "main": "src/index.ts",
5
+ "compatibility_date": "2026-07-27",
6
+ "compatibility_flags": ["nodejs_compat"],
7
+ "upload_source_maps": true,
8
+ "observability": {
9
+ "enabled": true
10
+ },
11
+ "durable_objects": {
12
+ "bindings": [{ "class_name": "GameDO", "name": "GAME_DO" }]
13
+ },
14
+ "exports": {
15
+ "GameDO": { "type": "durable-object", "storage": "sqlite" }
16
+ },
17
+ // Non-secret Worker environment variables, used by local development and
18
+ // uploaded with every deployment.
19
+ "vars": {
20
+ "FIREBASE_PROJECT_ID": "",
21
+ // Trusted automatically for browser API/socket access and used for
22
+ // absolute notification click links.
23
+ "WEB_APP_ORIGIN": "http://localhost:7357"
24
+ },
25
+ "assets": {
26
+ "directory": "./public",
27
+ "binding": "ASSETS",
28
+ "not_found_handling": "single-page-application",
29
+ "run_worker_first": ["/api/*", "/health", "/avatars/*", "/.well-known/*", "/join/*", "/game/*", "/download", "/terms", "/privacy", "/delete-account", "/robots.txt", "/sitemap.xml", "/site.webmanifest"]
30
+ },
31
+ "d1_databases": [
32
+ {
33
+ "binding": "GAME_DB",
34
+ "migrations_dir": "node_modules/@eigeninteractive/server/migrations"
35
+ }
36
+ ],
37
+ "triggers": {
38
+ "crons": ["0 3 * * *"]
39
+ }
40
+ }