wwsun / react-ts-monorepo

A template repository for setting up a monorepo with typescript and react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-ts-monorepo

a monorepo example with react and typescript

How to setup

# install dependencies
yarn

# build
yarn build

# publish
yarn pub

FAQ

Why should setting include and outDir for each package

include and outDir cannot be hoisted in the root config, because they are reserved relatively to the config they are in.

see microsoft/TypeScript#29172 (comment)

Publish packages with a scope, e.g. @nupt/foo

setup lerna.json

  "publishConfig": {
    "access": "public"
  }

About

A template repository for setting up a monorepo with typescript and react

License:MIT License


Languages

Language:TypeScript 100.0%