67 lines
974 B
Markdown
67 lines
974 B
Markdown
|
# Suggested Commands for TaskBuffer Development
|
||
|
|
||
|
## Build and Test Commands
|
||
|
```bash
|
||
|
# Build the project
|
||
|
pnpm run build
|
||
|
|
||
|
# Run tests
|
||
|
pnpm test
|
||
|
|
||
|
# Type checking
|
||
|
tsbuild check test/**/* --skiplibcheck
|
||
|
|
||
|
# Build documentation
|
||
|
pnpm run buildDocs
|
||
|
```
|
||
|
|
||
|
## Development Workflow
|
||
|
```bash
|
||
|
# Install dependencies
|
||
|
pnpm install
|
||
|
|
||
|
# Add development dependency
|
||
|
pnpm install --save-dev <package>
|
||
|
|
||
|
# Add production dependency
|
||
|
pnpm add <package>
|
||
|
|
||
|
# Run specific test
|
||
|
tstest test/test.some.ts --verbose
|
||
|
|
||
|
# Run tests with logging
|
||
|
tstest test/test.some.ts --logfile
|
||
|
```
|
||
|
|
||
|
## Git Commands
|
||
|
```bash
|
||
|
# View status
|
||
|
git status
|
||
|
|
||
|
# Stage changes
|
||
|
git add .
|
||
|
|
||
|
# Commit with message
|
||
|
git commit -m "message"
|
||
|
|
||
|
# Use git mv for file operations to preserve history
|
||
|
git mv oldfile newfile
|
||
|
```
|
||
|
|
||
|
## System Commands (Linux)
|
||
|
```bash
|
||
|
# List files
|
||
|
ls -la
|
||
|
|
||
|
# Find files
|
||
|
find . -name "*.ts"
|
||
|
|
||
|
# Search in files
|
||
|
rg "pattern" # Use ripgrep instead of grep
|
||
|
|
||
|
# View file
|
||
|
cat filename
|
||
|
|
||
|
# Create directory
|
||
|
mkdir -p path/to/dir
|
||
|
```
|