This repository was archived by the owner on Jan 31, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
71 lines (61 loc) · 2.06 KB
/
justfile
File metadata and controls
71 lines (61 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# List all available commands
default:
@just --list
# Setup development environment (install all tools and dependencies)
setup:
@echo "🔧 Setting up development environment..."
@echo "📦 Installing Node.js via Volta..."
volta install node@22
@echo "📦 Enabling Corepack for pnpm..."
corepack enable
@echo "📦 Syncing Python dependencies with uv..."
uv sync --all-packages
@echo "📦 Installing Node.js dependencies with pnpm..."
pnpm install
@echo "🪝 Installing pre-commit hooks..."
pre-commit install
@echo "✅ Setup complete! Run 'just --list' to see available commands."
# Sync dependencies for all packages
sync:
@echo "📦 Syncing all package dependencies..."
uv sync --all-packages
# Run linting on all packages
lint:
@echo "🔍 Running linting checks..."
turbo run lint
# Format all Python code
format:
@echo "✨ Formatting Python code..."
turbo run format
# Run tests on all packages
test:
@echo "🧪 Running tests..."
turbo run test
# Build all packages
build:
@echo "🏗️ Building packages..."
turbo run build
# Clean build artifacts and caches
clean:
@echo "🧹 Cleaning build artifacts and caches..."
rm -rf .venv
rm -rf node_modules
rm -rf .turbo
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name "dist" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name "build" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
@echo "✅ Clean complete!"
# Clear Turborepo cache only
cache-clear:
@echo "🧹 Clearing Turborepo cache..."
rm -rf .turbo
@echo "✅ Cache cleared!"
# Generic CLI command (for any CLI functionality)
cli *ARGS:
@uv run --directory apps/cli python -m ai_kit.cli.main {{ARGS}}
# Notebook management commands (convenience wrapper)
notebook *ARGS:
#!/usr/bin/env bash
set -euo pipefail
uv run --directory apps/cli python -m ai_kit.cli.main notebook {{ARGS}} || [ $? -eq 2 ] || exit $?