Files
obsidian-typst-pdf-export/.serena/memories/suggested_commands.md
T
AlexKucera ca587f8363 Adds initial Serena setup and memories
Initializes project with core configuration files.

Adds memories for code style conventions, codebase structure,
development guidelines, project overview, suggested commands,
task completion checklist, and tech stack.
These memories will help guide development and ensure consistency.
2025-08-29 17:04:31 +02:00

1.7 KiB

Suggested Commands for Development

Core Development Workflow

# Install dependencies (run once after clone)
npm install

# Start development with file watching and auto-compilation
npm run dev

# Production build with type checking
npm run build

# Version bump and manifest update
npm run version

Build System Details

  • Development: npm run dev runs esbuild with watch mode and inline source maps
  • Production: npm run build includes TypeScript type checking and minification
  • Entry Point: main.ts compiles to main.js

Code Quality Commands

# Type checking (part of build process)
tsc -noEmit -skipLibCheck

# Linting (manual - not in package.json scripts)
npx eslint main.ts

# Format code (if prettier is used)
npx prettier --write main.ts

Darwin-Specific System Commands

# File operations
ls -la                    # List files with details
find . -name "*.ts"       # Find TypeScript files
grep -r "pattern" .       # Search for patterns

# Git operations
git status               # Check working directory status
git add .               # Stage changes
git commit -m "message" # Commit with message

# Process management
ps aux | grep node      # Find Node.js processes
kill -9 <pid>          # Force kill process

Plugin Development Testing

  • Install plugin in Obsidian vault at .obsidian/plugins/obsidian-typst-pdf-export/
  • Use npm run dev for live reloading during development
  • Restart Obsidian or reload plugin after changes

External Tool Management (Future)

# Check Pandoc installation
pandoc --version

# Check Typst installation  
typst --version

# Install via package managers
brew install pandoc typst    # macOS Homebrew