RTSDA-Website/.serena/memories/suggested_commands.md
Benjamin Slingo 91a1bb7a54 Restructure project and update gitignore
- Flatten directory structure by moving files from astro-church-website/ to root
- Remove church-core subdirectory in favor of inline Rust library
- Update .gitignore to properly exclude build artifacts, generated files, and dependencies
- Add environment variables, IDE files, and coverage reports to gitignore
- Include generated CSS files and native bindings in ignore patterns
2025-08-30 08:59:27 -04:00

2 KiB

Suggested Development Commands

Core Development Commands

# Install dependencies
npm install

# Start development server
npm run dev                    # Starts at localhost:4321

# Build for production
npm run build                  # Includes native Rust build
npm run build:native          # Build only Rust bindings
npm run preview               # Preview production build

# Astro CLI commands
npm run astro ...             # Run any Astro CLI command
npm run astro -- --help      # Get Astro CLI help

System Utilities (Darwin/macOS)

# Basic file operations
ls                            # List files
cd <directory>                # Change directory
find . -name "*.ts"          # Find TypeScript files
grep -r "pattern" .          # Search for patterns

# Git operations
git status                    # Check git status
git add .                     # Stage all changes
git commit -m "message"       # Commit changes
git push                      # Push to remote

# Package management
npm install <package>         # Install new package
npm uninstall <package>       # Remove package
npm audit                     # Check for vulnerabilities

Rust/NAPI Commands

# Native bindings
cargo build --release         # Build Rust code
napi build --platform --release  # Build NAPI bindings

# Rust development
cargo check                   # Check Rust code
cargo test                    # Run Rust tests
cargo clippy                  # Rust linter

Testing & Quality (when available)

# Check if these exist in project:
npm run test                  # Run tests (if configured)
npm run lint                  # Lint code (if configured)
npm run format                # Format code (if configured)
npm run typecheck             # TypeScript checking (if configured)

Debugging

# Development debugging
npm run dev -- --verbose     # Verbose development mode
npm run build -- --verbose   # Verbose build

# View logs
tail -f logs/app.log         # If logs exist
console logs via browser dev tools  # For frontend debugging