{"id":13609202,"url":"https://github.com/jacekschae/shadow-cljs-tailwindcss","last_synced_at":"2025-04-12T19:33:28.739Z","repository":{"id":36976986,"uuid":"348105244","full_name":"jacekschae/shadow-cljs-tailwindcss","owner":"jacekschae","description":"shadow-cljs + tailwindcss","archived":false,"fork":false,"pushed_at":"2024-07-26T04:37:48.000Z","size":668,"stargazers_count":164,"open_issues_count":7,"forks_count":20,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-08-01T19:51:37.868Z","etag":null,"topics":["clojurescript","shadow-cljs","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/jacekschae.png","metadata":{"files":{"readme":"docs/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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-15T19:57:26.000Z","updated_at":"2024-07-14T19:51:13.000Z","dependencies_parsed_at":"2024-05-06T01:43:59.537Z","dependency_job_id":"283db276-448c-4256-924a-15b9c10350aa","html_url":"https://github.com/jacekschae/shadow-cljs-tailwindcss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacekschae%2Fshadow-cljs-tailwindcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacekschae%2Fshadow-cljs-tailwindcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacekschae%2Fshadow-cljs-tailwindcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacekschae%2Fshadow-cljs-tailwindcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacekschae","download_url":"https://codeload.github.com/jacekschae/shadow-cljs-tailwindcss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223538937,"owners_count":17162014,"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":["clojurescript","shadow-cljs","tailwindcss"],"created_at":"2024-08-01T19:01:33.253Z","updated_at":"2024-11-07T15:30:28.883Z","avatar_url":"https://github.com/jacekschae.png","language":"Clojure","funding_links":[],"categories":["Clojure"],"sub_categories":[],"readme":"# shadow-cljs + tailwindcss\n\nThis is an example of how to setup shadow-cljs and [tailwindcss](https://github.com/tailwindlabs/tailwindcss)\n\n## Setup\n\n```bash\ngit clone https://github.com/jacekschae/shadow-cljs-tailwindcss.git app\ncd app\nnpm install\nnpm run dev\n```\n\nThis runs the `shadow-cljs` server, builds tailwind-css and runs `postcss`. It will observe `cljs-runtime/*.js` files in dev and will use `main.js` for creating a release build.\n\nThe first startup takes a bit of time since it has to download all the dependencies and do some prep work. Once this is running you can open browser [http://localhost:8020](http://localhost:8020) and get started.\n\n## Config \n\n`shadow-cljs` is configured by the `shadow-cljs.edn` file and the UI is available at [http://localhost:9630](http://localhost:9630).\n\n`tailwindcss` is configured by the `tailwind.config.js` file.\n\n`postcss` is configured in `postcss.config.js` file.\n\nAlso check `npm scripts` configured in `package.json`, to understand how everything is stitched together for `dev` and `release` commands.\n\n## REPL\n\nDuring development you can start a REPL.\n\nFrom the command line use `npx shadow-cljs cljs-repl app`.\n\n```\nshadow-cljs - config .../shadow-cljs.edn\nshadow-cljs - connected to server\ncljs.user=\u003e\n```\n\nThis can now be used to eval code in the browser (assuming you still have it open). Try `(js/alert \"Hi.\")` and take it from there. You might want to use `rlwrap npx shadow-cljs cljs-repl app` if you intend to type a lot here.\n\nYou can exit the REPL by either `CTRL+C` or \ntyping `:repl/quit`.\n\nPS. Most probably you want to connect to the REPL from your editor, and not type in the terminal.\n\n## Release\n\nTo create a release artifact run `npm run release` which will create a js and css assests.\n\n```\nnpm run release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacekschae%2Fshadow-cljs-tailwindcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacekschae%2Fshadow-cljs-tailwindcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacekschae%2Fshadow-cljs-tailwindcss/lists"}