Skip to content

Commit

Permalink
update: Mon 22 Jul 2024 12:40:47 CEST
Browse files Browse the repository at this point in the history
  • Loading branch information
cophilot committed Jul 22, 2024
1 parent bad2f34 commit 92baf84
Show file tree
Hide file tree
Showing 42 changed files with 2,006 additions and 1,004 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy App to GitHub Pages

on:
push:
branches:
- master
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Build React app
run: pnpm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: board-score-hub.philipp-bonin.com
6 changes: 6 additions & 0 deletions .templates/game/$$name.k$$/View.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import BoardScorePage from '../../api/BoardScorePage/BoardScorePage';
import getDefinition from './definition';

export default function $$name.p$$View() {
return <BoardScorePage definition={getDefinition()} />;
}
Empty file.
21 changes: 21 additions & 0 deletions .templates/game/$$name.k$$/definition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export default function getDefinition() {
return {
title: '$$name$$',
//bgColor: '#fff',
//fontColor: '#000',
//primaryColor: '#fff',
//secondaryColor: '#000',
playerSizes: [1, 2, 3, 4],
winMode: 'most',
rows: [
{
name: 'Row1',
},

{
name: 'Row2',
icon: 'src/games/$$name.k$$/assets/test.png',
},
],
};
}
16 changes: 16 additions & 0 deletions .templates/game/.templify
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#?:

# This file is used by templify to generate new files from this template.

# You can use the following variables in this file:

# description: The description of the template

# path: The path where the file should be generated based on the project root (you can also use placeholders here)

# var: Define a variable placeholder that can be used in the file content

# IMPORTANT: Lines starting with a . are auto generated and should not be changed.

description:
path:src/games
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<link
href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
rel="stylesheet" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>BoardScoreHub</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.25.1",
"sass": "^1.77.8"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 92baf84

Please sign in to comment.