This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-29
Channels
- # arachne (3)
- # bangalore-clj (6)
- # beginners (246)
- # boot (57)
- # business (1)
- # capetown (1)
- # cider (2)
- # clara (1)
- # cljsjs (36)
- # cljsrn (1)
- # clojure (150)
- # clojure-austin (4)
- # clojure-brasil (7)
- # clojure-china (2)
- # clojure-france (3)
- # clojure-greece (3)
- # clojure-japan (3)
- # clojure-russia (38)
- # clojure-spec (25)
- # clojure-uk (25)
- # clojurescript (320)
- # clojurex (1)
- # cursive (38)
- # datascript (48)
- # datomic (23)
- # emacs (29)
- # events (1)
- # funcool (2)
- # hoplon (64)
- # jobs (3)
- # luminus (10)
- # off-topic (26)
- # om (27)
- # om-next (1)
- # onyx (1)
- # parinfer (38)
- # perun (5)
- # planck (19)
- # re-frame (38)
- # reagent (19)
- # remote-jobs (1)
- # rum (2)
- # schema (2)
- # spacemacs (1)
- # specter (8)
- # test-check (10)
- # vim (7)
- # yada (14)
@ewen How can I use it with my figwheel project? or is it neccessary still using figwheel with replique?
@doglooksgood No, you don't need figwheel
when I start replique/cljs-repl, It let me to open a port with browser. But that page is not the page that contains my cljs code.
If there's a tutorial or video for development basic setup, step by step, that will be great help.
if you are not using the cljs repl in the context of a web app, cljs files are not loaded automatically, you must manually load a cljs file to execute something in the browser
if you want somthing to execute automatically, you must use a web server and output a main js file
but sometimes you want to use the cljs repl to develop a webapp (ie you are serving web assets from a webserver and want the web pages served by the web server to automatically connect to the cljs repl)
outputting a main-js file let you do that, you can output a main js file and link it into you html markup (thats the main entry point of your application, which also happen to connect to the cljs repl)
with cljsbuild I have a main.js
, included in index.html
. if my web server is running at localhost:5000. I can open my index page with localhost:5000/index.html
.
you must start a cljs repl, load your main cljs namespace (ie your entry point, and then use replique/output-main-js-file -> you will be prompted for the ouput path of the file (ie the "main.js" file in you comment above) and then you will be prompted for the main cljs namespace (ie the namespace that will be executed on startup)