Skip to content

Commit

Permalink
GBAv3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cattn committed Mar 19, 2024
1 parent a80f772 commit 6ff73f1
Show file tree
Hide file tree
Showing 145 changed files with 8,722 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
31 changes: 31 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Deploy to GitHub Pages

on:
push:
branches: 'main'

jobs:
build_site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

# If you're using pnpm, add this step then change the commands and cache key below to use `pnpm`
# - name: Install pnpm
# uses: pnpm/action-setup@v3
# with:
# version: 8
# - name: Change directory to subdir
# run: cd gba2.0

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm install

- name: build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: |
npm run build
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
# this should match the `pages` option in your adapter-static options
path: 'build/'

deploy:
needs: build_site
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# GBA3.0

The BEST way to play your retro game library.

## Hosting a Library
We offer a tool to automatically generate the required files when hosting a library to be added.

### Prerequisites:

* Download the latest release of the Library Creation Tool from the releases tab [here](https://github.com/Cattn/GBA2.0/releases/latest)
* Have a Retro Game library, organized into folders by console
> You can name the folders whatever you like.
### Run
``py tool.py``
> Ensure this tool is run in the same directory that contains all of your game folders (and only those folders)
## Help
You can get more help at our discord server [here](https://discord.gg/math-study-934807331668099142)

## Credits

Lead Developer - Cattn
> Developed by MSG.
14 changes: 14 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://shadcn-svelte.com/schema.json",
"style": "new-york",
"tailwind": {
"config": "tailwind.config.js",
"css": "src/app.pcss",
"baseColor": "gray"
},
"aliases": {
"components": "$lib/components",
"utils": "$lib/utils"
},
"typescript": true
}
8 changes: 8 additions & 0 deletions library.template/gba/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"games": [
{
"title": "Real Racing",
"file": "real.gba"
}
]
}
1 change: 1 addition & 0 deletions library.template/gba/real.gba
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
real
14 changes: 14 additions & 0 deletions library.template/md.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "mathadventure's library!",
"consoles": [
{
"name": "NES",
"folder": "nes"
},
{
"name": "GBA",
"folder": "gba",
"core": "gba"
}
]
}
Empty file added library.template/nes/fake.nes
Empty file.
8 changes: 8 additions & 0 deletions library.template/nes/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"games": [
{
"title": "Fake Racing",
"file": "fake.nes"
}
]
}
Loading

0 comments on commit 6ff73f1

Please sign in to comment.