Awesome
deps-new-wrap
Wrapper over deps-new to give a more user friendly CLI
Installation
You can install tools adding the following :alias
into your local ~/.clojure/deps.edn
file:
:new {:extra-deps {cc.delboni/deps-new-wrap
{:git/url "https://github.com/rafaeldelboni/deps-new-wrap"
:git/sha "cd5fe7182c0c2acc75db5eeab6feb47a5c46c15a"}}
:exec-fn cc.delboni.main/new}
Usage
# For a template that is created with the github username/name as namespace
clj -X:new :gh rafaeldelboni/helix-scratch :name myusername/mynewapp
# If the namespace is different from the repository owner
clj -X:new :gh practicalli/project-templates :template practicalli/application :name cc.delboni/pratical-application
clj -X:new :gh practicalli/project-templates :template practicalli/service :name cc.delboni/pratical-service
Github
clj -X:new :gh rafaeldelboni/helix-scratch :name myusername/mynewapp
Gitlab
clj -X:new :gl rafaeldelboni/helix-scratch :name myusername/mynewapp
Bitbucket
clj -X:new :bb rafaeldelboni/helix-scratch :name myusername/mynewapp
Sourcehut
clj -X:new :sh rafaeldelboni/helix-scratch :name myusername/mynewapp
Codeberg
clj -X:new :cb rafaeldelboni/helix-scratch :name myusername/mynewapp
Git Url
clj -X:new :git https://github.com/rafaeldelboni/helix-scratch.git :template :rafaeldelboni/helix-scratch :name myusername/mynewapp
Default
# You can always use deps-new default commands as well
clj -X:new :name myname/myapp
clj -X:new :template lib :name myname/my-cool-lib
clj -X:new :template scratch :name poc/simple-app
Developing
Repl
To open a nrepl
clj -M:dev:nrepl
Run Tests
To run tests inside ./test/*
clj -M:dev:test
Uberjar
You can generate an uberjar and execute it via java in the terminal:
# genarate a service.jar in the root of this repository.
clj -X:uberjar
# execute it via java
java -jar target/service.jar