Skip to content

Commit

Permalink
feat: init starter without debug tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugustinette committed Sep 3, 2024
1 parent 3fa9979 commit 51a0699
Show file tree
Hide file tree
Showing 14 changed files with 1,317 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Workflow to deploy Fibbo game to GitHub Pages
#
name: Deploy game to GitHub Pages

on:
push:
branches: [main]
paths:
- package.json
- package-lock.json
- vite.config.ts
- tsconfig.json
- index.html
- 'src/**'
- 'public/**'

# Allows to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm # or pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm ci
# Build game
- name: Build 2D playground
run: npm run build
# Upload artifacts
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# starter-3d
A 3d game starter based on Vite

## Usage

- Clone the repository

```bash
npx degit fibbojs/starter-3d my-fibbo-game
```

- Install the dependencies

```bash
cd my-fibbo-game
npm install
```

- Start the development server

```bash
npm run dev
```
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 51a0699

Please sign in to comment.