Skip to content

Commit 2fff7fd

Browse files
alias: update :project/create to latest release
Practicalli Project Templates version 2023.04.19
1 parent ed103e7 commit 2fff7fd

File tree

3 files changed

+17
-24
lines changed

3 files changed

+17
-24
lines changed

CHANGELOG.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*** alias: update rebel readline aliases to load `clojure.main/repl-requires` to include add-lib, add-libs and sync-deps for hotloading libraries on the classpath
2020
*** release version of practicalli/project-templates in `project/create` & `project/templates` aliases
2121
*** `project/create` to include Practialli designed project templates as a dependency
22+
*** readme: Clojure Projects section - example `project/create` commands, de-emphasising project/new alias
2223

2324
* 2023-03-25
2425
** Added

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -233,25 +233,28 @@ Environment settings and libraries to support REPL driven development
233233

234234
## Clojure Projects
235235

236-
* Create projects
237-
* Check and update project dependencies
238-
* Deploy projects locally and to Clojars
236+
Create Clojure CLI configured projects, either built-in or [practicalli/project-templates](https://github.com/practicalli/project-templates) to provide [REPL Reloaded tools](https://practical.li/clojure/clojure-cli/repl-reloaded/) and production-level CI workflows.
239237

240-
Create new projects from templates
238+
Default values (can be over-ridden on the command line)
241239

242-
* `:project/new` - create a new project from deps, leiningen and boot templates with [clj-new](https://github.com/seancorfield/clj-new)
243-
* `:project/create` - deps-new, a simpler alternative to clj-new (good for your own templates)
240+
* `:template project/application` template, includes REPL Reloaded workflow, GitHub workflows, Dockerfile & compose.yaml, Makefile tasks
241+
* `:name practicalli/playground` creates a practicalli domain containing `playground` namespace and example Clojure code
242+
243+
| Command | Description |
244+
|-----------------------------------------------------------------|-------------------------------------------|
245+
| `clojure -T:project/create :template app :name domain/app-name` | A simple application |
246+
| `clojure -T:project/create` | Practicalli application called playground |
247+
| `clojure -T:project/create :template practicalli/service` | Practicalli Service called playground |
248+
249+
250+
> `:project/new` - uses [clj-new](https://github.com/seancorfield/clj-new) which is an archived project, although can still be used to create projects using Leiningen sytle templates. A Clojure CLI configuration must be manually added if these templates do not provide one.
244251
245-
Create a new project (Edn command line arguments - recommended approach - except for Windows)
246252

247-
| Command | Description |
248-
|---------------------------------------------------------------------------------------------------------|------------------------------------------------------|
249-
| `clojure -T:project/new` | library project called playground |
250-
| `clojure -T:project/new :name practicalli/my-library` | library project with given name |
251253
| `clojure -T:project/new :template app :name practicalli/my-application` | App project with given name |
252254
| `clojure -T:project/new :template luminus :name practicalli/full-stack-app :args '["+http-kit" "+h2"]'` | Luminus project with given name and template options |
253255
| `clojure -T:project/new :template figwheel-main :name practicalli/landing-page :args '["--reagent"]'` | ClojureScript Figwheel-main project with reagent |
254256

257+
255258
### Running projects
256259

257260
Run project using clojure.main with or without an alias:

deps.edn

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -318,17 +318,6 @@
318318
;; ---------------------------------------------------
319319
;; Creating projects from templates
320320

321-
;; clj-new - https://github.com/seancorfield/clj-new
322-
323-
;; Classic command line
324-
;; clojure -M:project/new luminus practicalli/full-stack-app +http-kit +h2 +reagent +auth
325-
326-
;; Edn command line arguments
327-
;; clojure -X:project/new ;; app project called playground
328-
;; clojure -X:project/new :name practicalli/my-library
329-
;; clojure -X:project/new :template app :name practicalli/my-application
330-
;; clojure -X:project/new :template luminus :name practicalli/full-stack-app +http-kit +h2 +reagent +auth
331-
332321
:project/new
333322
{:replace-deps {com.github.seancorfield/clj-new {:mvn/version "1.2.399"}}
334323
:exec-fn clj-new/create
@@ -339,7 +328,7 @@
339328
{:replace-deps {io.github.seancorfield/deps-new
340329
{:git/tag "v0.5.1" :git/sha "21cede2"}
341330
io.github.practicalli/project-templates
342-
{:git/tag "2023.04.18" :git/sha "5567a46"}}
331+
{:git/tag "2023.04.19" :git/sha "975e771"}}
343332
:exec-fn org.corfield.new/create
344333
:exec-args {:template practicalli/application
345334
:name practicalli/playground}}
@@ -356,7 +345,7 @@
356345

357346
:project/templates
358347
{:extra-deps {io.github.practicalli/project-templates
359-
{:git/tag "2023.04.18" :git/sha "5567a46"}}}
348+
{:git/tag "2023.04.19" :git/sha "975e771"}}}
360349

361350
;; Convert Leiningen projects to Clojure CLI with depify
362351
;; Use `lein pprint` when `project.clj` includes quoted variables or paths to resolve

0 commit comments

Comments
 (0)