{"id":13343730,"url":"https://github.com/jntn/now-shadow-cljs","last_synced_at":"2025-07-28T10:33:28.347Z","repository":{"id":34260089,"uuid":"173292638","full_name":"jntn/now-shadow-cljs","owner":"jntn","description":"A now builder for ClojureScript projects using shadow-cljs","archived":false,"fork":false,"pushed_at":"2022-05-27T22:19:07.000Z","size":769,"stargazers_count":21,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T04:13:03.050Z","etag":null,"topics":["builder","clojure","clojurescript","now","zeit"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jntn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-01T11:41:34.000Z","updated_at":"2021-11-19T15:28:28.000Z","dependencies_parsed_at":"2022-08-20T11:50:47.355Z","dependency_job_id":null,"html_url":"https://github.com/jntn/now-shadow-cljs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jntn%2Fnow-shadow-cljs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jntn%2Fnow-shadow-cljs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jntn%2Fnow-shadow-cljs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jntn%2Fnow-shadow-cljs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jntn","download_url":"https://codeload.github.com/jntn/now-shadow-cljs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227897183,"owners_count":17836722,"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":["builder","clojure","clojurescript","now","zeit"],"created_at":"2024-07-29T19:31:57.470Z","updated_at":"2024-12-03T10:24:04.524Z","avatar_url":"https://github.com/jntn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# now-shadow-cljs\nA ▲ Vercel Now 2.0 builder for ClojureScript projects using shadow-clj. The builder will build your shadow-cljs targets and deploy them to ▲ Vercel Now.\n\n## Usage\n\n1. Create a shadow-cljs project. This builder supports building `:browser` and `:node-library` targets. If the target is `:browser` it will be deployed as a static page and if it is `:node-library` it will be deployed as a lambda function.\n\n2. Create a `now.json` file that uses `@jntn/now-shadow-cljs` using version 2 (This builder does not currently work with the latest version 3). **Note:** If you do not specify a `routes` section, the build output will be available under the specified output folder. For `:node-library` it is the `:output-to` path and for `:browser` it is the `:output-dir` path.\n\nFor an example using both browser and node builds, see [github.com/jntn/haiku](https://github.com/jntn/haiku)\n\n### Example `now.json`\n``` json\n{\n    \"version\": 2,\n    \"name\": \"haiku\",\n    \"builds\": [\n        {\n            \"src\": \"shadow-cljs.edn\",\n            \"use\": \"@jntn/now-shadow-cljs\"\n        }\n    ],\n    \"routes\": [\n        {\n            \"src\": \"/(.*)\",\n            \"dest\": \"/public/$1\"\n        },\n        {\n            \"src\": \"/api/(.*)\",\n            \"dest\": \"/api/$1\"\n        }\n    ]\n}\n```\n\n### Example `shadow-cljs.edn`\n``` clojure\n{:builds {:haikus {:target :node-library\n                   ;; Will be available at \"/api/haikus\"\n                   :output-to \"api/haikus/index.js\"\n                   :exports-var jntn.api.haikus/handler}\n          :app {:target :browser\n                ;; Will by default be available at \"/public\" but\n                ;; using the now.json above it is reached at \"/\"\n                :output-dir \"public/js\"\n                :asset-path \"js\"\n                :modules {:main {:entries [jntn.app.core]}}\n                :devtools {:http-root \"public\"\n                           :proxy-url \"http://localhost:3000\"\n                           :http-port 8000}}}}\n```\n\n\n## Caveats\n* Right now the only supported build targets are `:browser` and `:node-library`.\n* The builder does not currently work with `:deps true` in `shadow-cljs.edn`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjntn%2Fnow-shadow-cljs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjntn%2Fnow-shadow-cljs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjntn%2Fnow-shadow-cljs/lists"}