Skip to content

Commit 1cced09

Browse files
authored
feat: new site (#2)
1 parent 6277b8c commit 1cced09

110 files changed

Lines changed: 7759 additions & 282 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.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CLOUDFLARE_API_TOKEN=
2+
CLOUDFLARE_ACCOUNT_ID=
3+
GH_PAT=

.github/workflows/deploy.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: deploy
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
7+
jobs:
8+
deploy:
9+
name: Deploy
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v4
17+
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
cache: pnpm
23+
24+
- name: Install dependencies
25+
run: pnpm install --frozen-lockfile
26+
27+
- name: Generate logos
28+
run: pnpm gen:logos
29+
30+
- name: Build
31+
run: pnpm build
32+
33+
- name: Deploy worker
34+
run: pnpm wrangler deploy
35+
env:
36+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
37+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
38+
39+
- name: Sync KV
40+
run: WRANGLER_REMOTE=true pnpm gen:data
41+
continue-on-error: true
42+
env:
43+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
44+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
45+
GH_PAT: ${{ secrets.GH_TOKEN }}

.gitignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
node_modules
1+
node_modules
2+
.DS_Store
3+
.cache
4+
.env
5+
dist
6+
.output
7+
.wrangler
8+
.vinxi
9+
tasks/
10+
worker-configuration.d.ts
11+
src/routeTree.gen.ts

AGENTS.md

Lines changed: 208 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# wevm.dev
2+
3+
Source for [wevm.dev](https://wevm.dev).
4+
5+
## Configuration
6+
7+
Site config (curated lists, sponsors, team) lives in
8+
[`wevm.config.ts`](./wevm.config.ts).
9+
10+
### Adding a sponsor logo
11+
12+
1. Drop the brand's wordmark SVG at `public/logos/raw/<github-login>.svg`
13+
(lowercase, matches the GitHub org/user login exactly).
14+
2. _Optional_: tune the optical scale via `logoOverrides` if the
15+
wordmark reads visually too heavy or too light at the default 1×.
16+
3. Run `pnpm gen:logos` to regenerate `public/logos/mono/` and commit
17+
both the source and the generated output.
18+
19+
## Development
20+
21+
```sh
22+
pnpm install # install dependencies
23+
pnpm gen # seed local KV + regenerate logos
24+
pnpm dev # run dev server
25+
```
26+
27+
## Scripts
28+
29+
```sh
30+
pnpm dev # run dev server
31+
pnpm build # run production build
32+
pnpm preview # preview the production build
33+
pnpm deploy # deploy
34+
35+
pnpm gen # seed local kv and gen logos
36+
pnpm gen:data # seed local (or WRANGLER_REMOTE=true) KV with stars/downloads/sponsors
37+
pnpm gen:logos # generate public/logos/mono/ from public/logos/
38+
pnpm gen:types # genereate worker-configuration.d.ts
39+
40+
pnpm check # check code
41+
pnpm check:types # check types
42+
```

bun.lockb

-16.8 KB
Binary file not shown.

index.html

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

0 commit comments

Comments
 (0)