== Application project template :Author: Mike Ananev :Date: 30/01/2022 :git: https://git-scm.com[git] :clojure-deps-cli: https://clojure.org/guides/getting_started[clojure deps cli] :tools-build: https://clojure.org/guides/tools_build[tools-build] :deps-new: https://github.com/seancorfield/deps-new[deps-new] :build-clj: https://github.com/seancorfield/build-clj[build-clj] :babashka: https://github.com/babashka/babashka[babashka] :toc:
=== Intro
This template
helps you to quick start new app project using {clojure-deps-cli} and {deps-new}.
This template
provides:
.editorconfig
file;clj-kondo
linter;cljstyle
formatter;mike@mbp02 ✗ bb tasks The following tasks are available:
See also:
== Usage
Before run this template ensure you have installed {deps-new} and {babashka} (see <
Example: to generate new app project for artifact com.example/app01
run:
clojure -Sdeps '{:deps {org.rssys/apptemplate {:git/tag "0.1.1" :git/sha "215be27" :git/url "https://github.com/redstarssystems/apptemplate.git"}}}' -Tnew create :template org.rssys/apptemplate :name com.example/app01
or clone this project and run from its folder:
clojure -Sdeps '{:deps {org.rssys/apptemplate {:local/root "."}}}' -Tnew create :template org.rssys/apptemplate :name com.example/app01 :target-dir ../app01
NOTE: Please, see README.adoc
in a root folder of created project.
To configure project workflow use scripts: tasks/src/*
, bb.edn
and build.clj
.
IMPORTANT: tasks/src/*
only for Babashka tasks code. +
bb.edn
file should be as minimal as possible.
tasks/src/build/config.clj
- for project configuration;tasks/src/build/init.clj
- for tasks internal constants and helpers;tasks/src/build/tasks.clj
- for tasks code.[#install-prerequisites] === Install prerequisites
All these tools you need to install only once.
bash
, curl
, rlwrap
, and Java
.
+
[source, bash]+
Tool will be installed in ~/.gitlibs/libs/
== License
Copyright © 2021 {Author} + Distributed under the Eclipse Public License 1.0 or (at your option) any later version.