Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ilevd/ns-sort
Leiningen plugin for sorting Clojure namespaces.
https://github.com/ilevd/ns-sort
clojure leiningen namespace sorting
Last synced: 5 days ago
JSON representation
Leiningen plugin for sorting Clojure namespaces.
- Host: GitHub
- URL: https://github.com/ilevd/ns-sort
- Owner: ilevd
- License: epl-2.0
- Created: 2021-02-14T16:16:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-20T12:52:57.000Z (about 2 years ago)
- Last Synced: 2024-04-25T03:22:16.970Z (7 months ago)
- Topics: clojure, leiningen, namespace, sorting
- Language: Clojure
- Homepage:
- Size: 154 KB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- stars - ilevd/ns-sort - Leiningen plugin for sorting Clojure namespaces. \[*Eclipse Public License 2.0*\] (⭐️17) (Clojure)
- stars - ilevd/ns-sort - Leiningen plugin for sorting Clojure namespaces. \[*Eclipse Public License 2.0*\] (⭐️17) (Clojure)
README
# ns-sort
A Leiningen plugin to sort namespaces in `:require` block.
[![Clojars Project](https://img.shields.io/clojars/v/ns-sort.svg)](https://clojars.org/ns-sort)
## Description
![ns-sort](docs/ns-sort.png?raw=true "ns-sort")
The plugin sort namespaces in `:require` block with lexicographic order.
The project namespaces have more priority compared with other 3rd party dependencies.
The plugin supports `.clj`, `.cljs`, `.cljc` files.
## Usage
Put `[ns-sort "1.0.3"]` into the `:plugins` vector of your `:user` profile.
Use this for project-level plugins:
Put `[ns-sort "1.0.3"]` into the `:plugins` vector of your project.clj.
Run:
$ lein ns-sort
## License
Copyright © 2022 ilevd