Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaffolding for a vue plugin on npm #565

Open
luckydonald opened this issue Sep 6, 2024 · 2 comments
Open

Scaffolding for a vue plugin on npm #565

luckydonald opened this issue Sep 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@luckydonald
Copy link

Please describe

Currently it's unclear how to setup and configure a repo to write a plugin for vue, i.e. a custom component to import from npm

Additional context

It would be great to have a generator for that, i.e. with

npm create vue@latest --plugin

or similar.

@luckydonald luckydonald added the enhancement New feature or request label Sep 6, 2024
@luckydonald
Copy link
Author

I've seen https://vuejs.org/guide/reusability/plugins.html, but this is not covering how to have that plugin prepared to be a standalone (external) file (package.json, etc.), only the vue file(s) itself.

@luckydonald luckydonald changed the title Scaffolding for a npm plugin Scaffolding for a vue plugin on npm Sep 6, 2024
@Yordan-Ramchev
Copy link
Contributor

@luckydonald You need Vite to create a bundle, here is a link https://vitejs.dev/guide/build.html#library-mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants