This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-16
Channels
- # aleph (1)
- # aws (1)
- # beginners (23)
- # boot (33)
- # cider (15)
- # cljs-dev (4)
- # clojure (73)
- # clojure-dev (18)
- # clojure-italy (8)
- # clojure-russia (7)
- # clojure-serbia (1)
- # clojure-spec (8)
- # clojure-uk (118)
- # clojure-ukraine (3)
- # clojurescript (34)
- # code-art (1)
- # community-development (24)
- # cursive (21)
- # data-science (3)
- # datomic (72)
- # defnpodcast (1)
- # fulcro (77)
- # graphql (4)
- # hoplon (8)
- # jobs (3)
- # luminus (3)
- # lumo (7)
- # off-topic (3)
- # onyx (17)
- # other-languages (7)
- # pedestal (1)
- # perun (1)
- # protorepl (21)
- # re-frame (91)
- # ring (4)
- # ring-swagger (18)
- # shadow-cljs (22)
- # spacemacs (37)
- # specter (1)
- # sql (23)
- # test-check (4)
- # unrepl (29)
- # utah-clojurians (3)
- # vim (36)
- # yada (10)
building a bootstrap build:
[:doc-bootstrap] Build failure:
FileNotFoundException: ...project/js/compiled/bootstrap/js/cljs.core.js.map (No such file or directory)
java.io.FileOutputStream.open0 (FileOutputStream.java:-2)
java.io.FileOutputStream.open (FileOutputStream.java:270)
java.io.FileOutputStream.<init> (FileOutputStream.java:213)
(io.clj:230)
(io.clj:230)
it works if i manually create the js/compiled/bootstrap/js/
directory@mhuebert oops, fixed in [email protected]
I refactored the shadow-cljs code related to interop with the closure compiler a bit today
that means it is now more flexible when it comes to choosing which :js-provider
to use
the goal is to use Closure for all projects .js
sources while using :shadow
for node_modules
so everything in the project runs through :advanced
. I think that should be ok given that you control the .js
and could fix :advanced
issues if required
I wanted to do this for a while but https://groups.google.com/d/msg/clojurescript/PTWne6hLAxI/UXgMDCNuDAAJ prompted me to work on it
is anyone here jumping through hoops to work with ES6+ code you wrote yourself? ie. not on npm
?
src/integrated/core.cljs
(ns integrated.core
"Start here."
(:require ["./lib" :as lib]))
(defn init! []
(lib/debugMessage "Narf"))
src/integrated/lib.js
var debugMessage = (x = "any old string") => {
console.log(`Printing ${x} from cljs!`);
};
export { debugMessage };
import core from "goog:cljs.core";
import { createElement } from "react";
import { bar } from "./more-es6";
var foo = (x = "any old string") => {
console.log(`Printing ${x} from cljs!`);
console.log(core.assoc(null, 1, 2));
console.log(createElement("h1", null, x));
return bar(x);
};
export { foo };
would anyone here object to this new default behaviour? ie. running YOUR es6 code through :advanced
?