Skip to content

Instantly share code, notes, and snippets.

@zalky

zalky/build.clj Secret

Created November 20, 2017 16:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zalky/1c822ee6ad6499dc007718f9c72cf05c to your computer and use it in GitHub Desktop.
es6 foreign libs
(require 'cljs.build.api)
(cljs.build.api/build "src"
{:main 'integrated.core
:output-to "out/main.js"
:language-in :es6
:foreign-libs [{:file "src"
:module-type :es6}]
:optimizations :advanced
:verbose true})
(ns integrated.core
(:require [js.lib :as lib]))
(enable-console-print!)
(lib/debugMessage "Narf")
goog.provide('js.lib');
js.lib.debugMessage = (x = "any old string") => {
console.log(`Printing ${x} from cljs!`);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment