Coder Social home page Coder Social logo

monorepo-nestjs's Introduction

monorepo-nestjs

모노리포 구축 과정

yarn 설치

monorepo settings

  1. folder 생성 후 yarn init
  2. package.json 셋팅
{
  "name": "monorepo-nestjs",
  "packageManager": "[email protected]",
  "private": true,
  "workspaces": {
    "packages": ["packages/*"],
    "nohoist": ["packages/*"] // yarn workspace는 의존성이 기본적으로 hoist 됨
  }
}
  1. yarnrc.yml 파일 설정
# .yarnrc.yml
nodeLinker: node-modules

더 참고 할만한 사이트

추후 수정 예정 사항

  1. eslint 공통으로 뺄 것
  2. tsconfig 공통으로 뺄 것

그 외 기타

  • 어지간하면 nest에서 제공하는 것을 사용하자
    • 예를 들어 환경변수를 config를 모듈을 통해 만들었을 때, process.env는 네스트 모듈로 만들지 않는 이상 안먹는다.
      • 물론 다른 잡다한 방법이 있겠지만, nest를 쓰는 이상 nest 만든 사람들의 의도를 따르는게 좋을 거 같다.

monorepo-nestjs's People

Contributors

limkeunhyeok avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.