Fork me on GitHub
#boot
<
2016-04-26
>
domkm01:04:39

Before I open an issue about it, has anyone gotten the :source-map-timestamp compiler option to work with boot-cljs?

richiardiandrea01:04:15

@domkm I have it true yes, what problem do you have?

domkm01:04:01

@richiardiandrea: Does it modify either the js file name or the source mapping url comment?

domkm01:04:05

It does neither for me.

richiardiandrea01:04:47

@domkm: I am trying to format it in a decent way

richiardiandrea01:04:56

what is the name of the key in the json?

domkm01:04:28

What do you mean?

richiardiandrea01:04:41

Oh I thought it was a JSON file

maxp02:04:23

how to omit alpha/beta versions in "boot show -u" ?

maxp02:04:50

like that [javax.servlet/servlet-api "3.0-alpha-1"]

richiardiandrea02:04:00

@domkm: I don't see the timestamp either

richiardiandrea02:04:13

only "version": 3

rain_omen04:04:36

So, I’m pretty new to Boot (and Clojure/Script) in general, but something I noticed when experimenting a bit… is it really desirable to have the target task overwrite the specified/default “target” directory by default? Seems a little risky since a value of . (or worse, a directory above that) will get 100% replaced when the Boot task is run.

rain_omen04:04:31

Or really to have it overwrite any directory at or above the current directory. Would a separate task to “copy” or otherwise move the correct build artifacts after target has been called make more sense?

rain_omen04:04:24

Might not be any different I suppose since it’s still explicit just with target… anyway, just a thought

martinklepsch10:04:03

@maxp: I think there’s no way to omit alpha/beta as these are handled as “regular releases” by maven/aether

martinklepsch10:04:47

@rain_omen: good thought, maybe a warning if the —dir passed to target is . or similar would help?

martinklepsch10:04:21

Warning probably isn’t enough. Guess it should be fatal. In the past I haven’t heard of people erasing their projects accidentally but this might a good addition anyways

maxp11:04:23

about my prev. question that thing works: boot -d boot-deps ancient

rain_omen14:04:48

@martinklepsch: Yeah, I would think fatal would be better. If only because the place a warning might come up (I’d imagine within the task itself) would be too late before that task already cleaned the target dir.

dimiter15:04:44

Hey, working with boot cljs repl. For some reason, when I enter a Namespace with (in-ns) it does not seem to require all the dependencies.

cljs.user=> (in-ns 'booty.core)
nil
booty.core=> (om/from-history reconciler "882b71b2-1584-4b86-95ac-5fe87abea1a1")
WARNING: No such namespace: om, could not locate om.cljs, om.cljc, or Closure namespace "" at line 1 <cljs repl>
WARNING: Use of undeclared Var om/from-history at line 1 <cljs repl>
WARNING: Use of undeclared Var booty.core/reconciler at line 1 <cljs repl>

dimiter15:04:53

If I do this, it works:

booty.core=> (ns booty.core
        #_=>   (:require-macros [cljs.core.async.macros :refer [go]])
        #_=>   (:require [goog.dom :as gdom]
        #_=>             [cljs.core.async :as async :refer [<! >! put! chan]]
        #_=>             [clojure.string :as string]
        #_=>             [om.next :as om :refer-macros [defui]]
        #_=>             [om.dom :as dom])
        #_=>   (:import [goog Uri]
        #_=>            [ Jsonp]))
booty.core=> (om/from-history reconciler #uuid "07f06ad2-1964-4cd7-8345-0d86fbf007ac")
WARNING: Use of undeclared Var booty.core/reconciler at line 1 <cljs repl>
{:om.next/queries {#object[booty.core.AutoCompleter] {:params {:query "dimite"}}}, :search/results #js ["Dimitar Berbatov" "Dimitri Payet" "Dimitrije Ljotić" "Dimitri Ashkenazy" "Dimitrie D. Pătrășcanu" "Dimitrije Bužarovski" "Dimitrios Papanikolaou" "Dimitrios Kiousopoulos" "Dimitrios Konstantopoulos" "Dimitris Diamantidis"], :om.next/tables #{}}

alandipert17:04:57

@dimiter: i'm not very familiar with the cljs repl, but in clojure you usually need to (require 'some-ns) before you (in-ns 'some-ns)

alandipert17:04:13

in-ns will create an empty namespace if one has not already been created/populated

lwhorton17:04:57

has anyone run into this issue before with boot-http? it just started and I dont know what I changed. .. 😞

java.io.FileNotFoundException: Could not locate ring/middleware/reload__init.class or ring/middleware/reload.clj on classpath.

lwhorton17:04:19

i’m not even using boot-http in the task I’m running, but boot still complains with this and throws

martinklepsch18:04:55

is this coming out of boot-http for sure?

richiardiandrea19:04:47

are you guys using a docker workflow? if yes, do you map a local project folder to be visible in the container and launch boot repl inside it?

alandipert19:04:08

@richiardiandrea: that's how i've done it... and sometimes i map m2 in the container to the host's m2

alandipert19:04:16

thus caching maven stuff

richiardiandrea19:04:02

great, I saw someone actually pushing it to the limit and have the editor run from the container as well

richiardiandrea19:04:11

but I think it is not strictly necessary

alandipert19:04:21

X11 gets really tricky w/ docker in my experience

richiardiandrea19:04:34

yep, there was a talk

richiardiandrea19:04:41

at the last conj

richiardiandrea19:04:48

so I saw there is a boot docker image somewhere right? I am about to bootstrap a project and I might take that path (and maybe deploy with kubernetes...alternatives?)

richiardiandrea19:04:26

I mean, at the end of the day the whole point is to deploy the docker container somewhere...consistently and to scale up if necessary...

alandipert19:04:18

we use docker and docker-compose to dev on things but are kind of moving away from it, at least on AWS

richiardiandrea19:04:36

thanks @alandipert you saved me some clicks 😄

richiardiandrea19:04:02

can I ask you which direction you are taking from here (I am curious)

alandipert19:04:43

well we are on AWS, and so experimented with both docker and war deploys on elastic beanstalk

alandipert19:04:28

i guess it's really EB we're moving away from

richiardiandrea19:04:32

(I am asking because I remember micha telling me that AWS is a pain to scale ... if my memory does not fail)

richiardiandrea19:04:44

ah yes I remember that

alandipert19:04:54

maybe he was talking about elastic beanstalk

alandipert19:04:12

AWS itself, esp. the core services like EC2/S3 are rock solid pieces to build on

richiardiandrea19:04:07

have you considered Google Cloud?

richiardiandrea19:04:38

I am investigating what is the best way to deploy docker containers directly as well

richiardiandrea19:04:20

You guys seem clever enough to follow your footprints 😄 😄 simple_smile

alandipert19:04:02

ahah we're just trying to get by without messing up too much

alandipert19:04:11

while keeping our jobs and some semblance of our reputations

alandipert19:04:16

but yeah re: deploys we basically have our own conventions and "infrastructure" to do it

alandipert19:04:23

our own machine images, conventions for config files/logging

alandipert19:04:57

shell scripts, this is why micha made jt, to process AWS api responses

richiardiandrea19:04:07

yeah I can imagine...

richiardiandrea19:04:19

meaning really awesome

richiardiandrea19:04:31

not "not everything is awesome"

richiardiandrea19:04:05

in any case, I like your attitude to a lot of things, at ClojureWest Daniel's talk was really good, and exactly your style, fun and informative

alandipert19:04:22

oh were you at clojure/west?

alandipert19:04:41

very cool, bummed i couldn't make this one. maybe the next

richiardiandrea19:04:17

the best for me was to meet people in person, especially people like bbatsov 😄

alandipert19:04:03

yeah meeting people for real is so much fun

alandipert19:04:22

and yeah, daniel's talk was really great, just caught it on youtube. altho i must say his style and awesomeness are all his own, i can take no credit

alandipert19:04:29

other than having the good taste to be his friend

alandipert19:04:04

he has such an awesome design sense also, something lacking in almsot everything i do lol

richiardiandrea19:04:17

yeah but this is what I mean, you've kind of happen to be a good team overall

alandipert19:04:20

most things i make look visually like an academic homepage from 1996