@roker125/vuelibrary
v2.0.20
Published
To add a new component create your component in the components folder. MAKE SURE your component has a name property. This name will be used as tag name if the package is importet into anoter project.
Downloads
8
Readme
#Adding a new component To add a new component create your component in the components folder. MAKE SURE your component has a name property. This name will be used as tag name if the package is importet into anoter project.
###Adding component to the component list: In the components.js file you have to import your created componenent and add it to the exported object at the bottom.
##Publish the new component Make sure you are logged in to npm. To log in you can use npm login; enter your credentials and you are logged in. Run following command to build and publish your package: npm run build_publish
#Update an existing component Just make your changes in the component and execute the command: npm run build_publish
#Using the package which was created an uploaded to npm
##Install package: install the package from npm using npm install mypackagename
##Adding the package to your vue app Import the installed packaege to your App.vue file and add it before you mount the app with: app.use(plugin)
###Using the component You can now use the component from the package globally in your vue application. You just have to use the name you specified in the name property of the component object.