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
12 changes: 12 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

# Format Rust code
cargo fmt --check || {
echo "Run 'cargo fmt' to fix formatting"
exit 1
}

# Lint TypeScript (if ts/node_modules exists)
if [ -d "ts/node_modules" ]; then
cd ts && npm run lint || exit 1
fi
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
components: rustfmt

- name: Check Rust format
run: cargo fmt --check

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -35,6 +39,10 @@ jobs:
working-directory: ts
run: npm ci

- name: Lint TypeScript
working-directory: ts
run: npm run lint

- name: Build TypeScript
working-directory: ts
run: npm run build:ts
Expand Down
59 changes: 22 additions & 37 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,50 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Dependencies
node_modules/

# dependencies
/node_modules
/.pnp
.pnp.js
# Rust
/target

# WASM build output
/pkg
/ts/wasm
/ts/wasm-web

# testing
# TypeScript build output
/ts/dist

# Test coverage
/coverage
/ts/coverage

# next.js
/.next/
/out/
# npm pack output
*.tgz

# production
/build
# Environment files
.env
.env*.local

# misc
# OS files
.DS_Store
*.pem

# debug
# Debug logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel

# typescript
# TypeScript cache
*.tsbuildinfo
next-env.d.ts

# Rust
/target
Cargo.lock

# WASM build output
/pkg
/ts/wasm
/ts/wasm-web

# TS build output
/ts/dist
/ts/node_modules
/ts/coverage
Loading