Giter Club home page Giter Club logo

monorepo-samples's Introduction

monorepo-samples

This repo demonstrates various TypeScript monorepo structures. All with similar structure and packages.

Demonstrations

You can see each demonstration on these respective git branches:

  • lerna
  • pnpm
  • pnpm-and-lage
  • pnpm-and-ultra-runner
  • rush (TBA)

Requirements

Package Structure

  • @infra/deploy-service
  • @infra/deploy-web
  • @infra/shared-configs
  • apps/web-application <- @infra/deploy-web
  • apps/web-application <- @infra/shared-configs
  • apps/web-application <- button
  • apps/web-application <- service-client
  • packages/button <- @infra/shared-configs
  • packages/math-util <- @infra/shared-configs
  • packages/service-client <- @infra/shared-configs
  • packages/service-client <- math-service (only for types)
  • services/math-service <- @infra/deploy-service
  • services/math-service <- @infra/shared-configs
  • services/math-service <- math-utils

Package Script Requirements

All Packages

  • "clean" - remove dist
  • "lint" - run ESLint
  • "static-check" - run TypeScript
  • "unit-test" - run Jest
  • Jest Config

apps/web-application

  • "build" - Bundle for the browser
  • "deploy" - Run a script that sleeps for 10s
  • "start" - Start a development server
  • ESLint profile: Web
  • TypeScript profile: Web

packages/button

  • "build" - Bundle for the browser
  • ESLint profile: Web
  • TypeScript profile: Web

packages/math-service-client

  • "build" - Bundle for node
  • ESLint profile: Node
  • TypeScript profile: Node

packages/math-util

  • "build" - Bundle for Node
  • ESLint profile: Node
  • TypeScript profile: Node

services/math-service

  • "build" - Bundle for node
  • "deploy" - Run a script that sleeps for 10s
  • ESLint profile: Node
  • TypeScript profile: Node

monorepo-samples's People

Contributors

dannyfritz avatar

Watchers

 avatar James Cloos avatar  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.