-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.justfile
39 lines (32 loc) · 965 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
# Cross platform shebang:
shebang := if os() == 'windows' {
'pwsh.exe'
} else {
'/usr/bin/env pwsh'
}
# Set shell for non-Windows OSs:
set shell := ["pwsh", "-CommandWithArgs"]
# Set shell for Windows OSs:
set windows-shell := ["pwsh.exe", "-NoLogo", "-CommandWithArgs"]
[private]
@default:
just --list
# Install node packages required to run scripts - uses pnpm to install the packages
[private]
@install-script-packages:
#!{{shebang}}
pushd .github/scripts
pnpm install
[private]
@install-script-packages-frozen:
#!{{shebang}}
pushd .github/scripts
pnpm install --frozen-lockfile
# Run the script to update solution files
@update-sln-files: install-script-packages-frozen
#!{{shebang}}
./.github/scripts/node_modules/.bin/tsx ./.github/scripts/update-sln-files.mts
# Print all projects metadata
@get-metadata: install-script-packages-frozen
#!{{shebang}}
./.github/scripts/node_modules/.bin/tsx ./.github/scripts/get-metadata.mts