Skip to content

multi-package monorepo starter using typescript, lerna, jest, hygen, eslint, travis

License

Notifications You must be signed in to change notification settings

binier/typescript-multi-package-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6623bcc · Jun 12, 2020

History

7 Commits
Jun 11, 2020
Jun 11, 2020
Jun 11, 2020
Jun 11, 2020
Jun 11, 2020
Jun 11, 2020
Jun 11, 2020
Jun 11, 2020
Jun 11, 2020
Jun 12, 2020
Jun 11, 2020
Jun 11, 2020
Jun 11, 2020
Jun 12, 2020
Jun 11, 2020
Jun 12, 2020

Repository files navigation

Typescript multi package starter

Starter for typescript monorepo.

Get started

  • Clone repository:

    • with degit (clone without git history):
      npx degit https://github.com/binier/typescript-multi-package-starter.git YOURFOLDERNAME
      
    • with git:
      git clone https://github.com/binier/typescript-multi-package-starter.git YOURFOLDERNAME
      
  • Install dependecies:

    yarn install
    
  • Edit name and respository.url in package.json to your package name and it's repository url.

  • Edit compilerOptions.paths key from @typescript-multi-package-starter/* to @nameOfYourPackage/*.

    Note: nameOfYourPackage should match name in package.json.


Add package

Add new package to monorepo using:

yarn package:add foo

Command creates new package under directory packages/foo