Skip to content

Commit adfc2fa

Browse files
authored
Merge pull request #1 from chayprabs/cursor/csv-shape-build
CSVShape: sync branch work into main
2 parents 9833f9b + 3cf7851 commit adfc2fa

90 files changed

Lines changed: 21685 additions & 0 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.

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*.{ts,tsx,js,cjs,mjs,json,md,yml,yaml,css,html}]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 2
9+
trim_trailing_whitespace = true

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- cursor/**
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: pnpm/action-setup@v4
16+
with:
17+
version: 10.33.1
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: pnpm
22+
- run: pnpm install --frozen-lockfile=false
23+
- run: pnpm lint
24+
- run: pnpm typecheck
25+
- run: pnpm test
26+
- run: pnpm build

.github/workflows/pages.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- cursor/**
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
id-token: write
13+
pages: write
14+
15+
concurrency:
16+
group: pages
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: pnpm/action-setup@v4
25+
with:
26+
version: 10.33.1
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
30+
cache: pnpm
31+
- run: pnpm install --frozen-lockfile=false
32+
- run: pnpm --filter @csvshape/web build
33+
env:
34+
VITE_APP_BASE_PATH: /${{ github.event.repository.name }}/
35+
VITE_PUBLIC_SITE_ORIGIN: https://${{ github.repository_owner }}.github.io
36+
- uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: packages/web/dist
39+
40+
deploy:
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
needs: build
45+
runs-on: ubuntu-latest
46+
steps:
47+
- id: deployment
48+
uses: actions/deploy-pages@v4

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: pnpm/action-setup@v4
12+
with:
13+
version: 10.33.1
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 22
17+
cache: pnpm
18+
- run: pnpm install --frozen-lockfile=false
19+
- run: pnpm build

.github/workflows/worker-image.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Worker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- cursor/**
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- id: meta
20+
uses: docker/metadata-action@v5
21+
with:
22+
images: ghcr.io/${{ github.repository_owner }}/csvshape-worker
23+
tags: |
24+
type=ref,event=branch
25+
type=sha,prefix=sha-
26+
type=raw,value=latest,enable={{is_default_branch}}
27+
- uses: docker/login-action@v3
28+
with:
29+
registry: ghcr.io
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
- uses: docker/build-push-action@v6
33+
with:
34+
context: .
35+
file: apps/worker/Dockerfile
36+
labels: ${{ steps.meta.outputs.labels }}
37+
push: true
38+
tags: ${{ steps.meta.outputs.tags }}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ CODEX_GOLD_PROMPTS.md
1010
CODEX_GOAL_PROMPTS.md
1111
QUALIFYING_CRITERIA.md
1212
[0-3][0-9]_*.md
13+
14+
# Workspace artifacts
15+
node_modules
16+
dist
17+
coverage
18+
.turbo
19+
.vite

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
coverage
4+
pnpm-lock.yaml

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all"
5+
}

CODE_OF_CONDUCT.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Code of Conduct
2+
3+
This project follows the Contributor Covenant 2.1.
4+
5+
## Our Pledge
6+
7+
We will foster an open, respectful, and harassment-free community.
8+
9+
## Standards
10+
11+
- Be respectful in communication.
12+
- Assume good intent but prioritize clarity.
13+
- Focus critique on the work, not the person.
14+
15+
## Enforcement
16+
17+
Report incidents to the maintainers via the contact path listed in `SECURITY.md`.

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Contributing
2+
3+
## Setup
4+
5+
1. Install Node 22+ and pnpm 10+.
6+
2. Run `pnpm install`.
7+
3. Start the web app with `pnpm dev`.
8+
4. Start the worker with `pnpm dev:worker` or `docker compose up --build`.
9+
10+
## Expectations
11+
12+
- Use conventional commits.
13+
- Run `pnpm lint`, `pnpm typecheck`, `pnpm test`, and `pnpm build` before opening a PR.
14+
- Keep browser-side file processing local unless the worker path is explicitly selected.

0 commit comments

Comments
 (0)