{"id":14955946,"url":"https://github.com/elmassimo/stimulus-vite-helpers","last_synced_at":"2025-08-03T11:33:24.786Z","repository":{"id":44397020,"uuid":"338438907","full_name":"ElMassimo/stimulus-vite-helpers","owner":"ElMassimo","description":"Helpers to easily load all your Stimulus controllers when using Vite.js","archived":false,"fork":false,"pushed_at":"2024-02-21T15:50:05.000Z","size":264,"stargazers_count":43,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-03T16:46:23.834Z","etag":null,"topics":["rails","stimulusjs","vitejs"],"latest_commit_sha":null,"homepage":"https://vite-rails.netlify.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElMassimo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-02-12T21:37:12.000Z","updated_at":"2024-07-14T09:37:52.000Z","dependencies_parsed_at":"2023-12-19T17:24:03.081Z","dependency_job_id":"9c81aaa0-b20f-42b2-a7e2-117d8def3e5d","html_url":"https://github.com/ElMassimo/stimulus-vite-helpers","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":"0.10526315789473684","last_synced_commit":"9e6ac3bdf935a42f6f33459618546d91953f5f26"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElMassimo%2Fstimulus-vite-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElMassimo%2Fstimulus-vite-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElMassimo%2Fstimulus-vite-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElMassimo%2Fstimulus-vite-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElMassimo","download_url":"https://codeload.github.com/ElMassimo/stimulus-vite-helpers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228542119,"owners_count":17934233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["rails","stimulusjs","vitejs"],"created_at":"2024-09-24T13:12:03.842Z","updated_at":"2024-12-07T00:25:39.057Z","avatar_url":"https://github.com/ElMassimo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align='center'\u003e\u003csamp\u003estimulus-vite-helpers\u003c/samp\u003e\u003c/h2\u003e\n\n\u003cp align='center'\u003eHelpers to easily load all your Stimulus controllers when using Vite.js\u003c/p\u003e\n\n\u003cp align='center'\u003e\n  \u003ca href='https://www.npmjs.com/package/stimulus-vite-helpers'\u003e\n    \u003cimg src='https://img.shields.io/npm/v/stimulus-vite-helpers?color=222\u0026style=flat-square'\u003e\n  \u003c/a\u003e\n  \u003ca href='https://github.com/ElMassimo/vite_ruby/blob/master/LICENSE.txt'\u003e\n    \u003cimg src='https://img.shields.io/badge/license-MIT-blue.svg'\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n[import.meta.glob]: https://vitejs.dev/guide/features.html#glob-import\n[jumpstart]: https://github.com/ElMassimo/jumpstart-vite\n[stimulus handbook]: https://stimulus.hotwire.dev/handbook/installing\n[stimulus]: https://github.com/hotwired/stimulus\n[vite_rails]: https://vite-rails.netlify.app\n[vite-plugin-stimulus-hmr]: https://github.com/ElMassimo/vite-plugin-stimulus-hmr\n\nThis plugin was extracted out of [Jumpstart Rails with Vite.js][jumpstart], a starter\ntemplate that you can use to start your next Rails app.\n\nIf you are looking for a simple way to integrate Vite.js in Rails, check out \u003ckbd\u003e[vite_rails]\u003c/kbd\u003e.\n\nIf you would like to enable HMR for your Stimulus controllers, check out \u003ckbd\u003e[vite-plugin-stimulus-hmr]\u003c/kbd\u003e.\n\n## Installation 💿\n\n```bash\nnpx ni stimulus-vite-helpers\n```\n\n## Usage 🚀\n\nYou can now register your Stimulus controllers using Vite's [import.meta.glob] and the `registerControllers` helper:\n\n```ts\nimport { Application } from '@hotwired/stimulus'\nimport { registerControllers } from 'stimulus-vite-helpers'\n\nconst application = Application.start()\nconst controllers = import.meta.glob('./**/*_controller.js', { eager: true })\nregisterControllers(application, controllers)\n```\n\nFor more information, check the [Stimulus handbook].\n\n## Special Thanks\n\n- [Stimulus]\n\n## License\n\nThis library is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felmassimo%2Fstimulus-vite-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felmassimo%2Fstimulus-vite-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felmassimo%2Fstimulus-vite-helpers/lists"}