https://github.com/rickmoynihan/libdev
A clj-new template with dev environment tooling & config
https://github.com/rickmoynihan/libdev
clj-new clojure project template
Last synced: 10 months ago
JSON representation
A clj-new template with dev environment tooling & config
- Host: GitHub
- URL: https://github.com/rickmoynihan/libdev
- Owner: RickMoynihan
- License: epl-1.0
- Created: 2018-07-01T17:13:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-01T23:10:11.000Z (over 7 years ago)
- Last Synced: 2025-03-18T21:08:54.512Z (11 months ago)
- Topics: clj-new, clojure, project, template
- Language: Clojure
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# libdev
[](https://clojars.org/libdev/clj-template)
A [clj-new](https://github.com/seancorfield/clj-new) template for
building Clojure libraries that have a basic dev environment
configured.
The main difference over `clj-new`'s standard `lib` template is the
inclusion of an `env/dev` source path, that can contain bespoke
tooling to help develop a library.
## Using this template
After having installed
[clj-new](https://github.com/seancorfield/clj-new) and assuming you
setup a `:new` alias you can make use of this template by running
the command:
```
$ clj -A:new libdev packagename/mylibnamea
Generating fresh 'clj new' libdev project.
```
Then you can do:
```
$ tree mylibname/
mylibname/
├── deps.edn
├── env
│ └── dev
│ ├── dev.clj
│ └── user.clj
├── src
│ └── packagename
│ └── mylibname.clj
└── test
└── packagename
└── mylibname_test.clj
6 directories, 5 files
```
We also setup a `:gen` alias that you can use to generate extra
templates within the project.
e.g. to add leiningen build support run the command:
`$ clj -A:gen project=group-name/project-name`
This will install leiningen configured with the
[lein-tools-deps](https://github.com/RickMoynihan/lein-tools-deps)
plugin, so you can use leiningen to build and deploy your `tools.deps`
project.
## Development
If you're working on libdev itself you can have it generate a new
template from the project root directory with the command:
Run: `clj -m clj-new.create libdev myname/mynewlib` to test
## License
Copyright Rick Moynihan © 2018
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.