- <h2 id="profiles">Profiles</h2><p>Profiles are clj-new template arguments. They are helpful when you are starting a new project and know ahead of time what functionality you will need. In such cases, you can use profiles to set up a new Kit project without having to manually add libraries and wire them together.</p><p>Unlike <a href='/docs/modules.html'>modules</a>, profiles are tied to clj-new, the project generation tool. You can only use them when creating a project.</p><p>Running <code>clojure -Tclj-new create :template io.github.kit-clj :name yourname/app</code> will create an application using the default profile template. However, if you would like to attach further functionality to your template you can append profile hints for the extended functionality.</p><p>Default libs included with no profile specified:</p><ul><li><code>kit-core</code></li><li><code>kit-undertow</code></li></ul><p>Additional profiles:</p><ul><li><code>+xtdb</code> - Adds the <code>kit-xtdb</code> lib</li><li><code>+hato</code> - Adds the <code>kit-hato</code> lib</li><li><code>+metrics</code> - Adds the <code>kit-metrics</code> lib</li><li><code>+nrepl</code> - Adds the <code>kit-nrepl</code> lib, removes the <code>kit-repl</code> lib. Note that you do not need this profile to use nREPL during development.</li><li><code>+quartz</code> - Adds the <code>kit-quartz</code> lib</li><li><code>+redis</code> - Adds the <code>kit-redis</code> lib</li><li><code>+selmer</code> - Adds the <code>kit-selmer</code> lib</li><li><code>+socket-repl</code> - Adds the <code>kit-repl</code> lib</li><li><code>+sql</code> - Adds the <code>kit-sql</code> and <code>kit-postgres</code> libs</li><li><code>+full</code> - Adds the libs <code>kit-xtdb</code>, <code>kit-hato</code>, <code>kit-metrics</code>, <code>kit-quartz</code>, <code>kit-redis</code>, <code>kit-repl</code>, <code>kit-selmer</code>, and <code>kit-sql</code></li></ul><p>To add a profile, pass it as an argument after your application name, e.g.:</p><pre><code>clojure -Tclj-new create :template io.github.kit-clj :name yourname/app :args '[+selmer]'
0 commit comments