video: Clojure CLI and Dev workflow
@practicalli-johnny がすでに取り組んでいます。
2025年3月12日 から。
評価
この issue はまだ評価されていません。
説明
Video scripts to evolve:
- Introducing Clojure CLI
- TODO Practicalli Clojure Workflow - "There are many Clojure Workflows.. and this one is mine"
Clojure CLI is installed along with Java (21) as the host platform. Practicalli Clojure CLI config is the user configuration, containing a wide range of aliases that extend the features of Clojure CLI.
Create a new project using the app template or clone practicalli/clojure-app-template
clojure -T:project/create :template app :name practicalli/gameboard/service
The :project/create alias is defined in the Practicalli Clojure CLI config.
clojure -X:deps aliases lists the available aliases in the current project and the Clojure user configuration
Add a dev/user.clj file to the root of the created project.
The dev/user.clj file configures the REPL during startup, adding library hotload, namespace reload and portal data inspector
copy
dev/user.cljfrom practicalli/clojure-app-template
Start a rich terminal UI repl prompt with a additional dev tools
clojure -T:project/create :template app :name practicalli/gameboard
Start a REPL via the command line, using an alias from practicalli/clojure-deps-edn
clojure -M:repl/reloaded
Library dependencies for Rebel and other development tools are already cached in the local maven repository, so startup should be very quick.
Although Clojure code can be evaluated in the terminal UI prompt for the REPL, it is more effective to use an editor connected to the REPL
In this video I am using Emacs, although the process is conceptually the same for Neovim, VS Code, Sublime Text and any other Clojure aware editor.
Start Emacs and connect to the running REPL
A Clojure file is opened from the project previously created.
The deps.edn file contains dependency and path configuration, along with some optional aliases.
The :deps keywork defines the library names and versions the project depends upon. An org.clojure/clojure library is included to set a specific version of Clojure to use. Otherwise the Clojure version shipped with the Clojure CLI tool is used.
The project is going to serve an API, so a server will be defined
Open the
src/practicalli/gameboard/service.cljfile in the editor
Create a rich comment to contain the code as we experiment. Editors supporting Clojure LSP can use the snippets to create a rich comment.
(comment )
look up a library for a http server (using find-deps either from an alias or via the dev/user.clj file)
- 主要言語
- Makefile
- スター
- 117
- フォーク
- 36
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
practicalli/clojure のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
practicalli/clojure#381 ·
-
Clojure on windowsオープン
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
practicalli/clojure#298 ·
-
feat: Clojure fundamentals video series再び着手できるかも @practicalli-johnny が 209 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンvideo
practicalli/clojure#478 · 担当者 1 名 ·
-
Spec: add more commonpractices再び着手できるかも @practicalli-johnny が 393 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
practicalli/clojure#477 · 担当者 1 名 ·
-
Update: hotload libs in Clojure 1.12再び着手できるかも @practicalli-johnny が 447 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
practicalli/clojure#476 · 担当者 1 名 ·