Initial commit: Complete project-bootstrap tool
- Bootstrap script for creating monorepo projects - FastAPI backend templates with uv, ruff, mypy, pytest - React frontend templates with TypeScript, ESLint, Prettier - Docker Compose setup with backend, frontend, and database - 9 development and CI scripts - Gitea Actions CI/CD workflows - Comprehensive documentation (8 files) - 45 template files for complete project structure - Automated verification script (all tests pass) - Based on coding-agent-rules standards
This commit is contained in:
17
templates/scripts/utils/format-all.sh
Executable file
17
templates/scripts/utils/format-all.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Format all code
|
||||
|
||||
set -e
|
||||
|
||||
PROJECT_ROOT="$(dirname "$0")/../.."
|
||||
|
||||
echo "Formatting backend code..."
|
||||
cd "$PROJECT_ROOT/backend"
|
||||
uv run ruff format app tests
|
||||
|
||||
echo "Formatting frontend code..."
|
||||
cd "$PROJECT_ROOT/frontend"
|
||||
npm run format
|
||||
|
||||
echo "All code formatted!"
|
||||
15
templates/scripts/utils/lint-backend.sh
Executable file
15
templates/scripts/utils/lint-backend.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Lint backend code
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/../../backend"
|
||||
|
||||
echo "Running ruff linter..."
|
||||
uv run ruff check app tests
|
||||
|
||||
echo "Running mypy type checker..."
|
||||
uv run mypy app
|
||||
|
||||
echo "Backend linting complete!"
|
||||
12
templates/scripts/utils/lint-frontend.sh
Executable file
12
templates/scripts/utils/lint-frontend.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Lint frontend code
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/../../frontend"
|
||||
|
||||
echo "Running ESLint..."
|
||||
npm run lint
|
||||
|
||||
echo "Frontend linting complete!"
|
||||
Reference in New Issue
Block a user