Create directory structure for frontend with requisite justfile changes. (#6)

Reviewed-on: #6
Co-authored-by: Drew Galbraith <drew@tiramisu.one>
Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
Drew 2025-09-22 08:58:25 +00:00 committed by Drew
parent 6bf4a037f3
commit 7d2b7fc90c
27 changed files with 8806 additions and 46 deletions

70
frontend/justfile Normal file
View file

@ -0,0 +1,70 @@
# Frontend development commands for Captain's Log
# 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