This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-21
Channels
- # admin-announcements (2)
- # aws-lambda (2)
- # beginners (26)
- # boot (179)
- # cider (36)
- # cljs-dev (118)
- # cljsrn (23)
- # clojure (150)
- # clojure-android (1)
- # clojure-austin (7)
- # clojure-austria (3)
- # clojure-canada (1)
- # clojure-dev (7)
- # clojure-dusseldorf (4)
- # clojure-germany (3)
- # clojure-greece (34)
- # clojure-nl (4)
- # clojure-quebec (9)
- # clojure-russia (30)
- # clojure-spec (38)
- # clojure-uk (3)
- # clojurescript (46)
- # clr (1)
- # core-async (2)
- # css (2)
- # cursive (17)
- # datomic (12)
- # devcards (8)
- # dirac (1)
- # docker (2)
- # hoplon (216)
- # jobs (2)
- # kekkonen (1)
- # lein-figwheel (18)
- # leiningen (2)
- # luminus (1)
- # mount (4)
- # off-topic (2)
- # om (15)
- # onyx (1)
- # parinfer (1)
- # pedestal (2)
- # planck (26)
- # reagent (98)
- # spacemacs (6)
- # specter (19)
- # spirituality-ethics (54)
- # untangled (22)
- # vim (24)
- # yada (4)
@urbanslug: No. It would block the whole js runtime
has anyone seen this? http://lispyscript.com/
hello, since cljs 1.9.76
something went wrong on the cljs.spec.test/check-var
, the implementation tries to use fn-specs
, which was removed at some point. the CLJ
version uses a fn-spec
function that I don't see available on cljs
as well, currently any call to cljs.spec.test/check-var
seems to fail for this reason
@wilkerlucio: Likely a regression. I’d suggest a dropping simple REPL-based repro in JIRA.
@mfikes: ok, I'll do
@wilkerlucio: fixed in master
@dnolen: thanks, you might wanna close this ticket: http://dev.clojure.org/jira/browse/CLJS-1689
haha, you got me on a refresh delay 🙂
Just posted this in the #C077KDE3A channel but figured I might ask for help here. I am playing around with Luminus and Sente and am currently trying to setup login+auth. I was wondering how you are supposed to actually to the authentication for the user. I found https://github.com/ptaoussanis/sente/issues/118#issuecomment-87378277 which kinda explains what I need to do but my app always seems to need the page to be refreshed for the session to actually be recognized. Any advice?
hey guys - i’m at a loss for where to get started to solve this problem and I’m hoping someone can point me in the right direction: I want to use stylus-lang’s programmatic API (or even the CLI) to compile some .styl files, but I want to be able to do that from within a portable boot task. If there doesn’t exist a clojars wrapper around the API, how can I make one? The conceptual problem I’m having is “how do I run a node-only API from within clojure.. and how can I explicitly list node as a dependency?"
@lwhorton: you can shell out inside boot tasks and call node scripts. There's no built in dependency mechanism but it's not to hard too build your own, see boot-notify which checks if the terminal-notifier
program is available: https://github.com/jeluard/boot-notify/blob/master/src/jeluard/boot_notify.clj
Aha. That’s probably way simpler than what I was about to do. A big help as always @martinklepsch
@lwhorton: what did you intend to do?
I’m in the middle of a real poop-storm. I have a working boot-task that takes all .styl files, compiles them to css-modules, and generates clojurescript modules with a tiny runtime to manage things. As I move to a second project I really want to reuse this task without copy/pasting from 1 boot file to another. I haven’t ever managed or published a boot task, though, so i’m bumping into hurdles left and right. The tasks is kinda a patchwork of whatever I could get to work — stylus’ cli, some conch execution, etc.
My plan was to build a task that has a clj and a cljs component, and somehow use the cljs runtime to execute the node api I need.
Yeah, if possible just using Stylus' CLI stuff will likely be much easier 🙂
@wilkerlucio: I just cut a pre-release 1.9.88 if you’re looking for something with the fix
@dnolen: thanks, since this morning I was using it from the sources, had no issues since then
The method to do this in Clojure does not work in cljs: http://stackoverflow.com/questions/20053260/forward-declaring-a-var-from-another-namespace-in-clojure
@darwin: How is that possible when working with cljs files? Wouldn't that break with advanced compilation?
no, it will work just fine, instead of forward declaration, implement a getter function, which uses js-interop to retrieve the value
well, assuming your interop code is understood by closure advanced compiler the same way as your generated javascript from clojurescript sources
Scripting question: So I am using the cljs.build.api
functions for building my project, and I would like to fail my build (for CI purposes) on certain (or maybe all) warnings - e.g. missing var. These currently don't cause a build failure. Can anyone point me to an example for this, or at least the path I could follow to implement this in my scripts?
I'm not seeing any compiler options for elevating warnings to errors, so I'm guessing I need to handle this myself somehow?