Fork me on GitHub
#fulcro
<
2018-03-18
>
Daniel Hines03:03:37

I found an inconsistency between some code in http://book.fulcrologic.com and the source it references in fulcrologic/fulcro-getting-started. Is it best I describe it here or post an issue in GitHub?

tony.kay17:03:15

Issue would be nice, thanks!

bbktsk16:03:27

Reading 2.4.0 changelog: “Added alpha versions of new, tighter, DOM functions that do not require props, or #js” - Yay!!! bananadance

piotrek20:03:28

Hi, I created a new app using lein new fulcro and it seems it uses shadow-cljs. How can I start the dev build (with cards) and server build? The book still references figwheel script (which is missing in my project), the README generated in the project also doesn’t provide any hints? What about running it from Intellij?

tony.kay21:03:44

Really? Did you read the readme?

tony.kay21:03:21

I'm pretty sure it generates a readme with detailed instructions

tony.kay21:03:30

In fact, I’m not sure how to make it any cleaerer…I just generated an app with it, and it spells out quite specifically…here’s an excerpt: ## Development Mode Shadow-cljs handles the client-side development build. The file src/main/blah/client.cljs contains the code to start and refresh the client for hot code reload. Running all client development builds:

$ npx shadow-cljs watch main cards test
...
shadow-cljs - HTTP server for ":main" available at 
shadow-cljs - HTTP server for ":test" available at 
shadow-cljs - HTTP server for ":cards" available at 
...

piotrek21:03:57

Oh, I’m sorry - my bad - I must have opened a wrong readme as I got a blank screen in Intellij - yes it’s in the readme @tony.kay

piotrek21:03:35

However, I had to revert to figwheel version as I was getting strange compilation errors while using fulcrologic/semantic-ui-react-wrappers

tony.kay21:03:30

anything you pull in has to come from NPM with shadow…I don’t know if shadow has cljsjs stubs for semantic react ui

piotrek21:03:43

I added fulcrologic/semantic-ui-react-wrappers and cljsjs/semantic-ui-react to project.clj main deps and during cljs compilation I was getting: error that cljsjs.semantic-ui-react namespace couldn’t be found

tony.kay21:03:50

but you can just use semantic-ui-react without the wrappers

piotrek21:03:16

Do I need to wrap it with factories by myself?

tony.kay21:03:17

that’s the advantage of shadow: you can use anythign from the npm ecosystem

tony.kay21:03:29

yeah, but look at the wrappers project…I automated that

tony.kay21:03:49

using their doc json or something…a little foggy on it at the moment

piotrek21:03:33

thanks - I will take a look

tony.kay21:03:32

read the README on regenerating the factories…then just use it without the cljsjs stuff altogether

tony.kay21:03:40

I mainly made the factories so that docstrings would be available

piotrek22:03:00

btw, would you recommend to move from figwheel to shadow-cljs?