{"id":21185972,"url":"https://github.com/shivadharmi/vue2-library-template","last_synced_at":"2026-04-13T23:02:00.719Z","repository":{"id":180622585,"uuid":"615969641","full_name":"shivadharmi/vue2-library-template","owner":"shivadharmi","description":"About A template for creating a vue2 library which is production ready with all the required configurations.","archived":false,"fork":false,"pushed_at":"2023-03-19T08:26:05.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T20:16:49.551Z","etag":null,"topics":["frontend","library","module","typescript","vite","vitest","vue","vue2","vuejs"],"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/shivadharmi.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-03-19T08:17:08.000Z","updated_at":"2023-05-15T13:44:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"c59cbafa-71d5-4b80-8079-34db48cfac3e","html_url":"https://github.com/shivadharmi/vue2-library-template","commit_stats":null,"previous_names":["shivadharmi/vue2-library-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/shivadharmi/vue2-library-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivadharmi%2Fvue2-library-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivadharmi%2Fvue2-library-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivadharmi%2Fvue2-library-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivadharmi%2Fvue2-library-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shivadharmi","download_url":"https://codeload.github.com/shivadharmi/vue2-library-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivadharmi%2Fvue2-library-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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":["frontend","library","module","typescript","vite","vitest","vue","vue2","vuejs"],"created_at":"2024-11-20T18:20:25.386Z","updated_at":"2026-04-13T23:02:00.704Z","avatar_url":"https://github.com/shivadharmi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue2-Library-Template\r\n## _Configured for all kinds of environments [prod, dev and local]_\r\n## Features\r\n\r\n- Built with typescript support\r\n- Built with [vite.dev] (Next Generation Frontend Tooling)\r\n- Exports types automatically as .d.ts files using [vite-plugin-dts]\r\n- Configured with [vitest] for unit testing\r\n- Test components by importing them into index.ts file and running the command  ```yarn run dev```\r\n- No need to create separate project to test the library\r\n\r\n## Tech\r\n\r\nVue2-Library-Template uses a number of open source packages to create a production ready vue library:\r\n\r\n- [Typescript] - TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.\r\n- [Vue.js] - An approachable, performant and versatile framework for building web user interfaces.\r\n- [vite.dev] - Next Generation Frontend Tooling\r\n- [Eslint] - ESLint statically analyzes your code to quickly find problems. It is built into most text editors and you can run ESLint as part of your continuous integration pipeline.    \r\n- [Prettier] - An opinionated code formatter\r\n- [Husky] - Husky improves your commits and more 🐶 woof!\r\n- And many other plugins\r\n\r\nAnd of course Vue2-Library-Template itself is open source with a [public repository][VLT] on GitHub.\r\n\r\n## Installation\r\nRequires [Node.js](https://nodejs.org/) v10+ to run.\r\n\r\nInstall the dependencies and devDependencies and start the server.\r\nHTTPS:\r\n```sh\r\ngit clone https://github.com/ssrbloginsoft/vue2-library-template.git \r\n```\r\nSSH:\r\n```sh\r\ngit clone git@github.com:ssrbloginsoft/vue2-library-template.git\r\n```\r\n#### _Install_\r\n```sh \r\nnpm i\r\nor\r\nyarn install\r\n```\r\n#### _Build_\r\n```sh\r\nyarn run build\r\n```\r\n#### _Test_\r\n```sh\r\nyarn run test:unit\r\n```\r\n#### _Development_\r\nRun development server to test the component changes by importing it in ```App.vue```. No need to create another project to test the changes.\r\n```sh\r\nyarn run dev\r\n```\r\nFor running linter:\r\n```sh\r\nyarn run lint\r\n```\r\n#### _Creating a component_\r\nCreate a new component in components folder with ```.vue``` extension and export the component in ```main.ts```:\r\n```ts \r\nexport { default as ImageComponent } from \"@components/ImageComponent.vue\";\r\n```\r\nBy running the build command a dist folder will be generated\r\n\r\n_Exporting types:_\r\n```ts\r\nexport type { User } from \"./types\";\r\n```\r\n\r\n\r\n\r\n\r\n## License\r\n\r\nMIT\r\n\r\n**Free Software, Hell Yeah!**\r\n\r\n   [VLT]: \u003chttps://github.com/ssrbloginsoft/vue2-library-template\u003e\r\n   [vite.dev]: \u003chttps://github.com/joemccann/dillinger\u003e\r\n   [vite-plugin-dts]: \u003chttps://github.com/qmhc/vite-plugin-dts\u003e\r\n   [vitest]: \u003chttps://vitest.dev/\u003e\r\n   [Vue.js]: \u003chttps://vuejs.org/\u003e\r\n   [Eslint]: \u003chttps://eslint.org/\u003e\r\n   [Prettier]: \u003chttps://prettier.io/\u003e\r\n   [Typescript]: \u003chttps://www.typescriptlang.org/\u003e\r\n   [Husky]: \u003chttps://www.npmjs.com/package/husky\u003e\r\n   \r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivadharmi%2Fvue2-library-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivadharmi%2Fvue2-library-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivadharmi%2Fvue2-library-template/lists"}