seeder
seeder copied to clipboard
Thoughts
- I switched to
seed-quickstartwithcargo make watchand the only thing I miss is reload after compilation. - Because rust compiles slowly and I save files often, I quite often want to disable watcher and compile code explicitly.
I like to think about this as follows: when I code I call
cargo checkvia hotkey quite often from my editor (or use inline warnings/errors). When I'm satisfied I callcargo buildagain via hotkey and this is myF5. - Most of the time your web app will need to communicate to some backend server. For example I'm using
rocket. It would be really nice if I could serve client viarocketsomehow. So I only need tocargo runmy server and it will automatically invoke/serve/proxy client viaSeeder.
Another thing: ideally I would like to have something like vue-devtools:
So I can inspect state and messages in runtime.
So about live reload. It can either reload the whole page or patch the code live. The best thing ever I used for live reload is Indium. Emacs Javascript Ide. It uses chrome debug protocol. And this protocol has a feature: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setScriptSource You may used it via devtools. Basically you can edit your js source and it will patch it live, recalling functions if needed. It can even update closures, which is impossible if you just patch prototypes. The huge problem with it is that it doesn't work with es modules, so it's practically useless now. And so I wonder, can we make it work in a similar way? It feels possible to do so, because of elm architecture. (@TatriX)
Hello, I think I might had some discussions about redux_dev_tools and seed_hooks as well for state-management many months ago as well. Just wanted to mention it because we might be several people thinking about this kind of concepts.