-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.install.yml
More file actions
65 lines (58 loc) · 2.08 KB
/
Copy pathTaskfile.install.yml
File metadata and controls
65 lines (58 loc) · 2.08 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
version: '3'
tasks:
all:
desc: "Install all dotfiles dependencies and configurations"
cmds:
- task: mkdir
- task: brew
- task: symlink
- task: git-setup
- task: toolchains
- task: osx-defaults
mkdir:
desc: "Create required directories and submodules"
cmds:
- mkdir -p ~/bin ~/dev ~/tmp ~/log ~/lib/go/bin
- git submodule update --init
brew:
desc: "Install Homebrew packages"
cmds:
- sudo softwareupdate --install-rosetta || true
- brew bundle --verbose
symlink:
desc: "Create symlinks"
cmds:
- ./scripts/symlink.sh
git-setup:
desc: "Setup global git configurations"
cmds:
- bash ./scripts/git_config.sh
- gh extension install dlvhdr/gh-dash
toolchains:
desc: "Install toolchains and languages"
# mise 管理の runtime(ruby/node/python)を使うスクリプトは `mise exec --` でラップする。
# 初回構築時は symlink 直後の同一プロセス内で .zprofile が未読込のため `mise activate` が
# 効かず gem/npm が PATH に乗らない。mise バイナリ自体は brew step で導入済み(PATH 上)なので、
# activate/shims に依存せず global ~/.tool-versions を解決できる `mise exec` で確実に通す。
cmds:
# Mise
- ./scripts/mise_install.sh
# Mint
- ./scripts/mint_install.sh
# ruby
- mise exec -- ./scripts/ruby.002.gem_install_pre.sh
- mise exec -- ./scripts/ruby.003.gem_install.sh
- mise exec -- ./scripts/ruby.004.gem_install_post.sh
# node.js
- mise exec -- ./scripts/node.002.npm_install.sh
# python(uv は brew 製だが --system の対象を mise の python に固定するためラップ)
- mise exec -- ./scripts/python.001.uv_install.sh
- mise exec -- ./scripts/python.002.pip_install.sh
# rust
- ./scripts/rust.001.cargo_install.sh
# vim (coc.nvim require npm)
- mise exec -- ./scripts/vim.001.coc.sh
osx-defaults:
desc: "Apply macOS defaults"
cmds:
- ./scripts/osx_defaults.sh