Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

video: Clojure CLI and Dev workflow

オープン
#472 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@practicalli-johnny がすでに取り組んでいます。

2025年3月12日 から。

評価

この issue はまだ評価されていません。

説明

video transcript

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.clj from 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.clj file 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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

practicalli/clojure のほかの issue

practicalli/clojure の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。