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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bwg-ui/core

v2.0.20

Published

bankwareglobal UI 라이브러리입니다.

Readme

@bwg-ui/core

Vite 기반 React UI 라이브러리입니다.

설치

npm install @bwg-ui/core

사용법

전체 import

import { BwgButton, BwgGrid, formatDate } from "@bwg-ui/core";

카테고리별 import

import { BwgGrid, BwgButtonGroup, BwgTable } from "@bwg-ui/core/common";
import { BwgButton, BwgInput, BwgForm } from "@bwg-ui/core/core";
import { formatDate, validateEmail, realFormat } from "@bwg-ui/core/utils";
import { useCodeStore, useMenuDataStore } from "@bwg-ui/core/stores";
import { CommonCodeProvider, UtilsProvider } from "@bwg-ui/core/provider";

import "@bwg-ui/core/styles/main.css";
import iconUrl from "@bwg-ui/core/styles/assets/images/icon.png";
import config from "@bwg-ui/core/public/config.json";

개발

npm install
npm run dev          # 로컬 개발 서버
npm run build        # dist 빌드
npm run type-check   # 타입 검사

로컬 tgz 배포 (레지스트리 없이)

소비 프로젝트에 tgz 파일로 바로 넘길 때:

npm run pack                              # build + tgz → libs/
npm run build:dev                         # pack + 소비 프로젝트 libs/ 복사
npm run copy-tgz-to-dev -- --target=kiam  # 복사 대상 프로젝트 지정

생성 파일: libs/bwg-ui-core-{version}.tgz

소비 프로젝트 package.json:

"@bwg-ui/core": "file:./libs/bwg-ui-core/bwg-ui-core-1.6.17.tgz"

자세한 스크립트 설명은 scripts/README.md를 참고하세요.

BwgEditor 관련 (필독)

BwgEditor 사용 시 소비 프로젝트에서 아래 버전을 반드시 고정해야 합니다.

npm i -E [email protected] [email protected] [email protected]
{
  "dependencies": {
    "quill": "1.3.7",
    "react-quill": "2.0.0",
    "quill-image-resize-module-react": "3.0.0"
  }
}

버전이 다르면 Uncaught TypeError: moduleClass is not a constructor 오류가 발생할 수 있습니다.


배포

외부 npm과 내부 Gitea를 병행합니다.

외부망 개발/검증 → npm publish → 안정화 → 소스 내부망 반입 → Gitea publish

스크립트 요약

| 스크립트 | 대상 | 설명 | |----------|------|------| | publish:patch / minor / major | npmjs.com | 외부망 개발·검증용. 버전 bump + 빌드 + publish | | publish:gitea | Gitea | 버전 bump 없이 현재 버전을 Gitea에 올림 | | publish:gitea:patch / minor / major | Gitea | 버전 bump + 빌드 + Gitea publish |

1. 외부망 — npm

npm run publish:patch    # 1.6.17 → 1.6.18 + npmjs publish
npm run publish:minor
npm run publish:major
  • publish:npm은 --registry=https://registry.npmjs.org/를 명시합니다.

2. 내부망 — Gitea

소스 반입 후 내부망 PC에서:

npm install
npm run install:icons   # @bwg-ui/icons 만 Gitea에서 install (빌드용, icons 선행 배포 필요)

# 외부 npm과 같은 버전을 Gitea에 반영
npm run publish:gitea

# 내부망에서 버전을 새로 올릴 때
npm run publish:gitea:patch
npm run publish:gitea:minor
npm run publish:gitea:major

설정: Gitea 주소·토큰은 scripts/publish-gitea.mjs 상단에 하드코딩되어 있습니다. 변경 시 해당 파일만 수정하면 됩니다.

const GITEA_HOST = 'http://218.232.105.112:7001';
const GITEA_OWNER = 'bwg-ui';
const GITEA_TOKEN = '...';

동작:

  1. Gitea 레지스트리에 동일 버전 존재 여부 확인 (있으면 중단)
  2. prepublishOnly로 자동 빌드
  3. npm publish --registry=... 실행

레지스트리: http://{IP}:{PORT}/api/packages/bwg-ui/npm/

CI 배포 (선택)

.gitea/workflows/package-regist.yml — deploy-* 태그 push 시 Gitea Actions로 자동 배포.

로컬 publish:gitea*를 사용하면 태그 push는 필요 없습니다.