2017-10-27 20:30:44 +01:00
|
|
|
# lein
|
|
|
|
|
2017-10-27 20:42:33 +01:00
|
|
|
> Manage clojure projects with declarative configuration.
|
2019-06-05 08:55:52 +01:00
|
|
|
> More information: <https://leiningen.org>.
|
2017-10-27 20:30:44 +01:00
|
|
|
|
|
|
|
- Generate scaffolding for a new project based on a template:
|
|
|
|
|
2017-10-28 19:26:24 +01:00
|
|
|
`lein new {{template_name}} {{project_name}}`
|
2017-10-27 20:30:44 +01:00
|
|
|
|
2017-10-29 17:30:45 +00:00
|
|
|
- Start a REPL session either with the project or standalone:
|
2017-10-27 20:30:44 +01:00
|
|
|
|
|
|
|
`lein repl`
|
|
|
|
|
2017-10-29 17:30:45 +00:00
|
|
|
- Run the project's "-main" function with optional args:
|
2017-10-27 20:30:44 +01:00
|
|
|
|
|
|
|
`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`
|
|
|
|
|
2017-10-28 19:26:24 +01:00
|
|
|
- Package up the project files and all its dependencies into a jar file:
|
2017-10-27 20:30:44 +01:00
|
|
|
|
|
|
|
`lein uberjar`
|