chloe463 / dotfiles

0 stars 0 forks source link

List all packages installed via 'yarn global add', and install them during the setup phase. #34

Closed chloe463 closed 1 year ago

chloe463 commented 1 year ago

Why

git-split-diffsgit diff として使用するように gitconfig に設定している。 新しい PC のセットアップ時にインストールを忘れていて .gitconfig をリンクしたあとに git diff を実行するとコマンドが見つからないというエラーになってしまって困る。

What

yarn global list で出てきたパッケージのリストをどこかに持っていて、bootstrap script でインストールできるようにする。

yarn global v1.22.19
info "create-next-app@13.4.4" has binaries:
   - create-next-app
info "git-delete-squashed@1.0.4" has binaries:
   - git-delete-squashed
info "git-split-diffs@0.10.0" has binaries:
   - git-split-diffs
info "npkill@0.11.3" has binaries:
   - npkill
info "yarn-deduplicate@6.0.0" has binaries:
   - yarn-deduplicate
✨  Done in 0.18s.