{"id":25085898,"url":"https://github.com/lomin/component-restart","last_synced_at":"2025-04-15T14:44:37.994Z","repository":{"id":30401565,"uuid":"33954334","full_name":"lomin/component-restart","owner":"lomin","description":"A simple watcher that restarts components when files change.","archived":false,"fork":false,"pushed_at":"2017-06-14T08:54:14.000Z","size":10,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T21:21:50.893Z","etag":null,"topics":["clojure","component"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lomin.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}},"created_at":"2015-04-14T20:08:25.000Z","updated_at":"2017-02-09T13:55:26.000Z","dependencies_parsed_at":"2022-09-07T12:02:56.620Z","dependency_job_id":null,"html_url":"https://github.com/lomin/component-restart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lomin%2Fcomponent-restart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lomin%2Fcomponent-restart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lomin%2Fcomponent-restart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lomin%2Fcomponent-restart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lomin","download_url":"https://codeload.github.com/lomin/component-restart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650482,"owners_count":21139676,"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":["clojure","component"],"created_at":"2025-02-07T08:30:35.029Z","updated_at":"2025-04-15T14:44:37.976Z","avatar_url":"https://github.com/lomin.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# component-restart\n\nProvides a single function that watches for changes in source files in all directories on the classpath. When a change has been detected, it reloads the modifed source files and restarts the component-system.\n\n## Leiningen\n\n*component-restart* is available from Clojars.  Add the following dependency to your *project.clj*:\n\n[![Clojars Project](http://clojars.org/me.lomin/component-restart/latest-version.svg)](http://clojars.org/me.lomin/component-restart)\n\n## Usage ##\n\nCall the watch function with two parameters: the var pointing to the function to restart and the started system.\n\n```clojure\n(require '[me.lomin.component-restart :as restart])\n(defn -main []\n  (let [system (component/start (make-system))]\n    (restart/watch (var -main) system)))\n```\n\n## License ##\n\n    Copyright © 2015 Steven Collins. All rights reserved. The use and\n    distribution terms for this software are covered by the Eclipse\n    Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)\n    which can be found in the file LICENSE at the root of this\n    distribution. By using this software in any fashion, you are\n    agreeing to be bound by the terms of this license. You must\n    not remove this notice, or any other, from this software.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flomin%2Fcomponent-restart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flomin%2Fcomponent-restart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flomin%2Fcomponent-restart/lists"}