Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ labels: bug
2.
3.

## Environment <!-- Replace each comment with the relevant information about your environment. -->

- App Version: <!--(e.g. 0.3.1)-->
- Device: <!--(e.g. Desktop, iPhone)-->
- OS: <!--(e.g. Windows, iOS)-->
- Browser: <!--(e.g. Chrome, Firefox, Safari)-->
## Environment <!-- Insert any relevant information about your environment. -->

- App Version:
<!--(e.g. 0.3.1)-->
- Device:
<!--(e.g. Desktop, iPhone)-->
- OS:
<!--(e.g. Windows, iOS)-->
- Browser:
<!--(e.g. Chrome, Firefox, Safari)-->

## Additional Context <!-- Any other information that's relevant to your issue? -->
17 changes: 17 additions & 0 deletions .github/actions/cache-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Cache dependencies'
description: 'Resolves the managed store path for the package manager and handles caching for future install steps.'

runs:
using: "composite"
steps:
- name: Get store directory
id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(mise exec -- pnpm store path --silent)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
24 changes: 8 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: Deployment

on:
workflow_dispatch:
workflow_run:
workflows: ["Code Quality"]
push:
branches: [master]
types: [completed]

permissions:
contents: read
Expand All @@ -16,32 +14,26 @@ concurrency:
group: production
cancel-in-progress: false

env:
NODE_VERSION: 24.x

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: ${{ (github.event.workflow_run.conclusion == 'success') && (github.repository_owner == 'bsmg') }}
if: ${{ (github.repository_owner == 'bsmg') }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Setup Mise
uses: jdx/mise-action@v4
- name: Load dependency cache
uses: ./.github/actions/cache-dependencies
- name: Prepare
run: yarn prepare
run: mise run setup
- name: Build
run: |
yarn build
vite build
cp ./dist/index.html ./dist/404.html
- name: Setup Pages
uses: actions/configure-pages@v5
Expand Down
27 changes: 8 additions & 19 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,17 @@ name: Code Quality

on:
workflow_dispatch:
push:
branches: [master]
pull_request:

env:
NODE_VERSION: 24.x
YARN_ENABLE_HARDENED_MODE: 0

jobs:
check:
name: Run Quality Checks (Biome)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: 2.4.8
- name: Setup Mise
uses: jdx/mise-action@v4
- name: Run Biome
run: biome ci --diagnostic-level=error .
test:
Expand All @@ -29,14 +21,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
- name: Install dependencies
run: yarn install
- name: Setup Mise
uses: jdx/mise-action@v4
- name: Load dependency cache
uses: ./.github/actions/cache-dependencies
- name: Prepare
run: yarn prepare
run: mise run setup
- name: Run Vitest
run: yarn test run
run: vitest run
34 changes: 8 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# workspace
.env
*.local*
*todo*

# dependencies
/node_modules
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
node_modules

# autogenerated
/.velite
/public/static
.velite
public/static
src/routeTree.gen.ts
styled-system
styled-system-studio

# testing
/coverage
coverage

# production
/dist
dist

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

## Panda
styled-system
styled-system-studio
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["biomejs.biome", "unifiedjs.vscode-mdx", "vitest.explorer"]
"recommendations": ["hverlin.mise-vscode", "biomejs.biome", "unifiedjs.vscode-mdx", "vitest.explorer"]
}
34 changes: 8 additions & 26 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,18 @@
"version": "0.2.0",
"configurations": [
{
"name": "Dev",
"request": "launch",
"type": "node",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "yarn",
"runtimeArgs": ["dev"],
"console": "internalConsole",
"serverReadyAction": {
"action": "openExternally",
"pattern": "Local:\\s*(https?://localhost:[0-9]+)",
"uriFormat": "%s",
"killOnServerStop": true
},
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/**"]
"request": "launch",
"name": "Dev",
"runtimeExecutable": "vite",
"runtimeArgs": ["dev"]
},
{
"name": "Preview",
"request": "launch",
"type": "node",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "yarn",
"runtimeArgs": ["preview"],
"console": "internalConsole",
"serverReadyAction": {
"action": "openExternally",
"pattern": "Local:\\s*(https?://localhost:[0-9]+)",
"uriFormat": "%s",
"killOnServerStop": true
},
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/**"]
"request": "launch",
"name": "Preview",
"runtimeExecutable": "vite",
"runtimeArgs": ["preview"]
}
]
}
35 changes: 2 additions & 33 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,11 @@
{
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts, ${capture}.test.js",
"*.ts": "${capture}.js, ${capture}.test.ts",
"*.jsx": "${capture}.js",
"*.tsx": "${capture}.ts",
".gitignore": "*ignore",
"package.json": "yarn.lock, .yarnrc.yml, biome.json, lefthook.yml",
"README.md": "*.md, AUTHORS*, BACKERS*, CHANGELOG*, CODEOWNERS*, CONTRIBUTING*, CONTRIBUTORS*, CODE_OF_CONDUCT*, GOVERNANCE*, HISTORY*, LICENSE*, MAINTAINERS*, SECURITY*, SPONSORS*, TODO*, *.todo",
"tsconfig.json": "tsconfig.*.json",
"vite.config.ts": "*.config.js, *.config.cjs, *.config.mjs, *.config.ts"
},
"files.eol": "\n",
"files.exclude": {
"**/.git": true,
"**/.yarn/install-state.gz": true,
"**/.yarn/releases": true,
"**/node_modules": true,
"**/yarn.lock": true
},
"editor.codeActionsOnSave": {
"source.removeUnusedImports": "explicit",
"source.action.organizeImports.biome": "explicit",
"source.fixAll.biome": "explicit",
"source.action.organizeImports.biome": "explicit"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[mdx]": {
"editor.defaultFormatter": "unifiedjs.vscode-mdx"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
"source.removeUnusedImports": "explicit"
}
}
12 changes: 2 additions & 10 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,19 @@
{
"label": "Build",
"type": "shell",
"command": "yarn build",
"command": "vite build",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Test",
"type": "shell",
"command": "yarn test",
"command": "vitest run",
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
Expand Down
Loading
Loading