-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
44 lines (35 loc) · 1.18 KB
/
justfile
File metadata and controls
44 lines (35 loc) · 1.18 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
#!/usr/bin/env just
DIST := "./dist"
DIST_SCHEMES := DIST + "/schemes"
DIST_MAC_TERMINAL := DIST + "/mac_terminal"
DIST_VSCODE := "."
DIST_OPENCODE := DIST + "/opencode"
DIST_VIM := DIST + "/vim"
OPENCODE_THEMES := "$HOME/.config/opencode/themes"
VIM_THEMES := "$HOME/.vim/colors"
default:
@just --list
build:
@uv run "./src/generate_schemes.py"
@uv run "./src/iterm2terminal.py" "{{ DIST_SCHEMES }}" "{{ DIST_MAC_TERMINAL }}"
test:
@npx colortest
install-vscode: build
@npx @vscode/vsce package --out "{{ DIST_VSCODE }}/tropical-time.vsix"
@code --install-extension $(realpath {{ DIST_VSCODE }}/tropical-time.vsix)
@echo
@echo "🌴 Please reload VSCode to apply the theme"
install-opencode: build
@mkdir -p {{ OPENCODE_THEMES }}
@rsync -av {{ DIST_OPENCODE }}/ {{ OPENCODE_THEMES }}/
@echo
@echo "🌴 Please set theme in OpenCode settings"
install-vim: build
@mkdir -p {{ VIM_THEMES }}
@rsync -av {{ DIST_VIM }}/*.vim {{ VIM_THEMES }}/
@echo
@echo "🌴 Please set vim theme in ~/.vimrc"
@echo ":set termguicolors"
@echo ":colorscheme Tropical-<Variant>"
publish-vscode: build
@npx @vscode/vsce publish minor && git push