A build-tool tailored for solving problems I have.
Krei is trying to solve the following problems:
-
Building web-apps using the
clj
command line tool -
Building applications in a mono-repo, where your dependencies have builds too
Add to deps.edn
io.dominic/krei.alpha {:git/url "https://github.com/SevereOverfl0w/krei.alpha.git"
:sha "a18a13e83f81fde9eb437ec08c0426e90f0a8161"}
Ensure target exists before starting the JVM
$ mkdir -p target
$ touch target/.gitkeep
$ git add target/.gitkeep
$ echo "**/target/**
!**/target/.gitkeep" >> .gitignore
src/krei-file.edn
{:krei.sass/files ["platform/magic.scss"] (1)
:krei.figwheel/builds [{:id "platform-app" (2)
:figwheel true
:compiler
{:main myproject.platform.app
:output-to "public/platform.js"
:output-dir "public/platform"
:asset-path "/public/platform/"}}]}
-
Identify any scss files you’d like to have built
-
Identify builds of clojurescript
dev/load-krei.clj
(ns ^{:clojure.tools.namespace.repl/load false}
load-krei
(:require
[io.dominic.krei.alpha.core :as krei]))
(def krei (krei/watch))
dev/user.clj
(ns user
(:require [load-krei]))