bootstrap-clj

Bootstrapping in Clojure.

Лицензия

Лицензия

Группа

Группа

com.github.sebhoss
Идентификатор

Идентификатор

bootstrap-clj
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

clojure
Описание

Описание

bootstrap-clj
Bootstrapping in Clojure.
Ссылка на сайт

Ссылка на сайт

https://github.com/sebhoss/bootstrap-clj
Система контроля версий

Система контроля версий

https://github.com/sebhoss/bootstrap-clj

Скачать bootstrap-clj

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.clojure : clojure jar
org.clojure : tools.namespace jar
org.clojure : tools.nrepl jar

Модули Проекта

Данный проект не имеет модулей.

bootstrap-clj

Bootstrapping REPL-based Clojure development.

Usage

The namespace bootstrap.repl offers the following functions:

  • (load-ns-in-dir-aliased dir) Loads all namespaces inside the given directory (recursively).
  • (load-helpers) Loads helper functions for REPL-based work. Includes all of clojure.test such as run-all-tests, all of clojure.repl such as doc, source and all of clojure.tools.namespace.repl such as refresh, etc..
  • (test-shortcut regex) Returns a function which executes all tests matching the given regex.

Example

Place the following in user.clj or a similar file which gets loaded once your REPL session starts. (see bootstraps own bootstrap )

(require '[bootstrap.repl :refer :all])

; Load project namespaces
(load-ns-in-dir-aliased "src/main/clojure")

; 'clojure.test', 'clojure.repl' and 'clojure.tools.namespace.repl' support
(load-helpers)

; shortcut to tests inside project namespaces
(def rat (test-shortcut #"foo.bar.*-test")) ; use (rat) to run all tests

Happy hacking!

Integration

Maven

<dependencies>
  <dependency>
    <groupId>com.github.sebhoss</groupId>
    <artifactId>bootstrap-clj</artifactId>
    <version>[2.0.0,3.0.0)</version>
    <scope>test</scope>
  </dependency>
</dependencies>

Leiningen

[com.github.sebhoss/bootstrap-clj "[2.0.0,3.0.0)" :scope "test"]

License

This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.

Версии библиотеки

Версия
2.0.0
1.1.0
1.0.1
1.0.0