-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
44 lines (35 loc) · 1.28 KB
/
Copy pathJustfile
File metadata and controls
44 lines (35 loc) · 1.28 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
# Justfile generated (style similar to `just --init`)
# Minimal recipes to help set up and work with the mimo project.
# Use bash with `-eu` so failures stop early and undefined variables fail.
set shell := ["bash", "-ceu"]
# Path to bun (adjust if you prefer npm/node)
BUN := "bun"
# Default task
default: help
help:
@echo "Available tasks:"
@echo " just setup - install dependencies and run prebuild steps"
@echo " just dev - run the project in dev/test mode"
@echo " just build - build artifacts (as defined by package scripts)"
@echo " just test - run tests"
@echo " just fmt - format test/source files"
# Setup the project for development. This installs dependencies and
# runs the project's prebuild script that stamps the mimo binary.
setup:
@echo "Setting up mimo..."
{{BUN}} install
@echo "Running prebuild steps..."
{{BUN}} run prebuild:mimo
@echo "Setup complete."
dev:
@echo "Running dev task (bun test.js as defined in package.json)..."
{{BUN}} run dev
build:
@echo "Building project (runs build scripts defined in package.json)..."
{{BUN}} run build:mimo
test:
@echo "Running test suite..."
{{BUN}} run test
fmt:
@echo "Formatting test/source files..."
{{BUN}} run format:write