Skip to content

Commit 080b704

Browse files
authored
Updated Svelte and remove monorepo
PR #2
1 parent 6e6f5cf commit 080b704

166 files changed

Lines changed: 5117 additions & 10493 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Site URL - must match SITE_URL in wrangler.jsonc for the target environment
2+
SITE_URL=https://johnhooks.io

.eslintignore

Lines changed: 0 additions & 18 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/actions/build/action.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/actions/setup/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Setup
2+
description: Setup Node.js, pnpm, and install dependencies
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup pnpm
8+
uses: pnpm/action-setup@v4
9+
10+
- name: Setup Node
11+
uses: actions/setup-node@v4
12+
with:
13+
node-version: "22"
14+
cache: "pnpm"
15+
16+
- name: Install Dependencies
17+
shell: bash
18+
run: pnpm install --frozen-lockfile

.github/workflows/ci.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup
18+
uses: ./.github/actions/setup
19+
20+
- name: Setup Environment
21+
run: cp .env.dist .env
22+
23+
- name: Build
24+
run: pnpm build
25+
26+
- name: Upload Build Artifacts
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: build-output
30+
path: |
31+
.svelte-kit
32+
node_modules
33+
retention-days: 1
34+
35+
lint:
36+
needs: build
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
43+
- name: Setup
44+
uses: ./.github/actions/setup
45+
46+
- name: Download Build Artifacts
47+
uses: actions/download-artifact@v4
48+
with:
49+
name: build-output
50+
51+
- name: Run Lint
52+
run: pnpm lint
53+
54+
check:
55+
needs: build
56+
runs-on: ubuntu-latest
57+
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@v4
61+
62+
- name: Setup
63+
uses: ./.github/actions/setup
64+
65+
- name: Download Build Artifacts
66+
uses: actions/download-artifact@v4
67+
with:
68+
name: build-output
69+
70+
- name: Run Type Check
71+
run: pnpm check
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy Production
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: "Branch or tag to deploy (leave empty for default branch)"
8+
required: false
9+
type: string
10+
default: ""
11+
12+
jobs:
13+
deploy:
14+
uses: ./.github/workflows/wrangler-deploy.yml
15+
with:
16+
environment: production
17+
site_url: https://johnhooks.io
18+
ref: ${{ inputs.ref }}
19+
secrets:
20+
cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
21+
cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy Staging
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: "Branch or tag to deploy (leave empty for default branch)"
8+
required: false
9+
type: string
10+
default: ""
11+
12+
jobs:
13+
deploy:
14+
uses: ./.github/workflows/wrangler-deploy.yml
15+
with:
16+
environment: staging
17+
site_url: https://website-staging.johnhooks.workers.dev
18+
ref: ${{ inputs.ref }}
19+
secrets:
20+
cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
21+
cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

.github/workflows/deploy.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/pipeline.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)