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:
22
templates/scripts/ci/backend-test.sh
Executable file
22
templates/scripts/ci/backend-test.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Backend CI test script
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/../../backend"
|
||||
|
||||
echo "Installing dependencies..."
|
||||
uv sync
|
||||
uv pip install --system -e ".[dev]"
|
||||
|
||||
echo "Running linter..."
|
||||
uv run ruff check app tests
|
||||
|
||||
echo "Running type checker..."
|
||||
uv run mypy app
|
||||
|
||||
echo "Running tests with coverage..."
|
||||
uv run pytest --cov=app --cov-report=term-missing --cov-report=xml --cov-fail-under=100
|
||||
|
||||
echo "Backend tests passed!"
|
||||
18
templates/scripts/ci/frontend-test.sh
Executable file
18
templates/scripts/ci/frontend-test.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Frontend CI test script
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/../../frontend"
|
||||
|
||||
echo "Installing dependencies..."
|
||||
npm ci
|
||||
|
||||
echo "Running linter..."
|
||||
npm run lint
|
||||
|
||||
echo "Running tests with coverage..."
|
||||
npm run test:coverage
|
||||
|
||||
echo "Frontend tests passed!"
|
||||
Reference in New Issue
Block a user