-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add panic hook * settler movement restriction * remote server * publish client * publish client * publish client * publish client * add dependabot.yml * fmt * publish client * publish client * fix end turn * publish client * publish client * publish client * publish client
- Loading branch information
1 parent
6d112e5
commit bba2d10
Showing
28 changed files
with
209 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
- package-ecosystem: cargo | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,18 @@ jobs: | |
- uses: jetli/[email protected] | ||
with: | ||
version: 'latest' | ||
# see https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions | ||
- run: ./scripts/publish-server.sh ${{ github.event.release.tag_name }} | ||
- uses: jetli/[email protected] | ||
with: | ||
version: 'latest' | ||
- name: Publish Server | ||
# see https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions | ||
run: | | ||
./scripts/publish-server.sh ${{ github.event.release.tag_name }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Publish Client | ||
# rustup target add wasm32-unknown-unknown # automatically done by wasm-pack | ||
run: | | ||
./scripts/publish-client.sh ${{ github.event.release.tag_name }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,20 +9,10 @@ | |
- `cd client` | ||
- `cargo run`. | ||
|
||
### Run local web client | ||
### Run remote with boardgamers-mono web client locally | ||
|
||
- `cd client` | ||
- `./build-local.sh local_client` | ||
- `cd dist` | ||
- `basic-http-server .` | ||
- open `http://localhost:4000` in a browser. | ||
|
||
### Run remote web client locally | ||
|
||
- `cd client` | ||
- `./build-remote.sh` | ||
- `cd remote_client/dist` | ||
- `basic-http-server .` | ||
- `./scripts/build-remote-client.sh` | ||
- `cd client/js/dist && basic-http-server .` | ||
- `google-chrome --disable-web-security --user-data-dir=/tmp http://localhost:8612` | ||
|
||
### Server wrapper | ||
|
@@ -45,8 +35,8 @@ | |
- `docker run -d -p 27017:27017 mongo:4.4` | ||
- `cd apps/api && pnpm seed && echo cron=1 > .env` | ||
- `pnpm dev --filter @bgs/api --filter @bgs/game-server --filter @bgs/web --filter @bgs/admin` | ||
- admin: http://localhost:3000 ([email protected]/password) | ||
- user: http://localhost:8612/ ([email protected]/password) | ||
- admin: http://localhost:3000 ([email protected] / password) | ||
- user: http://localhost:8612/ ([email protected] / password) | ||
|
||
old | ||
|
||
|
@@ -102,7 +92,7 @@ diff --git a/apps/api/app/resources.ts b/apps/api/app/resources.ts | |
const viewer: ViewerInfo = | ||
gameInfo?.viewer?.alternate?.url && ctx.query.alternate === "1" ? gameInfo?.viewer.alternate : gameInfo.viewer; | ||
- const viewerUrl = ctx.query.customViewerUrl || viewer.url; | ||
+ const viewerUrl = "/home/gregor/source/clash/client/remote_client/index.js"; | ||
+ const viewerUrl = "http://127.0.0.1:4000/client.js"; | ||
|
||
ctx.body = ` | ||
<html> | ||
|
@@ -148,7 +138,7 @@ GameInfo.json (for now) | |
"preferences": [], | ||
"rules": "", | ||
"viewer": { | ||
"url": "http://localhost:4000/client.js", | ||
"url": "//cdn.jsdelivr.net/npm/@boardgamers/[email protected]/client.js", | ||
"topLevelVariable": "clash", | ||
"dependencies": { | ||
"scripts": [], | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
client/remote_client/package-lock.json → client/js/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "@boardgamers/clash-client", | ||
"description": "A client for Clash of Cultures", | ||
"version": "0.1.0", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:boardgamers/clash.git" | ||
}, | ||
"files": [ | ||
"assets/", | ||
"client.js", | ||
"client.wasm" | ||
], | ||
"main": "index.js", | ||
"homepage": "https://www.boardgamers.space/", | ||
"scripts": { | ||
"build": "webpack" | ||
}, | ||
"devDependencies": { | ||
"webpack": "^5.94.0", | ||
"webpack-cli": "^5.1.4" | ||
}, | ||
"dependencies": { | ||
"events": "^3.3.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.