{"id":50457429,"url":"https://github.com/markmals/mise-vite-plus","last_synced_at":"2026-06-01T03:04:59.478Z","repository":{"id":348639354,"uuid":"1198627235","full_name":"markmals/mise-vite-plus","owner":"markmals","description":"Mise tool plugin for Vite+","archived":false,"fork":false,"pushed_at":"2026-04-02T04:21:07.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-02T17:27:47.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markmals.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-01T15:48:38.000Z","updated_at":"2026-04-02T04:21:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/markmals/mise-vite-plus","commit_stats":null,"previous_names":["markmals/mise-vite-plus"],"tags_count":null,"template":false,"template_full_name":"jdx/mise-tool-plugin-template","purl":"pkg:github/markmals/mise-vite-plus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmals%2Fmise-vite-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmals%2Fmise-vite-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmals%2Fmise-vite-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmals%2Fmise-vite-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markmals","download_url":"https://codeload.github.com/markmals/mise-vite-plus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmals%2Fmise-vite-plus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33757791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-01T03:04:53.153Z","updated_at":"2026-06-01T03:04:59.466Z","avatar_url":"https://github.com/markmals.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mise-vite-plus\n\nA [mise](https://mise.jdx.dev) plugin to install and manage [Vite+](https://viteplus.dev) — the Unified Toolchain for the Web.\n\n## Install Globally\n\n```bash\nmise plugin install vite-plus https://github.com/markmals/mise-vite-plus\nmise install vite-plus@latest\nmise use -g vite-plus@latest\n```\n\n## Install Locally\n\n```toml\n[plugins]\nvite-plus = \"https://github.com/markmals/mise-vite-plus\"\n\n[tools]\nvite-plus = \"latest\"\n```\n\n## Usage\n\nOnce installed, the `vp`, `vpx`, and `vpr` commands are available:\n\n```bash\nvp --version\nvp create        # Scaffold a new project\nvpx cowsay hello # Run a package binary\nvpr build        # Run a project script\n```\n\nPin a specific version in a project:\n\n```bash\nmise use vite-plus@0.1.15\n```\n\nList available versions:\n\n```bash\nmise ls-remote vite-plus\n```\n\n## What the plugin does\n\nThe plugin replicates the behavior of the official [Vite+ installer](https://vite.plus) as a native mise plugin:\n\n1. **Available** — Fetches all published versions from the npm registry.\n2. **PreInstall** — Resolves the platform-specific npm tarball URL (macOS/Linux, x64/arm64).\n3. **PostInstall** — Extracts the `vp` binary, creates `vpx`/`vpr` multicall symlinks, writes a `package.json` wrapper, runs `vp install --silent` to bootstrap JS dependencies, and sets up the `~/.vite-plus/current` symlink.\n4. **EnvKeys** — Adds `\u003cinstall-dir\u003e/bin` to `PATH`.\n\n## Development\n\n### Prerequisites\n\n- [mise](https://mise.jdx.dev) — manages dev tools (Lua, stylua, actionlint, etc.)\n- [hk](https://hk.jdx.dev) — linting and pre-commit hooks (installed via mise)\n\n### Setup\n\n```bash\nmise install        # Install dev tools\nhk install          # Set up pre-commit hooks\nmise plugin link --force vite-plus .\n```\n\n### Tasks\n\n```bash\nmise run test       # Install vite-plus and verify vp/vpx/vpr\nmise run lint       # Run all linters (stylua, lua-language-server, actionlint)\nmise run lint-fix   # Auto-fix lint issues\nmise run ci         # Run lint + test\n```\n\n### Debugging\n\n```bash\nMISE_DEBUG=1 mise install vite-plus@latest\n```\n\n## Files\n\n| Path                     | Purpose                                 |\n| ------------------------ | --------------------------------------- |\n| `metadata.lua`           | Plugin metadata (name, version, author) |\n| `hooks/available.lua`    | Fetches versions from npm registry      |\n| `hooks/pre_install.lua`  | Returns platform-specific tarball URL   |\n| `hooks/post_install.lua` | Binary setup, JS bootstrap, symlinks    |\n| `hooks/env_keys.lua`     | Adds `bin/` to `PATH`                   |\n| `lib/platform.lua`       | Platform detection and URL helpers      |\n| `mise-tasks/test`        | Integration test script                 |\n| `hk.pkl`                 | Linting and pre-commit hook config      |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmals%2Fmise-vite-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkmals%2Fmise-vite-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmals%2Fmise-vite-plus/lists"}