Fork me on GitHub
#shadow-cljs
<
2018-02-24
>
tianshu03:02:29

@thheller I found why shadow-cljs not stop gracefully in my case, I stop repl my cider's cider-quit command.

thheller10:02:05

hmm. try again?

tianshu11:02:18

gonna to try shadow-cljs with react-native. 😎

tianshu11:02:05

it's likely there's no need to use figwheel anymore.

thheller12:02:45

I think some stuff will not yet work properly with react-native. I didn't do much testing with it at all but feel free to report when something comes up. should all be easy fixes.

tianshu14:02:38

@thheller shadow-cljs - updating dependencies which work will be done at this moment. hang at here.

tianshu14:02:11

^C and restart it works

tianshu14:02:39

shadow-cljs use maven for retrieving dependencies?

thheller14:02:07

yes updating dependencies will try to resolve maven deps

tianshu14:02:15

which maven will be used? it has an embed mvn?

thheller14:02:13

embedded yes, not maven but the same lib maven uses

tianshu14:02:58

how can I configure mirrors

thheller14:02:36

hmm no idea

thheller14:02:45

maybe this works?

thheller14:02:06

not sure if that will be picked up automatically

thheller14:02:21

but is there a clojars mirror?

thheller14:02:42

the shadow-cljs jar comes from clojars

tianshu14:02:43

no, it's likely not work.

tianshu14:02:29

my mvn command will use the config in ~/.m2/settings.xml, but shadow-cljs not.

tianshu14:02:35

it's not a big problem but still a problem i think.

tianshu14:02:13

Chinese have to face the f**king network:confused:

thheller14:02:11

is clojars blocked?

tianshu14:02:07

no, central

thheller14:02:06

@doglooksgood I just pushed [email protected] which should support :mirrors in your shadow-cljs.edn config

thheller14:02:42

ideally this wouldn't be part of the config but for now it is

tianshu14:02:19

is there any plan to support global config for shadow-cljs?

thheller14:02:46

:mirrors {"" {:name "some string" :url ""}}

thheller14:02:10

global config only for settings like these yes

thheller14:02:16

global build configs no

tianshu14:02:53

I don't think :mirrors should be write in project config, also for cider dependencies.

tianshu14:02:13

at least for :mirrors and :dependencies in my use case.

thheller14:02:39

yes I agree but adding a global config is more work. I first want to confirm that it actually works 😉

tianshu14:02:56

If there's a description on how i should looks like, I think a lot of people can help:no_mouth:

thheller15:02:46

I don't know what it should look like

tianshu15:02:16

using shadow-cljs in react-native, each time I save a file, client will have a full reload

thheller15:02:23

thats react-native

thheller15:02:59

I didn't do much react-native development but their hot reload tends to do that

thheller15:02:04

don't know how to turn it off

tianshu15:02:22

I found no matter where I put the output, it always full reload. maybe it listens to file writing event. and when shadow-cljs recompile, it overwrite all files, this cause a full reload.

lilactown16:02:26

yes, the RN bundler watches the files

lilactown16:02:50

and by default, refreshes the current view

lilactown16:02:08

(at least, the version we’re using at work does that)

lilactown16:02:13

if you go into the dev menu, you can turn on/off live reloading and hot module reloading