https://github.com/paraseba/lein-reload
Leiningen plugin. Reload namespaces in modified files
https://github.com/paraseba/lein-reload
Last synced: 12 months ago
JSON representation
Leiningen plugin. Reload namespaces in modified files
- Host: GitHub
- URL: https://github.com/paraseba/lein-reload
- Owner: paraseba
- Created: 2011-06-04T04:22:55.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2013-11-20T21:33:28.000Z (over 12 years ago)
- Last Synced: 2025-05-29T22:05:47.551Z (about 1 year ago)
- Language: Clojure
- Homepage:
- Size: 101 KB
- Stars: 29
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lein-reload
Leiningen plugin to reload namespaces in modified files
## Usage
Add `[lein-reload "1.0.0"]` to your `dev-dependencies` in
`project.clj`.
Start an interactive leiningen session
lein interactive
test your code inside the leiningen shell
lein> test
code to make it work, then reload and re-test
lein> reload
lein> test
reload will be fast, since it will only reload the files you modified
since last time.
If you want to automatically get a reload every time you test, you can add a hook
in your `project.clj` file
:hooks [leiningen.hooks.reload-on-test]
Then in the leiningen shell, modified files will be reloaded every time you
call test, test! or retest, you don't need to call reload explicitly:
lein> test
lein> retest
## Disclaimer
The code that detects changed files is a direct rip-off of
https://github.com/weavejester/ring-reload-modified
## License
Copyright (C) 2011 Sebastián B. Galkin
Distributed under the Eclipse Public License, the same as Clojure.