I have been using figwheel-main for React Native development for a long time (since 2016 or so) and I'm generally very happy with it.Īs of last year, the npm package support is also really flawless. However, not using npm and javascript at all makes things simpler too. Shadow-cljs does an amazing job of making working with npm and its whole eco-system far simpler that it would be without it. I see a lot of people asking questions in slack on how run a shadow-cljs, I think this is because they are not reading the shadow-cljs guide which really should be followed carefully. So at least some experience of JavaScript and NPM does seem a requirement if using shadow-cljsįigwheel-main also just works with the editors I use. If you don't know the npm packages and what they do in detail, then debugging your system seems a lot harder. Figwheel-main just works, is fast to use, I can write ClojureScript and I dont have to deal with dependencies on npm, understand JavaScript or its ecosystem. This is the main reason I use figwheel-main (I cannot speak for others). I have not needed to use npm to create interesting ClojureScript applications. I didn't go into detail in the original post. The :bundle option is for using npm package with figwheel-main. All the code you write with Figwheel-main project should work in a shadow-cljs project. If you are not sure, I would start with Figwheel-main. It is highly advisable to read the and follow it's guidance carefully. Shadow-cljs greatly simplifies working with npm and the node world, however, as there are more pieces involved, there is more to learn. You should also have knowledge of the npm packages you wish to work with and possibly JavaScript to fix bugs in those packages. Use shadow-cljs if you base your app development on npm packages and node.js tools. Use Figwheel-main for purely ClojureScript projects or ClojureScript with some JavaScript libraries (as bundles or cljsjs).įigwheel-main has fewer moving parts than shadow-cljs and is therefore very simple to learn and work with. In general terms, which tool to use depends on how you want to build your application. Figwheel-main and shadow-cljs are both excellent projects to work with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |