1.5 KiB
1.5 KiB
Suggested Commands
Package Management
# Install dependencies
pnpm install
# Add runtime dependency
pnpm install --save <package>
# Add dev dependency
pnpm install --save-dev <package>
Development Commands
Building
# Build the project (compiles TypeScript)
pnpm build
# Equivalent to: tsbuild --web --allowimplicitany
# Type check without building
tsbuild check ts/**/* --skiplibcheck # For source files
Testing
# Run all tests
pnpm test
# Equivalent to: tstest test/ --web
# Run specific test file
tstest test/test.ts --verbose
# Run test with log file output
tstest test/test.ts --verbose --logfile .nogit/testlogs/test.log
Documentation
# Build documentation
pnpm buildDocs
# Equivalent to: tsdoc
Running TypeScript Files
# tsx is available globally for direct execution
tsx path/to/file.ts
Git Commands
# Check status
git status
# Stage and commit (use small, focused commits)
git add <files>
git commit -m "description"
# Move files (preserves history)
git mv old-path new-path
System Commands (Linux)
ls- List directory contentscd- Change directorygrep- Search textfind- Find filescat- Display file contentskill <PID>- Kill specific process (NEVER usekillall node)
Port Management
# Find process on port
lsof -i :80
lsof -i :443
# Kill specific PID
kill <PID>
# Wait between server restarts
sleep 10
Debug Scripts
- Store debug scripts in
.nogit/debug/ - Run with:
tsx .nogit/debug/script-name.ts