tldr/pages/common/lein.md

24 lines
451 B
Markdown
Raw Normal View History

2017-10-27 20:30:44 +01:00
# lein
2017-10-27 20:42:33 +01:00
> Manage clojure projects with declarative configuration.
2017-10-27 20:30:44 +01:00
- Generate scaffolding for a new project based on a template:
`lein new {{template}} {{project_name}}`
- Start a repl session either with the project or standalone:
`lein repl`
- Run the project's -main function with optional args:
`lein run {{args}}`
2017-10-27 20:42:33 +01:00
- Run the project's tests:
2017-10-27 20:30:44 +01:00
`lein test`
- Package up the project files and all dependencies into a jar file:
`lein uberjar`