Fork me on GitHub
#boot
<
2015-07-07
>
micha01:07:52

haha boot protip:

$ boot repl
nREPL server started on port 35606 on host 127.0.0.1 - 
REPL-y 0.3.5, nREPL 0.2.8
Clojure 1.7.0
OpenJDK 64-Bit Server VM 1.8.0_45-internal-b14
        Exit: Control+D or (exit) or (quit)
    Commands: (user/help)
        Docs: (doc function-name-here)
              (find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
      Source: (source function-name-here)
     Javadoc: (javadoc java-object-or-class-here)
    Examples from : [clojuredocs or cdoc]
              (user/clojuredocs name-here)
              (user/clojuredocs "ns-here" "name-here")
boot.user=> (set-env! :dependencies [[:tailrecursion/warp "0.1.0"]])
Retrieving warp-0.1.0.jar from 
nil

micha01:07:03

also works with pom etc

micha01:07:07

as far as i can tell

alandipert02:07:53

oh wow, it just works?

micha02:07:21

although i new see what you were saying about how it's not saving any typing lol

alandipert02:07:23

how about :tailrecursion/warp:0.1.0

alandipert02:07:29

gradle style

alandipert02:07:32

i guess because scopes and exclusions

micha02:07:39

you'd have to string munge it

micha02:07:59

gradle has all the scopes and exclusions too

estsauver03:07:35

Hey, are any of you all running cljs.test with boot?

meow03:07:22

@estsauver: not yet, but I'd like to

Petrus Theron11:07:11

How do I teach boot to compile my Clj macros for Cljs?

Petrus Theron11:07:39

In set-env! I have :source-paths #{"src/clj" "src/cljs"}, but Boot is complaining about my require-macros reference: clojure.lang.ExceptionInfo: No such namespace: plus.utils where plus is my project name.

Petrus Theron11:07:01

(ns plus.app
  (:require-macros [plus.utils :refer [handler-fn]]) ; <-- here is the thing
  (:require [reagent.core :as reagent :refer [atom]]
            [plus.forms :as f]))

andrewmcveigh12:07:43

Hey, is there a boot ‘release’ task. Similar to lein release, that handles version changing, git tagging, optional pushing, etc.?

alandipert12:07:00

@andrewmcveigh: there is a library for doing stuff like this that we use at adzerk, may be useful https://github.com/adzerk-oss/bootlaces

alandipert12:07:59

it's mostly configuration over builtin tasks like pom, push, etc. but it's a good tour of what's possible

alandipert12:07:52

@petrus: you have a src/clj/plus/utils.clj in your project i take it?

Petrus Theron13:07:18

Thanks, alandipert. I just figured it out: I made the mistake of adding my clj namespace to app.cljs.edn

alandipert13:07:57

no prob, glad you found it

andrewmcveigh13:07:42

@alandipert: thanks, I’m using bootlaces (a bit). Though I’ve found it a bit tricky. I had to turn off things like :ensure-tag, and :ensure-clean.

andrewmcveigh13:07:56

They were causing the build to fail.

andrewmcveigh13:07:55

I think it wasn’t taking into account ~/.gitignore, and the scm tag in pom.xml was always HEAD.

andrewmcveigh13:07:05

Not a big deal though.

alandipert13:07:47

@andrewmcveigh: have you considered rolling your changes into a new library called boot-release and becoming a celebrity within the community of boot users?

andrewmcveigh13:07:45

@alandipert: I’ve not really got there yet, but I’ll consider it… 😁

alandipert13:07:29

😎 📷 📰 🌴 boot-clj

micha13:07:10

andrewmcveigh: the HEAD tag in pom.xml was a bug that's been fixed in master

andrewmcveigh13:07:33

@micha: Ah, cool. Thanks.

micha13:07:37

:ensure-tag issue was related to the HEAD thing, so also fixed in master

andrewmcveigh13:07:35

Yeah, it was :ensure-tag that was causing the HEAD issue.

andrewmcveigh13:07:03

Wasn’t really much of a problem. Was just trying to get a quick snapshot on clojars.

podviaznikov21:07:56

@juhoteperi: yes, I think it’s better if the header text was not wrapped in anchor. I liked how github did it. So the header is not the link, but the small icon near is