This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-23
Channels
- # beginners (114)
- # cljsrn (19)
- # clojure (35)
- # clojure-austin (1)
- # clojure-italy (9)
- # clojure-russia (8)
- # clojure-spec (6)
- # clojure-uk (5)
- # clojurescript (32)
- # datomic (12)
- # editors (3)
- # emacs (1)
- # hoplon (4)
- # jobs (6)
- # jobs-discuss (1)
- # luminus (2)
- # onyx (11)
- # parinfer (2)
- # portkey (6)
- # re-frame (7)
- # reagent (9)
- # remote-jobs (3)
- # schema (2)
- # shadow-cljs (23)
- # spacemacs (2)
- # specter (13)
- # vim (3)
- # yada (6)
I'm getting an error when I compile a cljs file using lein-cljsbuild, the latest version of clojurescript, and the Clojure beta1 (but not alpha16). Seems to be generating code with the new ##Inf and ##NaN literals that aren't getting parsed correctly. Is this a known problem, or is there something I'm doing wrong?
Specifically ##Inf and ##NaN are making their way into the javascript file, and of course, javascript does not recognize those literals.
This is on code that doesn't actually utilize ##Inf and ##NaN in the clojurescript file.
The above is from the core.js file where it defines the Clojurescript hash function. Note how it takes cases on ##Inf and ##-Inf, which don't exist in Javascript.
Ah, it is a bug in cljs. https://dev.clojure.org/jira/browse/CLJS-2352
apologies if this question has already been asked but I'm having a devil of a time figuring this out. font-awesome is an npm dependency but it's just css and fonts (no js). how do i work something like that into the build process so that they are dropped in a place they can be found. it's probably even more complicated for me in particular since this is an electron app using descjop. Anyone have any ideas?
@twillis first off, do you use leiningen or boot?
@twillis install-deps should create a node_modules
folder in your project folder. I’m not too familiar with lein, but in boot, I add the relevant node_modules subfolder to my list of resources, then because now I have access to them in the classpath, I “move” files over to where they need to be.
ok I'll play around with resources I did see a lein-resource plugin but it's not quite what I need for the electron app which admittedly is already making the build process pretty weird
thanks for your help @levitanong
@twillis no problem. Wish I could be of more help.
@twillis there is also the #electron channel you can try
thanks @bostonaholic i joined. so it looks like lein-resource gives me the same abilities i'm used to in ember builds so that will do for now.
Is there a current alternative to [Domina](https://github.com/levand/domina)? I mean, to fully separate HTML and CSS development from ClojureScript?
I'm following the Modern CLJS tutorial and find myself in a similar situation:
> Many Clojure web applications use Hiccup for HTML templating. If > the programmer is also the designer, then Hiccup is ideal. However, > most developers are bad at design. We need to work with people who are > good at design and who don't need to care about Clojure. ClojureScript > One proposes one approach to templating which allows designers to work > with HTML, CSS and images without having to set an eye on Hiccup data > structures or those pesky parentheses.
My coworker is great and HTML and CSS and I focus on other stuff. domina seems to be deprecated nowadays.
One case might be to just teach your coworker hiccup. It might be faster (learning I mean) than you expect
Just need to prepare him/her somehow, like, "See, we're using this thing where angle brackets are square and you don't have to close tags"
Same if there is Jade/Slim experience
i did just that with a designer on a project and they got comfortable with it pretty quickly. Now i'm wanting to get them to use garden instead of sass 🙂
@yury.solovyov Yeah, I was afraid that it would be the case. My coworker is very change resistant, but if it is the best way I'll attempt to convince him. Thanks.
@pesterhazy Thanks!
@twillis Mind talking a bit more about garden? Never heard of it.
@anantpaatra check out kioo
@twillis just checked the project on GitHub, I don't need any more convincing. 🙂 Seems really nice.
@dominicm thanks!
I'm not sure exactly what your constraints are. But it's perfect for "I don't want to learn, make it work"
@dominicm I spent last weekend porting a bunch of sass stuff to garden. and it was pretty straightforward for the most part though I'm still fuzzy on what the extend equivalent is. i just ended up merging 2 vectors and hoping for the best.
there is one drawback though in that 2.0 of garden is going to have some breaking changes and it's waiting on spec to stabilize i think
also one bug(fixed in 2.0) when you have :pretty-print false
for minification in lein-garden things like 0px, 0%, 0em
etc...get the units stripped for some reason. and then the browser (at least chrome) flags the rule as invalid.