Fork me on GitHub
#cljsrn
<
2016-01-21
>
drapanjanas22:01:56

With [email protected] source maps should be available when you are debugging in chrome.

artemyarulin22:01:53

…by making a one small line change to the RN packager source inside your node_modules folder

artemyarulin22:01:20

@drapanjanas: Did you thought about contributing that change to RN back?

artemyarulin22:01:59

@mfikes: Thank you once again for your Planck! Gonna rewrite all ugly bash mess for https://github.com/artemyarulin/clojure-clojurescript-buck to planck

mfikes22:01:43

Cool! Yeah… I’ve been actually using it to deploy my blog, to print out barcodes, etc., stuff that used to be in Bash

drapanjanas22:01:47

@artemyarulin I thougt about it and would be glad to. But I have no idea how would I make it fit RN packager... Its a hack which does not make sense for JS.

artemyarulin22:01:09

hm, I mean I’ve seen changes that were made only because of Scala.js so you could try at least. Introduce an option/config or something like that

drapanjanas22:01:21

Hmm, In that case, maybe worth trying

artemyarulin22:01:17

@mfikes: I’m parsing Clojure files, is this a right approach or I’m using Planck in a wrong way? LIke:

(ns cljs.user 
  (:require [planck.repl :as repl] 
            [planck.core :as core]))
(nth (first (repl/repl-read-string (core/slurp "buck-out/gen/clojure/yieldm/project/project.yieldm/project.clj"))) 4)
# [[aleph "0.4.1-beta2"] [org.clojure/clojure "1.8.0"] [org.clojure/tools.namespace "0.3.0-alpha3"]]

artemyarulin22:01:26

not the ugly part about actual parsing, but the thing that I require repl and call repl-read-string from it?

mfikes22:01:20

@artemyarulin: Normally you wouldn’t require the planck.repl namespace. (The definition of repl-read-string could change.) But, you should be able to use the reader…

artemyarulin22:01:21

Yeah, I was looking for the way how can I get a reader but didn’t find it

mfikes22:01:14

cljs.user=> (require 'cljs.tools.reader)
nil
cljs.user=> (cljs.tools.reader/read-string "[1 2]")
[1 2]

mfikes23:01:08

@artemyarulin: The equivalent should work in code, as opposed to in a REPL, as illustrated above.

artemyarulin23:01:55

Oh, I feel ashamed now simple_smile

mfikes23:01:38

No problem. You can be guaranteed that Planck will ship with cljs.tools.reader as a bundled dep.

mfikes23:01:56

(Because it uses it internally.)

artemyarulin23:01:12

Nice, this makes so many things easier for me. Really happy that finally found a time to try it

artemyarulin23:01:36

Gonna use it for scripting for sure. Thanks again for this awesome project!

artemyarulin23:01:01

@mfikes: Last question - is there any Windows/Linux support for Planck? And if there are any plans?

mfikes23:01:33

No, but half plans. I've built JavaScriptCore on Linux and have an idea of converting the Planck Objective-C to C.

artemyarulin23:01:59

Yeah, understand that

artemyarulin23:01:52

Oh found a solution - I’m gonna use Planck if it’s available on a system and if not - I’ll fallback to clojure which would affect startup time but at least I would get my CI working

mfikes23:01:16

Good idea. Clojure is pretty fast too if you are just launching the JAR