Files
volumen/justfile
T
petrbalvin 95452477d8 chore: add just lint and just fmt recipes
Add standalone lint and fmt (auto-fix) recipes to the justfile so
developers can check style without running the full build. Also
extract upload validation into a private Server helper to keep
the admin routes method under the complexity threshold.
2026-06-26 20:37:21 +02:00

49 lines
1.0 KiB
Makefile

set dotenv-load := false
set positional-arguments := false
default:
@just --list
# Install Ruby dependencies
install:
@echo "→ Installing Ruby dependencies…"
bundle install
# Run the development server
run:
@echo "→ Starting volumen…"
bundle exec exe/volumen serve
# Run the development server against ./posts and ./config.toml
dev:
@echo "→ Starting volumen (dev) on http://localhost:9090 …"
bundle exec exe/volumen serve --config ./config.toml --content ./posts
# Lint the codebase (RuboCop, zero offenses)
lint:
@echo "→ Linting…"
bundle exec rubocop
# Auto-fix lint issues
fmt:
@echo "→ Auto-fixing…"
bundle exec rubocop -A
# Lint and package the gem (must pass with zero warnings)
build:
@echo "→ Linting…"
bundle exec rubocop
@echo "→ Building gem…"
@mkdir -p pkg
gem build volumen.gemspec --output pkg/volumen.gem
# Run the test suite
test:
@echo "→ Running tests…"
bundle exec rake test
# Remove build artifacts
uninstall:
@echo "→ Removing build artifacts…"
rm -rf pkg *.gem