-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
49 lines (38 loc) · 936 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
###
# Simplify development of the Laravel application using Sail!
#
# Prerequisites:
# - docker & compose
# - yq
# - tailspin (optional; but you'll love it!)
#
###
set dotenv-load := true
sail_path := env_var_or_default('SAIL_PATH', './vendor/bin/sail')
tspin := `command -v tspin || true`
# list commands
default:
just --list
# bring Sail up (make sure to run `dev` in a separate shell for Vite)
up:
{{sail_path}} up
# rebuild Sail images without caching
build:
{{sail_path}} build --no-cache
# run PHP commmands on Sail
php *ARGS:
{{sail_path}} php {{ARGS}}
# run composer commmands on Sail
composer *ARGS:
{{sail_path}} composer {{ARGS}}
# run artisan commmands on Sail
artisan *ARGS:
{{sail_path}} artisan {{ARGS}}
# run NPM commmands on Sail
npm *ARGS:
{{sail_path}} npm {{ARGS}}
# run node commmands on Sail
node *ARGS:
{{sail_path}} node {{ARGS}}
# bring up Vite on Sail
dev: (npm "i") (npm "run dev")