npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

test-leem-vue3-components

v1.42.0

Published

```code .github/workflows/npm-package-publish.yml ``` - https://www.npmjs.com/ - settings - Access Tokens - Claasic Token - Name/Automation -> 토큰발급 - https://github.com/ 이동 - 해당 레파시토리 -> settings - Secrets and variables -> Actions - New repository secret

Readme

test-leem test build

github action

.github/workflows/npm-package-publish.yml
  • https://www.npmjs.com/
  • settings
  • Access Tokens
  • Claasic Token
  • Name/Automation -> 토큰발급
  • https://github.com/ 이동
  • 해당 레파시토리 -> settings
  • Secrets and variables -> Actions
  • New repository secret
  • name/Secret영역에 npm에서 발급받은 토큰입력

/lib/main.ts 작성

import TestLeem1 from '../src/components/TestLeem1.vue'
import TestLeem2 from '../src/components/TestLeem2.vue'

export default{
    install: (app:any, options?:any)=>{
        const globalOptions = options || {};
        app.provide('globalOptions', globalOptions);
        app.config.globalProperties.$testleem = (s:any)=>{
            console.log(s);
            console.log(123);
            return `hello plugins params : ${s}`
        }
        app.component('TestLeem1', TestLeem1);
        app.component('TestLeem2', TestLeem2);
    }
}

export {
    TestLeem1,
    TestLeem2
}

/src/main.ts 에서

import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import testleem from '../lib/main'

createApp(App).use(testleem).mount('#app')

vite.config.ts

import { resolve } from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  plugins: [vue()],
  build: {
    lib: {
      // 여러 진입점은 객체 또는 배열로 지정할 수 있습니다.
      entry: resolve(__dirname, 'lib/main.ts'),
      name: 'testleem',
      // 적절한 확장자가 추가됩니다.
      fileName: 'test-leem'
    },
    rollupOptions: {
      // 라이브러리에 포함하지 않을
      // 디펜던시를 명시해주세요
      external: ['vue'],
      output: {
        // 라이브러리 외부에 존재하는 디펜던시를 위해
        // UMD(Universal Module Definition) 번들링 시 사용될 전역 변수를 명시할 수도 있습니다.
        globals: {
          vue: 'Vue'
        }
      }
    }
  }
})

package.json

{
    "private": false,
     "main": "./dist/test-leem.umd.cjs",
    "module": "./dist/test-leem.js",
    "exports": {
        ".": {
        "import": "./dist/test-leem.js",
        "require": "./dist/test-leem.umd.cjs"
        }
    },
}

cmd

작업완료 후 
npm run build

/dist/.. 파일 업데이트

npm adduser

npmjs.com 로그인 후

npm publish --access public <-- 초기에만
/버전업 할때
npm version major | minor | patch
npm publish

프로젝트 import

import { createApp } from 'vue'
import App from './App.vue'
import UiComponents from 'test-leem-vue3-components'

createApp(App).use(UiComponents).mount('#app')
<template>
  <img alt="Vue logo" src="./assets/logo.png">
  <HelloWorld msg="Welcome to Your Vue.js App"/>
  <BsInputField ref="refLoginInput" v-model="testModel" :isError="true">
    <template #slotInputSectionLeftArea>
      <BsIcon :type="'icon_arrow_before_line'" />
    </template>
    <template #slotInputSectionRightArea> asdf </template>
    <template #slotSupportMessage> 서포트메시지12 </template>
  </BsInputField>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
import {BsIcon, BsInputField} from 'test-leem-vue3-components'

export default {
  name: 'App',
  components: {
    HelloWorld,
    BsInputField,
    BsIcon
  },
  data(){
    return {
      testModel: 123
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>