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: 14 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
# TokenBar has no third-party Swift dependencies, so only GitHub Actions are tracked.
# Add a "swift" ecosystem entry if a package dependency is ever introduced.
# The macOS app has no third-party Swift dependencies, so only GitHub Actions and the
# website's npm packages are tracked. Add a "swift" ecosystem entry if a package
# dependency is ever introduced.
version: 2
updates:
- package-ecosystem: npm
directory: /apps/web
schedule:
interval: monthly
groups:
web:
patterns: ["*"]
commit-message:
prefix: build
include: scope

- package-ecosystem: github-actions
directory: /
schedule:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Web

on:
pull_request:
paths:
- "apps/web/**"
- ".github/workflows/web.yml"
push:
branches: [main]
paths:
- "apps/web/**"
- ".github/workflows/web.yml"

permissions:
contents: read

concurrency:
group: web-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
check-and-build:
name: Check & Build
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: apps/web
env:
ASTRO_TELEMETRY_DISABLED: "1"
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: apps/web/.nvmrc
cache: npm
cache-dependency-path: apps/web/package-lock.json
- run: npm ci
- run: npm run check
- run: npm run build
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ Every build runs the real providers. To work on the UI without accounts, launch
build with `TOKENBAR_DEMO=1` (listed, unchecked, in the scheme's environment variables).
Demo data is labeled "Demo" and does not exist in Release builds.

The repository also holds the TokenBar website in `apps/web`, a separate static site
with its own [README](apps/web/README.md). The app never needs it to build.

## Architecture

All logic lives in the `TokenBarKit` Swift package: `TokenBarCore` (domain model and
Expand Down
9 changes: 9 additions & 0 deletions apps/web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules/
dist/
.astro/
npm-debug.log*

# Local environment files. The site needs no secrets today; never commit real values.
.env
.env.*
!.env.example
1 change: 1 addition & 0 deletions apps/web/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
40 changes: 40 additions & 0 deletions apps/web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# TokenBar website

The official TokenBar website. Today it is a single placeholder page; the real site is
a future milestone.

## Stack

- [Astro](https://astro.build) with TypeScript (strict), output as a fully static site.
- No UI framework, no CSS framework, no client-side JavaScript.
- No analytics, tracking, external fonts, or third-party scripts.

The site is independent of the macOS app: it does not need Xcode, and the macOS build
and release never touch this folder.

## Requirements

Node.js 22.23.4 or later (CI uses Node 24, see `.nvmrc`) and npm.

## Development

From this folder (`apps/web`):

```sh
npm ci # install exact versions from package-lock.json
npm run dev # dev server at http://localhost:4321
npm run check # type-check .astro and .ts files
npm run build # production build into dist/
npm run preview # serve the built dist/ locally
```

Astro's CLI collects anonymous usage data by default. To opt out on your machine, run
`npx astro telemetry disable` or set `ASTRO_TELEMETRY_DISABLED=1` (CI does the latter).

## Output

`npm run build` writes plain static files (HTML and inlined CSS) to `apps/web/dist/`.
Any static host can serve that folder as-is; no adapter or server runtime is needed.
Hosting is not configured yet.

No environment variables or secrets are needed. Never commit `.env` files.
8 changes: 8 additions & 0 deletions apps/web/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// @ts-check
import { defineConfig } from "astro/config";

// Static output only: `npm run build` writes plain HTML/CSS to dist/, which any static
// host (e.g. Cloudflare Pages) can serve. No adapter, no server runtime.
export default defineConfig({
output: "static",
});
Loading
Loading