{"id":21420085,"url":"https://github.com/eginez/calvin","last_synced_at":"2025-05-12T14:49:30.285Z","repository":{"id":57193234,"uuid":"73653523","full_name":"eginez/calvin","owner":"eginez","description":"A minimalistic build tool for clojurescript projects that does not require the jvm","archived":false,"fork":false,"pushed_at":"2018-12-15T18:38:49.000Z","size":120,"stargazers_count":185,"open_issues_count":7,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-30T18:51:26.444Z","etag":null,"topics":["bootstrap","build-tool","clojurescript","lein","lumo","planck","repl"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eginez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-14T00:54:48.000Z","updated_at":"2024-11-25T03:10:47.000Z","dependencies_parsed_at":"2022-09-01T03:40:09.879Z","dependency_job_id":null,"html_url":"https://github.com/eginez/calvin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eginez%2Fcalvin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eginez%2Fcalvin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eginez%2Fcalvin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eginez%2Fcalvin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eginez","download_url":"https://codeload.github.com/eginez/calvin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238059009,"owners_count":19409607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","build-tool","clojurescript","lein","lumo","planck","repl"],"created_at":"2024-11-22T20:11:26.045Z","updated_at":"2025-02-10T05:09:40.924Z","avatar_url":"https://github.com/eginez.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# calvin [![npm package](https://nodei.co/npm/calvin-cljs.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/calvin-cljs/)\n\nA minimalistic build tool for clojurescript in clojurescript that does not require the jvm.\n\n## Why?\nIn conjunction with boostrapped clojurescript calvin aims to enable a clojurescript jvm-less development environment\n\n## Current status\n1. Repls: calvin boostraps [planck](https://github.com/mfikes/planck) or [lumo](https://github.com/anmonteiro/lumo) repls\nwith the proper \"classpath\" as described in a lein project file\n2. Dependencies: calvin resolves and prints dependencies specified in lein project files\n3. Building: Calvin can now build your cljs project using the lumo build api and your lein-cljsbuild configuration. \nFor more information look at the [lumo build api](https://anmonteiro.com/2017/02/compiling-clojurescript-projects-without-the-jvm/)\n\n## Installation\n\n0. Install lumo or planck\n\n1. Download and install via [npm](https://www.npmjs.com/package/calvin-cljs)\n\n\n## Getting started\nOnce calvin is installed you can do this in your terminal\n\n    calvin -h\n\nThis will print out the help for calvin\n\n### Repls\nTo start one of the boostrapped repls you can\n\nstart a lumo repl\n\n    calvin repl\n\nstart a planck repl\n\n    calvin -p planck repl\n\nAny remaining arguments are passed on to lumo/planck, so you can do things like\n\n    calvin repl my_script.cljs\n    calvin repl --dumb-terminal\n    calvin repl -c src -m my-project.main\n    calvin repl --socket-repl 3333\n\n### Dependencies\nTo discover the dependecies of  a project\n\n    calvin deps\n\nCalvin assumes there is a lein project file in the current directory. It will read such\nfile and resolve transitive dependencies\n\n### Building\nBuild will read the `cljsbuild :compiler` options of yout `project.clj` file.\nPlease note that some compiler options are not supported by the `lumo.build.api`\n\n    calvin build dev\n\n### Using node modules\n\nAssuming npm is installed, here is an example of using an artifact from npm:\n\n1. Installation\n\n```\nnpm install shelljs --save\n```\n\n2. Invoking\n\n```clj\n(require '[cljs.nodejs :as node])\n(def s (node/require \"shelljs\"))\n(.echo s \"foo\")\n```\n\n3. Latest node_modules inference in ClojureScript\n\nClojureScript versions `1.9.854` and after can treat node modules as namespaces.\n\nExample cljsbuild configuration in the project.clj:\n\n```clj\n:cljsbuild {:builds\n            {:dev {:source-paths [\"src\"]\n                   :compiler {:output-to \"out/main.js\"\n                              :main some-ns.main\n                              :target :nodejs\n                              ;; :npm-deps causes to treat node\n                              ;; modules as proper name spaces\n                              :npm-deps {:shelljs \"0.7.8\"}}}}}\n```\n\nNow the specified node module can be required like a ClojureScript namespace.\n\n```\n(require 'shelljs)\n(shelljs/echo \"foo\")\n```\n\n## Hacking\n\nCalvin uses Figwheel for interactive development:\n\n     lein figwheel\n     node out/dev/figwheel-server.js\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feginez%2Fcalvin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feginez%2Fcalvin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feginez%2Fcalvin/lists"}