-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
50 lines (38 loc) · 918 Bytes
/
justfile
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
# List all recipes.
default:
just --list --unsorted
# Install dependencies.
[private]
install-deps:
npm install
# Build and watch.
build-dev: install-deps
npx vite --force
# Type-check, compile and minify for production.
build-prod: install-deps
just type-check
just build
# Build only.
build: install-deps
npx vite build
# Run unit tests.
test-unit:
npx vitest run
# Run the TypeScript compiler.
type-check:
npx vue-tsc --build --force
# Check lint issues.
lint:
npx eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore
# Fix all lint issues (if possible).
lint-fix:
npx eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore
# Push to main.
push:
git switch main
git merge develop
git push
git switch -
# Publish site.
publish: push build-prod
surge dist random-picklist.surge.sh