{"id":13416925,"url":"https://github.com/kbysiec/vite-vanilla-ts-lib-starter","last_synced_at":"2025-05-16T15:05:21.602Z","repository":{"id":41408658,"uuid":"474184302","full_name":"kbysiec/vite-vanilla-ts-lib-starter","owner":"kbysiec","description":"The starter is built on top of Vite 6.x and prepared for writing libraries in TypeScript. It generates a package with support for ESM modules and IIFE.","archived":false,"fork":false,"pushed_at":"2025-02-26T11:32:27.000Z","size":466,"stargazers_count":309,"open_issues_count":1,"forks_count":35,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T14:16:02.469Z","etag":null,"topics":["eslint","husky","prettier","stylelint","template","typescript","vite","vitest"],"latest_commit_sha":null,"homepage":"","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/kbysiec.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}},"created_at":"2022-03-25T22:47:38.000Z","updated_at":"2025-04-01T12:43:58.000Z","dependencies_parsed_at":"2024-09-24T15:27:52.555Z","dependency_job_id":"b5eb331c-6607-44ce-9348-d9c64a69904e","html_url":"https://github.com/kbysiec/vite-vanilla-ts-lib-starter","commit_stats":{"total_commits":49,"total_committers":2,"mean_commits":24.5,"dds":"0.020408163265306145","last_synced_commit":"db56597ce5db3b144fa06ecf7cacbe5f779ea891"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbysiec%2Fvite-vanilla-ts-lib-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbysiec%2Fvite-vanilla-ts-lib-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbysiec%2Fvite-vanilla-ts-lib-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbysiec%2Fvite-vanilla-ts-lib-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kbysiec","download_url":"https://codeload.github.com/kbysiec/vite-vanilla-ts-lib-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553959,"owners_count":22090417,"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":["eslint","husky","prettier","stylelint","template","typescript","vite","vitest"],"created_at":"2024-07-30T22:00:29.841Z","updated_at":"2025-05-16T15:05:21.560Z","avatar_url":"https://github.com/kbysiec.png","language":"TypeScript","funding_links":[],"categories":["Get Started","TypeScript","vite"],"sub_categories":["Templates"],"readme":"# vite-vanilla-ts-lib-starter\n\nThe starter is built on top of Vite 6.x and prepared for writing libraries in TypeScript. It generates a package with support for ESM modules and IIFE.\n\n## Features\n\n- 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- Vitest - 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: ESM (`.js`) and IIFE (`.iife.js`). The name of bundle is automatically taken from `package.json` name property\n- `test` - starts vitest and runs all tests\n- `test:coverage` - starts vitest 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%2Fkbysiec%2Fvite-vanilla-ts-lib-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkbysiec%2Fvite-vanilla-ts-lib-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbysiec%2Fvite-vanilla-ts-lib-starter/lists"}