From 533ca21734a83e69ccab9b9a3942d4bc11124b49 Mon Sep 17 00:00:00 2001 From: OrBaruk Date: Fri, 27 Oct 2017 17:30:44 -0200 Subject: [PATCH 1/3] lein: add page --- pages/common/lein.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/lein.md diff --git a/pages/common/lein.md b/pages/common/lein.md new file mode 100644 index 000000000..f0cadee69 --- /dev/null +++ b/pages/common/lein.md @@ -0,0 +1,23 @@ +# lein + +> Manage clojure projects with declarative configuration + +- 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}}` + +- Run the project's tests + +`lein test` + +- Package up the project files and all dependencies into a jar file: + +`lein uberjar` From 8c8ebd6e3de865130a575c528013b86e24e2ada5 Mon Sep 17 00:00:00 2001 From: OrBaruk Date: Fri, 27 Oct 2017 17:42:33 -0200 Subject: [PATCH 2/3] lein: fix missing punctuation --- pages/common/lein.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/lein.md b/pages/common/lein.md index f0cadee69..ac4c13eb3 100644 --- a/pages/common/lein.md +++ b/pages/common/lein.md @@ -1,6 +1,6 @@ # lein -> Manage clojure projects with declarative configuration +> Manage clojure projects with declarative configuration. - Generate scaffolding for a new project based on a template: @@ -14,7 +14,7 @@ `lein run {{args}}` -- Run the project's tests +- Run the project's tests: `lein test` From 40bff3cb62f3eeea0a2ef8de8d90d6b755f9f9d5 Mon Sep 17 00:00:00 2001 From: OrBaruk Date: Sat, 28 Oct 2017 16:26:24 -0200 Subject: [PATCH 3/3] lein: improve readability --- pages/common/lein.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/lein.md b/pages/common/lein.md index ac4c13eb3..947a8d5da 100644 --- a/pages/common/lein.md +++ b/pages/common/lein.md @@ -4,13 +4,13 @@ - Generate scaffolding for a new project based on a template: -`lein new {{template}} {{project_name}}` +`lein new {{template_name}} {{project_name}}` - Start a repl session either with the project or standalone: `lein repl` -- Run the project's -main function with optional args: +- Run the project's `-main` function with optional args: `lein run {{args}}` @@ -18,6 +18,6 @@ `lein test` -- Package up the project files and all dependencies into a jar file: +- Package up the project files and all its dependencies into a jar file: `lein uberjar`