forketyfork_obsidian-food-t.../justfile
Forketyfork 49b6f8337b
chore: migrate from yarn to pnpm and tighten dependabot policy
- Switch package manager to pnpm 10.33.4: regenerate the lockfile, update
  package.json scripts, justfile, release.mjs, README, and CLAUDE.md.
- Use the hoisted node-modules layout via .npmrc to preserve the resolution
  behavior the project relied on under yarn's nodeLinker: node-modules.
- Replace yarn with pnpm in the nix flake's dev shell.
- Update CI workflows to use pnpm/action-setup and pnpm install
  --frozen-lockfile.
- Run dependabot weekly instead of daily and require a 7-day cooldown on
  any update.
2026-05-24 08:02:09 +02:00

77 lines
1.2 KiB
Makefile

# Obsidian Food Tracker - Development Commands
# List all available commands
default:
@just --list
# Clean build artifacts and dependencies
clean:
rm -rf node_modules
rm -rf main.js
rm -rf styles.css
rm -rf coverage
# Install dependencies
install:
pnpm install
# Full production build (typecheck, lint, format, build, test)
build:
pnpm build
# Development build
dev:
pnpm dev
# Development build with watch mode
watch:
pnpm dev:watch
# Production build without tests
prod:
pnpm prod
# Run TypeScript type checking
typecheck:
pnpm typecheck
# Run tests
test:
pnpm test
# Run tests in development mode
test-dev:
pnpm test:dev
# Run tests in watch mode
test-watch:
pnpm test:watch
# Run tests with coverage
coverage:
pnpm coverage
# Run ESLint
lint:
pnpm lint
# Format code with Prettier
format:
pnpm format
# Build CSS from source
build-css:
pnpm build:css
# Bump version
version VERSION:
npm version --no-git-tag-version {{VERSION}}
pnpm run version
# Full release (version, push, tags)
release VERSION:
pnpm release {{VERSION}}
# Tag release (after release command)
tag-release:
pnpm tag-release