{"id":16439185,"url":"https://github.com/posva/vue-plugin-template","last_synced_at":"2025-09-11T06:31:28.695Z","repository":{"id":146341638,"uuid":"74411729","full_name":"posva/vue-plugin-template","owner":"posva","description":"🚀 Solid foundation to start a Vue plugin with the best developer experience and a focus on performance","archived":false,"fork":false,"pushed_at":"2018-05-17T23:51:48.000Z","size":105,"stargazers_count":189,"open_issues_count":3,"forks_count":27,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-01T23:34:37.494Z","etag":null,"topics":["component","plugin","rollup","template","vue","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/posva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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},"funding":{"github":"posva"}},"created_at":"2016-11-21T22:31:59.000Z","updated_at":"2025-02-28T03:02:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1a996bf-ac08-4bf7-aa71-a0307d8d6c6b","html_url":"https://github.com/posva/vue-plugin-template","commit_stats":{"total_commits":118,"total_committers":5,"mean_commits":23.6,"dds":0.0423728813559322,"last_synced_commit":"7d25a2c91f05c8dc670089fbecbfbfe080200987"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/posva/vue-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fvue-plugin-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fvue-plugin-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fvue-plugin-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fvue-plugin-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posva","download_url":"https://codeload.github.com/posva/vue-plugin-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posva%2Fvue-plugin-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274589507,"owners_count":25312971,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"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":["component","plugin","rollup","template","vue","webpack"],"created_at":"2024-10-11T09:08:24.745Z","updated_at":"2025-09-11T06:31:28.687Z","avatar_url":"https://github.com/posva.png","language":"JavaScript","funding_links":["https://github.com/sponsors/posva"],"categories":[],"sub_categories":[],"readme":"# vue-plugin-template\n\n\u003e ✨ DX experience \u0026 lighter plugins 🚀\n\n\n## Usage\n\n```bash\nvue init posva/vue-plugin-template my-awesome-plugin\n# Answer some questions\ncd my-awesome-plugin\nyarn\nnpm run dev\n# 🎉\n```\n\n## Features\n\n### Smaller plugin size\nBundle with [Rollup](https://github.com/rollup/rollup). This produces bundles\nthat are easier to debug and more lightweight but is less customizable than\nWebpack. But don't worry **you can also use Webpack** instead of Rollup 😉\n\n### Single file components\nWrite your components using `.vue` files. Those will be compiled into render\nfunctions when building your plugin to make them compatible everywhere.\n\n### JSX\nAdd jsx to your `js` files and they will be compiled as well.\n\n### ES6\nUse the future features of Javascript.\n\n### Pre commit lint and fix\nRuns `eslint` and `stylefmt`/`stylelint` before each commit on modified files\nonly and try to fix them automatically to prevent failing CI builds 😉.\n\n### Advanced testing\nGet the best developer experience by testing the components at the same\ntime you **interact** with them.\nEmbrace Visual testing 😎\n\n![visual testing](https://cloud.githubusercontent.com/assets/664177/21402771/504f94de-c7ba-11e6-9b10-3c9833a7e316.gif)\n\n### Next generation CSS\nUse [PostCSS](http://postcss.org/) by default with [CSSNext](http://cssnext.io/)\nto bring you future features of CSS.\n\n### SASS\nYou still need a preprocessor? Choose Webpack as the bundler and access more\nadvanced features\n\n### Development-only features\nAdd warnings to improve the DX of your plugin that are removed when bundling in\nproduction mode:\n\n```js\nif (process.env.NODE_ENV !== 'production' \u0026\u0026 warningCondition) {\n  warn('You should be doing things this way instead: ...')\n}\n```\nRefer to [Dist files](#dist-files) for more information.\n\n## Road-map\n\n- Add flow typings\n- `.github` folder\n- Add question for tests\n- Add question for visual tests\n- Add question for contribution guidelines \n- Add question for the license\n- Add question for linting\n\n**Something you would like to see on the template but not in the\nroad-map?\n[Fire an Issue!](https://github.com/posva/vue-plugin-template/issues/new)**\n\n## FAQ\n\n### Dist files\n\n_Q_: **Why are there 3 different generated files for js in the `dist` folder?**\n\n_A_: Each one serves its purpose: the non minified file (`lib.js`) replaces `process.env.NODE_ENV` by `\"development\"` to keep development only features like warning (pretty much like Vue warnings). The CommonJS file (`lib.common.js`) is meant to be used with bundlers like Webpack or Rollup and keeps the variable `process.env.NODE_ENV` so it can be replaced by bundlers. The minified version (`lib.min.js`) strips off development features by replacing `process.env.NODE_ENV` by `\"production\"`.\n\n_Q_: **When should I choose Rollup over Webpack for the bundler?**\n\n_A_: If [next-css](http://cssnext.io/) isn't enough for you, it's better to use\nWebpack. If a feature is missing\nin [vue-rollup-plugin](https://github.com/vuejs/rollup-plugin-vue) but present\non [vue-loader](https://github.com/vuejs/vue-loader/) you can benefit from it by\nusing Webpack. On the other hand if you're building a simple plugin with few\ncomponents, you should use Rollup as the bundler to get more lightweight lib\nsizes.\n\n## Contributing\n\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for help about developing this template\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposva%2Fvue-plugin-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposva%2Fvue-plugin-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposva%2Fvue-plugin-template/lists"}