Skip to content

tstout/deps-new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deps-new

Create a new Clojure deps.edn project

Usage

Add this to your :aliases in ~/.clojure/deps.edn

:deps-new {:extra-deps
                      {deps-new/deps-new
                       {:git/url "https://github.com/tstout/deps-new"
                        :sha "f331a5f"
                        :tag "v1.0.39"}}
                      :main-opts ["-m" "deps-new.core"]}

Example usage:

clj -M:deps-new -n gitlab-io -r gitlab-io

This will create a project with a core namespace of gitlab-io. The repository name specified by -r is gitlab-io, the same as the core namespace. This will create the following project structure:

gitlab-io
├── .gitignore
├── build.clj
├── deps.edn
├── dev
│   └── user.clj
├── resources
├── src
│   └── gitlab_io
│       └── core.clj
└── test
    ├── gitlab_io
    │   └── core_test.clj
    └── resources

The generated project supports the following:

Execute main:

clj -M:gitlab-io

Execute tests:

clj -M:test:runner

Build Uberjar:

clj -T:build uberjar

Options when running deps-new:

  -n, --namespace NS       Project root namespace (required)
  -p, --path RP         .  Specify root path
  -r, --repo repo-name     Repository Name (required)
  -h, --help

About

Create a new clj deps.edn project

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages