Skip to content

Commit

Permalink
Merge branch 'main' into next-v8-bubbo-bubbo
Browse files Browse the repository at this point in the history
  • Loading branch information
bbazukun123 committed Jan 10, 2024
2 parents 6b4ddc4 + 6744a4f commit 664238a
Show file tree
Hide file tree
Showing 8 changed files with 4,344 additions and 733 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/game-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Game Workflow
on:
workflow_call:
inputs:
game:
required: true
type: string
jobs:
game-build-workflow:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
working-directory: ./${{ inputs.game }}
run: npm ci
- name: Build Game
working-directory: ./${{ inputs.game }}
run: npm run build
- name: Upload Game Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.game }}
path: ./${{ inputs.game }}/dist
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build Games
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
build:
strategy:
matrix:
game: [bubbo-bubbo, puzzling-potions]
uses: ./.github/workflows/game-workflow.yml
with:
game: ${{ matrix.game }}
1 change: 1 addition & 0 deletions bubbo-bubbo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ dist-ssr
*.sw?
public
src/manifest.json
.assetpack
3,645 changes: 3,106 additions & 539 deletions bubbo-bubbo/package-lock.json

Large diffs are not rendered by default.

17 changes: 12 additions & 5 deletions bubbo-bubbo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@
"url": "https://github.com/AshsHub"
},
"scripts": {
"start": "npm run build-assets && vite --open",
"build": "npm run build-assets && tsc && vite build",
"build-assets": "assetpack",
"preview": "npm run build && vite preview --open",
"prestart": "run-s assets",
"start": "vite --open",
"clean": "rimraf dist/* public/* .assetpack/*",
"prebuild": "run-s clean format:check lint assets types",
"build": "vite build",
"assets": "assetpack",
"prepreview": "run-s build",
"preview": "vite preview --open",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"format": "prettier --write src",
"format:check": "prettier --check src",
"types": "tsc"
},
"dependencies": {
Expand All @@ -37,8 +42,10 @@
"@typescript-eslint/parser": "^6.8.0",
"eslint": "^8.52.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"typescript": "^5.2.2",
"vite": "^4.5.0"
"vite": "^5.0.11"
}
}
17 changes: 0 additions & 17 deletions puzzling-potions/cmds.js

This file was deleted.

Loading

0 comments on commit 664238a

Please sign in to comment.