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 🙏

© 2024 – Pkg Stats / Ryan Hefner

fms-fe-core-modules

v1.0.2

Published

imas-connect core modules

Downloads

2

Readme

fms-fe-core-modules

Description

imas-fe core module packages

사용 기술

  • pnpm
  • parcel
  • typescript

초기 설정 & 실행

  1. pnpm & dependencies 설치
npm install -g pnpm
pnpm install
  • pnpm으로 모노레포를 관리하기 때문에 pnpm 이외의 package manager를 사용하면 안됩니다.
  • "preinstall": "npx only-allow pnpm" 을 설정하여 스크립트 실행전 pnpm 사용여부 체크
  1. 배포할 모듈 추가 및 변경
  • packages 하위 디렉토리의 src 폴더에서 작업

  • src/index.ts에서 import 및 export

  • 예시

    // packages/utils/src/print.ts
    
    export function printHello(name: string) {
      console.log(`Hello, ${name}`);
    }
    // packages/utils/src/index.ts
    
    import { printHello } from "./print";
    
    export { printHello };
  1. 버전 수정
  • 배포 전 변경된 packages 하위 디렉토리의 package.json 버전을 수정
  • 버전 규칙은 상의해서 결정
  • 현재(초기 버전)는 0.0.2로 배포되어 있습니다.
  • 예시
    // packages/utils/package.json
    {
      "name": "@imasdev/utils",
      "version": "수정할 버전",
      "description": "util functions",
      "source": "src/index.ts",
      "main": "dist/index.js",
      "module": "dist/index.module.js",
      "types": "dist/index.d.ts",
      "files": ["dist"],
      "sideEffects": false,
      "keywords": [],
      "author": "imasdev",
      "license": "ISC",
      "repository": {
        "type": "git",
        "url": "https://github.com/imasdev/fms-fe-core-modules"
      },
      "publishConfig": {
        "@imasdev:registry": "https://npm.pkg.github.com"
      }
    }
  1. 빌드 & 배포

    pnpm은 자체적으로 workspace를 이용하기 때문에 directory 별로 배포를 진행하는 별도의 명령어 (yarn workspaces ~ foreach ...)를 실행할 필요가 없습니다.

  • recursive publish

    • 현재 디렉토리에 있는 모든 패키지를 재귀적으로 찾아 배포 (워크스페이스에 있는 모든 패키지 배포)
    • 하위 패키지에 있는 종속성도 함께 배포됨
  • 현재 작업중인 모든 변경 사항을 commit 또는 push해야 배포가 가능합니다.

    pnpm build
    pnpm recursive publish

모노레포 github pacakges 초기 세팅 문서

초기 세팅 가이드 문서입니다.

github packages 모노레포 초기 세팅 가이드