Created
August 4, 2018 12:19
-
-
Save mfikes/d1e6db68cae918633dca212cd584140f to your computer and use it in GitHub Desktop.
Using fs from ClojureScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns ^:figwheel-always figwheel4node-server.core | |
(:require [cljs.nodejs :as nodejs] | |
fs)) | |
(nodejs/enable-util-print!) | |
(println "Hello from the Node!") | |
(def -main (fn [] nil)) | |
(set! *main-cli-fn* -main) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject figwheel4node "0.1.0-SNAPSHOT" | |
:dependencies [[org.clojure/clojure "1.9.0"] | |
[org.clojure/clojurescript "1.10.339"]] | |
:plugins [[lein-cljsbuild "1.1.7"] | |
[lein-figwheel "0.5.16"]] | |
:clean-targets ^{:protect false} ["target"] | |
:cljsbuild { | |
:builds [{:id "server-dev" | |
:source-paths ["server_src"] | |
:figwheel true | |
:compiler {:main figwheel4node-server.core | |
:output-to "target/server_out/figwheel4node_server_with_figwheel.js" | |
:output-dir "target/server_out" | |
:target :nodejs | |
:optimizations :none | |
:source-map true }}]} | |
:figwheel {}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment