2 ms·
I'm interested in a toolchain for cutting down on the editor-edit/server-restart/browser-refresh cycles. Is there any development in the direction of meteor tha
by VMG 13y ago
I'm interested in a toolchain for cutting down on the editor-edit/server-restart/browser-refresh cycles. Is there any development in the direction of meteor that can help me make development a live experience?
- weavejester 13y agoThere are two approaches you can take. The ring/ring-devel library includes middleware that reloads modified files (ring.middleware.reload), and this is included by default with the Lein-Ring plugin. The second approach is to run the server from within the REPL, and to have functions to reload modified files and restart the server. There are libraries like Component and Jig that provide a framework for this style of development. The trend seems to be toward the second, though it requires a little more work than the first option.
- billrobertson42 13y agoThe first option is really easy to get started with. It can get a little clunky though when you suddenly need a repl, because now you need a new window (be it terminal or emacs).