From 0db01ec7b187c784f4b2601e76df0c3cbab9e259 Mon Sep 17 00:00:00 2001 From: ryoya ito <30540303+ry-itto@users.noreply.github.com> Date: Mon, 1 Sep 2025 15:15:38 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20mise=E3=81=A7=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=82=B9=E3=83=88=E3=83=BC=E3=83=AB=E5=8F=AF=E8=83=BD=E3=81=AA?= =?UTF-8?q?=E3=83=84=E3=83=BC=E3=83=AB=E3=81=AE=E3=82=A4=E3=83=B3=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=83=BC=E3=83=A9=E3=83=BC=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - flutter.sh、rust.shを削除(miseで管理) - vim.shをdein.shにリネーム(内容を明確化) - .mise.tomlを追加してFlutter、Rust、Vimをmise経由で管理 - installers/mise.shを追加してツールの一括インストールに対応 - 関連ドキュメントを更新 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .mise.toml | 9 +++++++++ CLAUDE.md | 22 +++++++++++++--------- README.md | 8 +++----- README.template.md | 6 ++---- asdf-dart.huC7pJ/sdk.zip | 1 - installers/{vim.sh => dein.sh} | 0 installers/flutter.sh | 9 --------- installers/mise.sh | 19 +++++++++++++++++++ installers/rust.sh | 6 ------ 9 files changed, 46 insertions(+), 34 deletions(-) create mode 100644 .mise.toml delete mode 100644 asdf-dart.huC7pJ/sdk.zip rename installers/{vim.sh => dein.sh} (100%) delete mode 100755 installers/flutter.sh create mode 100755 installers/mise.sh delete mode 100755 installers/rust.sh diff --git a/.mise.toml b/.mise.toml new file mode 100644 index 0000000..6115459 --- /dev/null +++ b/.mise.toml @@ -0,0 +1,9 @@ +[tools] +# Flutter development +flutter = "latest" + +# Rust development +rust = "stable" + +# Vim/Neovim +vim = "latest" \ No newline at end of file diff --git a/CLAUDE.md b/CLAUDE.md index d196f69..ad35afd 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -28,13 +28,13 @@ make list # Install Homebrew dependencies /bin/zsh installers/brew.sh -# Install other tools (run as needed) +# Install development tools via mise /bin/zsh installers/mise.sh -/bin/zsh installers/flutter.sh -/bin/zsh installers/rust.sh -/bin/zsh installers/vim.sh -/bin/zsh installers/xcode.sh -/bin/zsh installers/zplug.sh + +# Install other tools (run as needed) +/bin/zsh installers/dein.sh # Vim plugin manager +/bin/zsh installers/xcode.sh # Xcode settings +/bin/zsh installers/zplug.sh # Zsh plugin manager ``` ## Architecture @@ -62,6 +62,10 @@ make list 4. **Installers** (`installers/`): - Shell scripts for installing various development tools + - `mise.sh`: Installs Flutter, Rust, and Vim via mise + - `dein.sh`: Installs dein.vim plugin manager + - `xcode.sh`: Configures Xcode settings + - `zplug.sh`: Installs zplug shell plugin manager - Each script checks if tool exists before installation - Designed to be idempotent @@ -73,10 +77,10 @@ make list The repository configures a comprehensive development environment for: - **iOS Development**: Xcode tools, XcodeGen, Mint -- **Flutter Development**: Dart, Flutter toolchain, iOS deployment tools +- **Flutter Development**: Flutter (via mise), Dart, iOS deployment tools - **Web Development**: Node.js (via n), various JS tools -- **General Development**: Git, GitHub CLI, tmux, neovim, starship prompt -- **Language Support**: Go, Dart, Ruby (via mise), Rust +- **General Development**: Git, GitHub CLI, tmux, neovim, starship prompt, Vim (via mise) +- **Language Support**: Go, Dart, Ruby, Rust (via mise), Flutter (via mise) ## Key Design Principles diff --git a/README.md b/README.md index e28e7ee..dfa4382 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ The following packages are defined in `.Brewfile` for installation: - `nvim` - Neovim - Hyperextensible Vim-based text editor - `tmux` - Terminal multiplexer - `starship` - Cross-shell prompt -- `mise` - Development environment manager (formerly rtx) +- `mise` - Development environment manager (manages Flutter, Rust, Vim, etc.) - `act` - Run GitHub Actions locally **gPRC** @@ -138,10 +138,8 @@ You can also run individual installer scripts as needed: /bin/zsh installers/brew.sh # Install development tools -/bin/zsh installers/mise.sh # Version management -/bin/zsh installers/flutter.sh # Flutter SDK -/bin/zsh installers/rust.sh # Rust toolchain -/bin/zsh installers/vim.sh # Vim plugins +/bin/zsh installers/mise.sh # Version management + Flutter/Rust/Vim +/bin/zsh installers/dein.sh # Vim plugin manager /bin/zsh installers/xcode.sh # Xcode tools /bin/zsh installers/zplug.sh # Zsh plugin manager ``` diff --git a/README.template.md b/README.template.md index c86d32c..f9d166f 100644 --- a/README.template.md +++ b/README.template.md @@ -74,10 +74,8 @@ You can also run individual installer scripts as needed: /bin/zsh installers/brew.sh # Install development tools -/bin/zsh installers/mise.sh # Version management -/bin/zsh installers/flutter.sh # Flutter SDK -/bin/zsh installers/rust.sh # Rust toolchain -/bin/zsh installers/vim.sh # Vim plugins +/bin/zsh installers/mise.sh # Version management + Flutter/Rust/Vim +/bin/zsh installers/dein.sh # Vim plugin manager /bin/zsh installers/xcode.sh # Xcode tools /bin/zsh installers/zplug.sh # Zsh plugin manager ``` diff --git a/asdf-dart.huC7pJ/sdk.zip b/asdf-dart.huC7pJ/sdk.zip deleted file mode 100644 index 33b24da..0000000 --- a/asdf-dart.huC7pJ/sdk.zip +++ /dev/null @@ -1 +0,0 @@ -NoSuchKeyThe specified key does not exist.
No such object: dart-archive/channels/stable/release/stable/sdk/dartsdk-macos-x64-release.zip
\ No newline at end of file diff --git a/installers/vim.sh b/installers/dein.sh similarity index 100% rename from installers/vim.sh rename to installers/dein.sh diff --git a/installers/flutter.sh b/installers/flutter.sh deleted file mode 100755 index 316f4db..0000000 --- a/installers/flutter.sh +++ /dev/null @@ -1,9 +0,0 @@ -# fvm -if ! type "fvm" > /dev/null; then - dart pub global activate fvm -fi - -if ! type "flutter" > /dev/null; then - fvm install 2.8.1 - fvm global 2.8.1 -fi diff --git a/installers/mise.sh b/installers/mise.sh new file mode 100755 index 0000000..21f3b5d --- /dev/null +++ b/installers/mise.sh @@ -0,0 +1,19 @@ +#!/bin/zsh + +# Install tools via mise +if type "mise" > /dev/null; then + echo "Installing tools via mise..." + + # Install tools defined in .mise.toml + mise install + + # Set global versions + mise use --global flutter@latest + mise use --global rust@stable + mise use --global vim@latest + + echo "Mise tools installed successfully" +else + echo "mise is not installed. Please install it via Homebrew first." + exit 1 +fi \ No newline at end of file diff --git a/installers/rust.sh b/installers/rust.sh deleted file mode 100755 index 64a1478..0000000 --- a/installers/rust.sh +++ /dev/null @@ -1,6 +0,0 @@ -if ! type "rustup" > /dev/null; then - # Install rustup - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path -fi - - From 5dccc0d20b52df66226af7a2b661f2b36e95cb16 Mon Sep 17 00:00:00 2001 From: ryoya ito <30540303+ry-itto@users.noreply.github.com> Date: Mon, 1 Sep 2025 17:39:41 +0900 Subject: [PATCH 2/2] =?UTF-8?q?test:=20=E3=82=A4=E3=83=B3=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=83=BC=E3=83=A9=E3=83=BC=E3=83=86=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 削除したflutter.sh、rust.shをテストから除外 - 追加したmise.sh、リネームしたdein.shをテストに追加 --- tests/installers.bats | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/installers.bats b/tests/installers.bats index a209548..9beb23c 100644 --- a/tests/installers.bats +++ b/tests/installers.bats @@ -5,9 +5,8 @@ load test_helper @test "all installer scripts exist" { local installers=( "brew.sh" - "flutter.sh" - "rust.sh" - "vim.sh" + "mise.sh" + "dein.sh" "xcode.sh" "zplug.sh" )