Split justfiles

This commit is contained in:
Drew 2025-09-22 01:38:08 -07:00
parent c2c1d1c8ed
commit 3f805430fa
4 changed files with 102 additions and 52 deletions

View file

@ -1,61 +1,70 @@
# Frontend development commands for Captain's Log
set working-directory := '.'
# Show available commands
default:
@just --list
# Start development server with backend API proxy
[working-directory: 'frontend']
dev-frontend:
npm run dev
# Build frontend for production (includes SSR build)
[working-directory: 'frontend']
build-frontend:
npm run build
# Run all tests
[working-directory: 'frontend']
test-frontend:
npm run test:run
# Run tests with coverage reporting
[working-directory: 'frontend']
test-coverage-frontend:
npm run test:coverage
# Run tests in watch mode
[working-directory: 'frontend']
test-watch-frontend:
npm run test
# Run TypeScript type checking
[working-directory: 'frontend']
typecheck-frontend:
npm run typecheck
# Lint code with ESLint
[working-directory: 'frontend']
lint-frontend:
npm run lint
# Fix linting issues automatically
[working-directory: 'frontend']
lint-fix-frontend:
npm run lint:fix
# Format code with Prettier
[working-directory: 'frontend']
fmt-frontend:
npm run format
# Check if code is properly formatted
[working-directory: 'frontend']
fmt-check-frontend:
npm run format:check
# Install dependencies
[working-directory: 'frontend']
install-frontend:
npm install
# Clean build artifacts and dependencies
[working-directory: 'frontend']
clean-frontend:
rm -rf build .react-router node_modules
# Start production server
[working-directory: 'frontend']
start-frontend:
npm run start
# Run full quality checks (lint + format + typecheck + test)
[working-directory: 'frontend']
check-frontend: lint-frontend fmt-check-frontend typecheck-frontend test-frontend