Skip to content

Instantly share code, notes, and snippets.

@mfikes
Created August 4, 2018 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfikes/d1e6db68cae918633dca212cd584140f to your computer and use it in GitHub Desktop.
Save mfikes/d1e6db68cae918633dca212cd584140f to your computer and use it in GitHub Desktop.
Using fs from ClojureScript
(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)
(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