{"id":26528970,"url":"https://github.com/brianium/squint-vite-template","last_synced_at":"2026-05-09T19:10:51.186Z","repository":{"id":282634709,"uuid":"949200506","full_name":"brianium/squint-vite-template","owner":"brianium","description":"Minimal starting point for building frontend apps with squint cljs, tailwind css, and vite","archived":false,"fork":false,"pushed_at":"2025-03-29T20:12:41.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-02T07:50:17.207Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://brianium.github.io/squint-vite-template/","language":"HTML","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/brianium.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-15T22:34:12.000Z","updated_at":"2025-03-29T20:25:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"e95bac3e-0161-416b-b86d-c67ed1c06c87","html_url":"https://github.com/brianium/squint-vite-template","commit_stats":null,"previous_names":["brianium/squint-vite-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/brianium/squint-vite-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fsquint-vite-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fsquint-vite-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fsquint-vite-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fsquint-vite-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianium","download_url":"https://codeload.github.com/brianium/squint-vite-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fsquint-vite-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32831613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-03-21T16:19:37.294Z","updated_at":"2026-05-09T19:10:51.158Z","avatar_url":"https://github.com/brianium.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# squint-vite-template\n\nAn example and starting point for building [squint](https://github.com/squint-cljs/squint) apps using [tailwindcss](https://tailwindcss.com/) and [vite](https://vite.dev/).\n\n## Requirements\n\n- [babashka](https://babashka.org/) (development and building)\n- [node + npm](https://nodejs.org/en/download/) (dependency management)\n\n## Development\n\nRun the `bb dev` task. Vite will provide the dev server. By default you just need to hit http://localhost:5173 to see the app.\n\n```bash\n$ bb dev\n```\n\n## Building\n\nRun the `bb build` task. The default behavior of this repo is to build to a `dist` directory in the project root.\n\n```bash\n$ bb build\n```\n\nIn addition to producing production css and js files, the build task will handle the particulars of converting vite's dev urls to their production equivalents. This is done by replacing vite manifeset entries (`isEntry == true`) `src` fields with their corresponding `file` fields.\n\nSee the `update-html` task in the `bb.edn` filefor more details\n\n### Caveats\n\nGoing from squint to vite creates some issues with CSS imports locally. To get around this, the vite config for this repo uses an alias:\n\n```js\n{\n    resolve: {\n        alias: {\n            '@': '/src'\n        }\n    }\n}\n```\n\nThen you can import your css in your squint cljs files like this:\n\n```clojure\n(ns app.lib\n  (:require [\"@/app/lib.css\"]))\n```\n\n`bb build` will ensure all css is copied for the production build. This is not an issue for css files contained in `node_modules`. i.e this will be fine as is:\n\n```clojure\n(ns editor\n  (:require [\"@yaireo/tagify$default\" :as Tagify]\n            [\"@yaireo/tagify/dist/tagify.css\"]))\n```\n\n\n## Deploying\n\nThe `dist` directory is the production build and can be deployed to your favorite static site host. The repo includes a github actions configuration that supports deploying to github pages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianium%2Fsquint-vite-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianium%2Fsquint-vite-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianium%2Fsquint-vite-template/lists"}