项目作者: littleli

项目描述 :
Install Clojure on Windows with Scoop
高级语言: PowerShell
项目地址: git://github.com/littleli/scoop-clojure.git
创建时间: 2019-09-07T13:19:04Z
项目社区:https://github.com/littleli/scoop-clojure

开源协议:MIT License

下载


scoop-clojure Build status

This is a new and convenient way to install Clojure on Windows.

  • WSL2 is not required
  • Administrator privileges are not required
  • High chance it works on your corporate Windows system

First install Scoop installer. Installation steps for scoop and additional information can be found here. Don’t worry installation is easy.


Buy Me A Coffee

if you like this project.


Clojure

To install Clojure with Scoop you have to add two important buckets first:

  1. # if you don't have git version control system installed
  2. # it is required for adding new external buckets to your scoop installer
  3. # you can skip this step otherwise
  4. scoop install git
  5. # add scoop bucket for Java
  6. scoop bucket add java
  7. # add scoop bucket with extras, here there is a dependency on visual studio redistributable 'extras/vcredist2022'
  8. scoop bucket add extras
  9. # add scoop bucket for clojure build
  10. scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure

Now we are ready to install Java and Clojure by issuing following commands:

  1. # install TCK certified Java runtime and compiler if you need to (optional)
  2. scoop install temurin-lts-jdk
  3. # install official clojure tools
  4. scoop install clj-deps
  5. # update to the newest version
  6. scoop update clj-deps

After successfully running steps above, you should be able to run Clojure with following:

  1. clj

Emacs users should now issue clj and clojure commands without hassle.

Other tools available in this bucket

  • babashka: A port of the clojure bash script to Clojure
  • bb-http-server: Babashka to serve static assets
  • bb-web: A babashka fork for small web-apps
  • bibcal: Calculate dates based on the Bible and the 1st Book of Enoch
  • bootleg: Simple template processing command line tool to help build static websites
  • carve: Carve will search through your code for unused vars and will remove them
  • clj-kondo: A linter for Clojure code that sparks joy
  • clojure-lsp: Language server for Clojure
  • cq: Clojure Command-line Data Processor for JSON, YAML, EDN, XML and more
  • datalevin: A simple, fast and durable Datalog database
  • grasp: Grep Clojure code using clojure.spec regexes
  • hiccup-cli: CLI to convert HTML to Hiccup syntax
  • jet: CLI to transform between JSON, EDN and Transit, powered with a minimal query language
  • joker: A small interpreted dialect of Clojure written in Go. It is also a Clojure(Script) linter
  • lmgrep: A Grep-like utility based on Lucene Monitor
  • pathom-viz: Visualization tools for Pathom
  • pgmig: Standalone PostgreSQL migration runner
  • puget: A CLI version of puget
  • shh: A CLI password manager designed for efficiency
  • trenchman: A standalone nREPL/prepl client written in Go and heavily inspired by Grenchman

Babashka based utilities

  • bbin: Babashka script or project installer
  • eql-cli: A CLI for executing EQL queries on EDN data
  • neil: A CLI to add common aliases and features to deps.edn-based projects

Tools installation

Install extras

First add extras bucket to unlock required dependencies:

  1. scoop bucket add extras

Tools

Now pick from the following tools:

  1. scoop install babashka
  2. scoop install bb-http-server
  3. scoop install bb-web
  4. scoop install bibcal
  5. scoop install bootleg
  6. scoop install carve
  7. scoop install clj-kondo
  8. scoop install clojure-lsp
  9. scoop install cq
  10. scoop install datalevin
  11. scoop install hiccup-cli
  12. scoop install grasp
  13. scoop install jet
  14. scoop install joker
  15. scoop install lmgrep
  16. scoop install pathom-viz
  17. scoop install pgmig
  18. scoop install puget
  19. scoop install shh
  20. scoop install trenchman

or babashka based utilities:

  1. scoop install bbin
  2. scoop install eql-cli
  3. scoop install neil

Updates

These tools are updated quite often, don’t forget to update regularly with:

  1. scoop update *

Uninstall

If you had enough of Clojure for some reason. It’s easy to uninstall it using scoop:

  1. scoop uninstall clj-deps

Also applies to every tool above.

Scoop directory

This scoop bucket is also listed in Scoop directory where to check other useful buckets with tons of packaged software.

Contributor Code of Conduct

This project adheres to No Code of Conduct. We are all adults. I accept anyone’s contributions. Nothing else matters.

For more information please visit the No Code of Conduct homepage.