Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

port to cljs.edn #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

port to cljs.edn #1

wants to merge 1 commit into from

Conversation

thheller
Copy link

@thheller thheller commented Jul 3, 2016

DISCLAIMER: This is just a proof of concept and very very alpha.

I saw your blog post on Web Workers and thought I'd mention I tool I'm working on. While it is currently just a proof a concept it perfectly matches what you were trying to do and I absolutely agree.

The basic gist is that you create a cljs.edn config file to describe your CLJS build.

You then run: lein run -m shadow.devtools.cli/dev demo to start a typical dev process.

This process is a REPL and supports live-reloading. Before reloading any files ex05b.core/stop is called which terminates the worker and unmounts. After loading the ex05b.core/start is called (also via the initial index.html) which should in theory start the app. Reloading however seems to mess up the WebGL stuff, you probably know better if this is fixable.

Once you are done you run lein run -m shadow.devtools.cli/release demo which creates an :advanced compiled version.

Note that no changes on the code/HTML side are required to switch between dev/release versions.

Currently looking for feedback on how to improve the experience, let me know if you have any thoughts.

@postspectacular
Copy link
Member

Thanks a lot, @thheller! This looks really great & will check it out asap...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants