-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
72 lines (63 loc) · 1.21 KB
/
Copy pathjustfile
File metadata and controls
72 lines (63 loc) · 1.21 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
SERVICE := 'opire_web'
[private]
alias i := install
[private]
[doc('
List all available commands.
ex:
just
')]
default:
@just --list
[doc('
Install the project dependencies.
ex:
just install
just i
')]
install:
@docker compose run --rm {{SERVICE}} npm install
[doc('
Add a new dependency to the project.
ex:
just add "package"
just add "package1 package2"
just add "-D dev-package"
')]
add deps:
@docker compose run --rm {{SERVICE}} npm install {{deps}}
[doc('
Run the project in development mode.
ex:
just dev
')]
dev:
@docker compose run --rm --service-ports {{SERVICE}} npm run dev
[doc('
Build the project.
ex:
just build
')]
build:
@docker compose run --rm {{SERVICE}} npm run build
[doc('
Run the project from the generated build.
ex:
just start
')]
start:
@docker compose run --rm --service-ports {{SERVICE}} npm run start
[doc('
Run the linter.
ex:
just lint
')]
lint:
@docker compose run --rm {{SERVICE}} npm run lint
[doc('
Run the linter and fix the issues.
ex:
just lint-fix
')]
lint-fix:
@docker compose run --rm {{SERVICE}} npm run lint:fix