-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (37 loc) · 1.08 KB
/
Copy pathjustfile
File metadata and controls
50 lines (37 loc) · 1.08 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
# Command runner for the harustream single Next.js app.
# Requires `just` (brew install just).
# --- configuration ----------------------------------------------------------
npm := env_var_or_default('NPM', 'pnpm')
port := env_var_or_default('PORT', '3000')
# --- help -------------------------------------------------------------------
default: help
help:
@just --list --unsorted
# --- dependencies -----------------------------------------------------------
setup:
{{npm}} install
# --- development ------------------------------------------------------------
dev:
set -a
source .env
set +a
{{npm}} run dev
# --- production build & serve ------------------------------------------------
build:
{{npm}} run build
start:
{{npm}} run start -- --port={{port}}
# --- quality gates ------------------------------------------------------------
typecheck:
{{npm}} run typecheck
lint:
{{npm}} run lint
lint-fix:
{{npm}} run lint:fix
format:
{{npm}} run format
format-check:
npx biome format .
check:
{{npm}} run typecheck
{{npm}} run lint