-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
130 lines (90 loc) · 3.67 KB
/
Copy pathJustfile
File metadata and controls
130 lines (90 loc) · 3.67 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
set shell := ["bash", "-lc"]
set windows-shell := ["cmd.exe", "/c"]
api_dir := "apps/api"
api_just := "apps/api/Justfile"
ui_workspace := "apps/ui"
ui_clean_dirs := "dist coverage results test-results apps/ui/.angular/cache apps/ui/out-tsc apps/ui/coverage apps/ui/results apps/ui/test-results apps/ui/cypress/coverage apps/ui/cypress/downloads"
help:
@just --list
restore:
npm ci
just --justfile {{api_just}} --working-directory {{api_dir}} restore
ui-restore:
npm ci
api-restore:
just --justfile {{api_just}} --working-directory {{api_dir}} restore
install:
npm install
ui-install:
npm install --workspace {{ui_workspace}}
build *args='':
npm --workspace {{ui_workspace}} run build -- {{args}}
just --justfile {{api_just}} --working-directory {{api_dir}} build
ui-build *args='':
npm --workspace {{ui_workspace}} run build -- {{args}}
api-build:
just --justfile {{api_just}} --working-directory {{api_dir}} build
# Remove generated output and local tool caches.
clean:
node -e "const fs=require('fs'); for (const p of process.argv.slice(1)) fs.rmSync(p,{recursive:true,force:true});" {{ui_clean_dirs}}
just --justfile {{api_just}} --working-directory {{api_dir}} clean
ui-clean:
node -e "const fs=require('fs'); for (const p of process.argv.slice(1)) fs.rmSync(p,{recursive:true,force:true});" {{ui_clean_dirs}}
api-clean:
just --justfile {{api_just}} --working-directory {{api_dir}} clean
run *args='':
npm --workspace {{ui_workspace}} run start -- {{args}}
ui-run *args='':
npm --workspace {{ui_workspace}} run start -- {{args}}
api-run:
just --justfile {{api_just}} --working-directory {{api_dir}} run
api-run-windows:
just --justfile {{api_just}} --working-directory {{api_dir}} run-windows
api-db-up:
just --justfile {{api_just}} --working-directory {{api_dir}} db-up
api-db-down:
just --justfile {{api_just}} --working-directory {{api_dir}} db-down
api-db-logs:
just --justfile {{api_just}} --working-directory {{api_dir}} db-logs
open *args='':
npm --workspace {{ui_workspace}} run open -- {{args}}
start-int *args='':
npm --workspace {{ui_workspace}} run start:int -- {{args}}
test *args='':
npm --workspace {{ui_workspace}} run test -- {{args}}
just --justfile {{api_just}} --working-directory {{api_dir}} unit-tests
ui-test *args='':
npm --workspace {{ui_workspace}} run test -- {{args}}
api-test *args='':
just --justfile {{api_just}} --working-directory {{api_dir}} test {{args}}
api-unit-tests *args='':
just --justfile {{api_just}} --working-directory {{api_dir}} unit-tests {{args}}
api-acceptance-tests *args='':
just --justfile {{api_just}} --working-directory {{api_dir}} acceptance-tests {{args}}
test-watch *args='':
npm --workspace {{ui_workspace}} run test:watch -- {{args}}
lint *args='':
npm --workspace {{ui_workspace}} run lint -- {{args}}
lint-quiet *args='':
npm --workspace {{ui_workspace}} run lint-quiet -- {{args}}
format:
just ui-format
just api-format
ui-format:
npm --workspace {{ui_workspace}} run format
api-format:
just --justfile {{api_just}} --working-directory {{api_dir}} format
cypress *args='':
npm --workspace {{ui_workspace}} run cypress -- {{args}}
cypress-dev *args='':
npm --workspace {{ui_workspace}} run cypress:dev -- {{args}}
int *args='':
npm --workspace {{ui_workspace}} run int -- {{args}}
int-ci *args='':
npm --workspace {{ui_workspace}} run int:ci -- {{args}}
int-dev *args='':
npm --workspace {{ui_workspace}} run int:dev -- {{args}}
e2e *args='':
npm --workspace {{ui_workspace}} run e2e -- {{args}}
e2e-dev *args='':
npm --workspace {{ui_workspace}} run e2e:dev -- {{args}}