Fork me on GitHub
#cljsrn
<
2018-04-24
>
gnl10:04:19

@shulc_ @pesterhazy PureScript might also be worth looking into.

gnl10:04:54

Although I suspect the tooling situation might not be as great as in cljs.

pesterhazy10:04:43

@clojurians.net, true, and typescript and flow are also options to consider

pesterhazy10:04:02

they make other tradeoffs

gnl10:04:37

@pesterhazy on an unrelated (but still RN-related) note - did you get around to talking to the re-natal people/guy about getting this in there: https://github.com/pesterhazy/re-natal-husk I used to run into all kinds of nasty transformation failure issues and broken builds with cljs and RN, and this was a life-saver.

gnl10:04:13

Also, thank you for that.

pesterhazy10:04:24

@clojurians.net, I think I never brought it up, if you could raise an issue in the re-natal github, that'd be great

pesterhazy10:04:59

one thing I'm not positive about is how to integrate it with the xcode project in a seamless way

pesterhazy10:04:12

the only way I see it update your XCode project using the XCode UI, or by editing the file

pesterhazy10:04:27

which is not very convenient

pesterhazy10:04:42

I also haven't tried this with Android, so not sure how it fits into the build pipeline there

gnl10:04:26

I'm iOS-only, so no idea either. I'll raise the issue on GitHub.

gnl11:04:14

I'll give the XCode integration some thought as well, at the moment it's a bit messy, yeah. But it works great, no more random build failures at the worst times because some part of the code somehow crossed some invisible complexity threshold making the whole transformation pipeline blow up.

pesterhazy11:04:47

@clojurians.net, same here, this hack just fixed these problems for us

gnl11:04:12

Regarding the integration - maybe re-natal could do what it already does with the enable-source-maps option - just patch the script under node_modules. It's not pretty, but it's easy.

gnl11:04:22

react-native-xcode.sh, that is

pesterhazy11:04:35

I didn't know about enable-source-maps, this might be a good option

pesterhazy11:04:54

the issue I see with that is that rm -rf node_modules && npm install will undo that change

gnl11:04:14

Same issue with enable-source-maps

gnl11:04:20

It's not great, but better.

gnl11:04:56

As a workaround until then, I force added the patched react-native-xcode.sh version to my git repo, so I can just check it out after npm install

pesterhazy11:04:15

patch-package might be more foolproof?

pesterhazy11:04:46

it integrates with the "postinstall" setting in package.json

gnl11:04:16

That looks good. I'll check it out and suggest it in the github issue.