Gastove / doctopus

An un-opinionated framework for Docs on the Webs
Eclipse Public License 1.0
7 stars 2 forks source link

Monolithic clojurescript build #75

Closed fardog closed 8 years ago

fardog commented 8 years ago

So it turns out many of the reasons I was fighting cljsbuild were because it expects only a single file to be output ideally; this PR aligns us with that. It's based off the reagent leiningen template (what you'd get with a lein new reagent that I used for mkwords.

This changes how the cljs app's entry points work; there's now a separate entry point for dev and prod profiles, which perform the init of the main and omnibar components; if the known elements that each of these expect don't exist, they won't load.

This also really simplifies the process of getting the dev environment working, and should also make builds cleaner (since the plugins aren't required for building a prod env) if we ever decide to build from CI.

Also now correctly cleans the cljs project when a lein clean is run.

jarofghosts commented 8 years ago

:sunglasses:

Gastove commented 8 years ago

:+1: