Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Clojure / Leiningen projects #96

Open
devurandom opened this issue Sep 18, 2018 · 1 comment
Open

Support Clojure / Leiningen projects #96

devurandom opened this issue Sep 18, 2018 · 1 comment

Comments

@devurandom
Copy link
Contributor

devurandom commented Sep 18, 2018

It would be great if BackYourStack could support Clojure projects that use Leiningen.

The file you want to be looking at is a Clojure / EDN file (parser implemented in JavaScript), the same format as relevant for #97. A sample that should be sufficient for the purposes of BackYourStack is given on the Leiningen front page. You want to look at the list () whose first element is the symbol defproject and its elements search for the keyword :dependencies. The vector [] that follows it contains vectors [] of name / version pairs.

Sample taken from leiningen.org:

(defproject leiningen.org "1.0.0"
  :description "Generate static HTML for https://leiningen.org"
  :dependencies [[enlive "1.0.1"]
                 [cheshire "4.0.0"]
                 [org.markdownj/markdownj "0.3.0-1.0.2b4"]]
  :main leiningen.web)

The dependencies with their descriptions, home page, source repo, versions, dependencies, licenses are usually to be found on Clojars (HTTP REST API documentation) and in some rare cases on Maven. This is the same as for #97.

@znarf
Copy link
Member

znarf commented Sep 18, 2018

Thank you for the input! Like all new languages/platforms, we'll happily merge it if someone wants to contribute the code for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants