microfront_vue_content
v0.1.4
Published
A ready-made template for making vue3 components for the ease of publishing packages in npm and... ## Setup 1. Build your component in the lib folder 2. Customize your component name (in the `package.json` files and in the `lib` folder of the `main.ts`
Downloads
6
Readme
Micro Component Template Vue + Vite
A ready-made template for making vue3 components for the ease of publishing packages in npm and...
Setup
- Build your component in the lib folder
- Customize your component name (in the
package.json
files and in thelib
folder of themain.ts
file) - To test and display the component you made, you can use it in the
App.vue
file and at the end, clickyarn dev
ornpm run dev
and start the project.
Publish npm
- use
npm run build
oryarn build
- use
npm adduser
- use
npm publish
After going through the above steps, your component is published in npm and you can install it in any project you want with the following command
npm instll componante-name