Skip to content
/ vivu-npm Public template

๐Ÿงฉ Starter template to build component library for vue.js 2-3

License

Notifications You must be signed in to change notification settings

logustra/vivu-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 21, 2022
149b64f ยท Nov 21, 2022

History

17 Commits
Nov 21, 2022
Mar 24, 2022
Mar 24, 2022
Nov 21, 2022
Mar 24, 2022
Mar 24, 2022
Mar 24, 2022
Mar 24, 2022
Mar 24, 2022
Mar 24, 2022
Nov 21, 2022
Nov 21, 2022
Sep 16, 2022
Nov 21, 2022
Mar 24, 2022
Mar 24, 2022

Repository files navigation

Vivu NPM

License Code Style Commitizen

Starter template to build component library for vue.js 2-3

Features

Requirement

Getting Started

GitHub Template

Create a repo from this template on GitHub.

Clone to local

If you prefer to do it manually with the cleaner git history

# clone repository
$ git clone https://github.com/logustra/vivu-npm.git

# open folder vivu-npm
$ cd vivu-npm

# install packages
$ pnpm install

# build and serve with vite dev server
$ pnpm dev

Checklist

When you use this template, try follow the checklist to update your info properly

  • Change name, description, repository, bugs field in package.json
  • Change the author name in LICENSE
  • Change the lib name in vite.config.ts
  • Change the favicon in public
  • Remove the .github folder which contains the funding info
  • Clean up the README(s) and remove modules

And, enjoy :)

Publish to NPM

Make sure you have added the GIT_TOKEN and NPM_TOKEN encrypted secrets

# tag git history
$ git tag v0.0.1 -m 'v0.0.1'

# push tag to git
$ git push origin --tags

Usage

Setup

Vue 3

import { createApp } from 'vue'
import HelloWorld from '@logustra/vivu-npm'
import App from './app.vue'

const app = createApp(App)
app.use(HelloWorld)

Vue 2

import Vue from 'vue'
import CompositionAPI from '@vue/composition-api'
import HelloWorld from '@logustra/vivu-npm'

Vue.use(CompositionAPI)
Vue.use(HelloWorld)

Basic Usage

<template>
  <hello-world />
</template>

Demo โ†’

Cheers me on

Love my works? give me ๐ŸŒŸ or cheers me on here ๐Ÿ˜†
Your support means a lot to me. It will help me sustain my projects actively and make more of my ideas come true.
Much appreciated! โค๏ธ ๐Ÿ™

    ๐Ÿ™ Github
    ๐ŸŒ Ko-Fi
    ๐Ÿ‡ฎ๐Ÿ‡ฉ Trakteer

License

MIT License ยฉ 2022 Faizal Andyka