{"id":22355667,"url":"https://github.com/zbo14/spa","last_synced_at":"2026-04-08T18:01:46.329Z","repository":{"id":94588832,"uuid":"468882359","full_name":"zbo14/spa","owner":"zbo14","description":"📐 Single Page Application template","archived":false,"fork":false,"pushed_at":"2022-04-10T18:52:36.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T02:16:51.606Z","etag":null,"topics":["bash","esbuild","eslint","html","husky","javascript","less","spa","stylelint"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/zbo14.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}},"created_at":"2022-03-11T19:54:06.000Z","updated_at":"2022-04-12T05:16:11.000Z","dependencies_parsed_at":"2023-03-07T11:01:12.261Z","dependency_job_id":null,"html_url":"https://github.com/zbo14/spa","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/zbo14/spa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbo14%2Fspa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbo14%2Fspa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbo14%2Fspa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbo14%2Fspa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zbo14","download_url":"https://codeload.github.com/zbo14/spa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbo14%2Fspa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31567227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","esbuild","eslint","html","husky","javascript","less","spa","stylelint"],"created_at":"2024-12-04T14:07:38.831Z","updated_at":"2026-04-08T18:01:46.320Z","avatar_url":"https://github.com/zbo14.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spa\n\nFrameworkless Single-Page Application (SPA) template.\n\n## Features\n\n* Supports [Less CSS](https://lesscss.org/) styles\n* Bundling via [esbuild](https://esbuild.github.io/)\n* Linting via [`standard`](https://www.npmjs.com/package/standard) (JS) and [`stylelint`](https://www.npmjs.com/package/stylelint)+[`postcss-less`](https://www.npmjs.com/package/postcss-less) (Less)\n* Git hooks via [`husky`](https://typicode.github.io/husky/#/)\n* Some helpful bash scripts\n\n## Project structure\n\nTODO\n\n## Install\n\n[Use this template](https://github.com/zbo14/spa/generate), clone your repo, and `npm i`.\n\n## Usage\n\n### Bundle\n\n`npm run bundle`\n\nThis bundles all the JavaScript in `src/` and writes to `public/bundle.js`.\n\n### Compile CSS\n\n`npm run compile-css`\n\nThis generates CSS stylesheets in `public/` from the Less files in `src/`\n\n### Build\n\n`npm run build`\n\nThis compiles the CSS and then bundles the JavaScript.\n\n### Run development server\n\n`npm run dev [port] [addr]`\n\nThis runs an HTTP server that serves the content in `public/`. When any JavaScript in `src/` changes, the bundle is regenerated. When styles are changed, the CSS is recompiled.\n\nThe server listens on address 127.0.0.1 (loopback interface), port 8000 by default. You may specify your own address/port.\n\n### Lint\n\n`npm run lint`\n\nThis lints the JavaScript and Less files in `src/`.\n\n**Note:** this script is run on the `pre-commit` Git hook.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbo14%2Fspa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzbo14%2Fspa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbo14%2Fspa/lists"}