forked from Vatsim-Scandinavia/controlcenter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.mise.toml
More file actions
56 lines (44 loc) · 1.51 KB
/
.mise.toml
File metadata and controls
56 lines (44 loc) · 1.51 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
51
52
53
54
55
56
# # mise config files are hierarchical. mise will find all of the config files
# # in all parent directories and merge them together.
# See https://mise.jdx.dev/ for more information
[env]
NODE_ENV = "development"
# Load Laraval variables from the .env file, or any above, too
mise.file = ["../.env", ".env"]
# Expose vendored PHP scripts to the PATH
mise.path = "./vendor/bin"
[tasks.format]
# TODO: add missing formatting for front-end
description = "Run formatting"
depends = ["deps:composer"]
run = "composer exec pint"
[tasks.dev]
description = "Start frontend and backend development servers"
depends = ["dev:backend", "dev:frontend"]
[tasks.tests]
description = "Run tests"
depends = ["backend:tests"]
[tasks."dev:backend"]
description = "Start the backend development server"
run = "php artisan serve --port {{option(name='port', default='8081')}}"
[tasks."dev:frontend"]
description = "Start the frontend development server"
run = "npm run dev"
depends = ["deps:npm"]
[tasks."deps:npm"]
description = "Install frontend (Node.js) dependencies"
run = "npm install"
[tasks."deps:composer"]
description = "Install backend (PHP) dependencies"
run = "composer install && sleep 0.2 && touch .composer-installed"
sources = ["composer.json"]
outputs = ["composer.lock", ".composer-installed"]
[tasks."backend:tests"]
description = "Run backend tests"
run = "php artisan test"
depends = ["deps:composer"]
[tasks."frontend:build"]
description = "Build frontend assets"
run = "npm run build"
depends = ["deps:npm"]
sources = ["package.json"]