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 - - 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" )