{"id":20839171,"url":"https://github.com/sbdavid/-vite-vanilla-ts-lib-starter","last_synced_at":"2026-04-28T04:37:58.107Z","repository":{"id":123946104,"uuid":"601488181","full_name":"SBDavid/-vite-vanilla-ts-lib-starter","owner":"SBDavid","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-14T07:05:07.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-28T04:37:55.668Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/SBDavid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-14T07:05:04.000Z","updated_at":"2023-02-14T07:05:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"47d6fba6-ac52-4584-8a66-f82bbb5d5ddb","html_url":"https://github.com/SBDavid/-vite-vanilla-ts-lib-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"kbysiec/vite-vanilla-ts-lib-starter","purl":"pkg:github/SBDavid/-vite-vanilla-ts-lib-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBDavid%2F-vite-vanilla-ts-lib-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBDavid%2F-vite-vanilla-ts-lib-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBDavid%2F-vite-vanilla-ts-lib-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBDavid%2F-vite-vanilla-ts-lib-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SBDavid","download_url":"https://codeload.github.com/SBDavid/-vite-vanilla-ts-lib-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBDavid%2F-vite-vanilla-ts-lib-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32367021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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":"2024-11-18T01:12:34.307Z","updated_at":"2026-04-28T04:37:58.096Z","avatar_url":"https://github.com/SBDavid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-vanilla-ts-lib-starter\n\nThe starter is built on top of Vite 4.x and prepared for writing libraries in TypeScript. It generates a hybrid package - both support for CommonJS and ESM modules.\n\n## Features\n\n- Hybrid support - CommonJS and ESM modules\n- IIFE bundle for direct browser support without bundler\n- Typings bundle\n- ESLint - scripts linter\n- Stylelint - styles linter\n- Prettier - formatter\n- Jest - test framework\n- Husky + lint-staged - pre-commit git hook set up for formatting\n\n## GitHub Template\n\nThis is a template repo. Click the green [Use this template](https://github.com/kbysiec/vite-vanilla-ts-lib-starter/generate) button to get started.\n\n## Clone to local\n\nIf you prefer to do it manually with the cleaner git history\n\n```bash\ngit clone https://github.com/kbysiec/vite-vanilla-ts-lib-starter.git\ncd vite-vanilla-ts-lib-starter\nnpm i\n```\n\n## Checklist\n\nWhen you use this template, update the following:\n\n- Remove `.git` directory and run `git init` to clean up the history\n- Change the name in `package.json` - it will be the name of the IIFE bundle global variable and bundle files name (`.cjs`, `.mjs`, `.iife.js`, `d.ts`)\n- Change the author name in `LICENSE`\n- Clean up the `README` and `CHANGELOG` files\n\nAnd, enjoy :)\n\n## Usage\n\nThe starter contains the following scripts:\n\n- `dev` - starts dev server\n- `build` - generates the following bundles: CommonJS (`.cjs`) ESM (`.mjs`) and IIFE (`.iife.js`). The name of bundle is automatically taked from `package.json` name property\n- `test` - starts jest and runs all tests\n- `test:coverage` - starts jest and run all tests with code coverage report\n- `lint:scripts` - lint `.ts` files with eslint\n- `lint:styles` - lint `.css` and `.scss` files with stylelint\n- `format:scripts` - format `.ts`, `.html` and `.json` files with prettier\n- `format:styles` - format `.cs` and `.scss` files with stylelint\n- `format` - format all with prettier and stylelint\n- `prepare` - script for setting up husky pre-commit hook\n- `uninstall-husky` - script for removing husky from repository\n\n## Acknowledgment\n\nIf you found it useful somehow, I would be grateful if you could leave a star in the project's GitHub repository.\n\nThank you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbdavid%2F-vite-vanilla-ts-lib-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbdavid%2F-vite-vanilla-ts-lib-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbdavid%2F-vite-vanilla-ts-lib-starter/lists"}