frontend-monorepo-template

Monorepo template configured with Yarn 2, Typescript, automated Gihub releases and npm publishing.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
frontend-monorepo-template
001.0.02 years ago2 years agoMinified + gzip package size for frontend-monorepo-template in KB

Readme

frontend-monorepo-template
!npm packagenpm-imgnpm-url !Build Statusbuild-imgbuild-url !Downloadsdownloads-imgdownloads-url !Issuesissues-imgissues-url !Commitizen Friendlycommitizen-imgcommitizen-url !Semantic Releasesemantic-release-imgsemantic-release-url
Monorepo template configured with Yarn 2, Typescript, automated Gihub releases and npm publishing.

Structure

project
│   README.md
│
└───.github
│   └───workflows
│       │   release.yml
│       │   unit-tests.yml
│
└───packages
    └───package-a
    │   │   release.yml
    │   │   package.json
    │   │   tsconfig.json
    │   └───src
    │   |     | index.ts
    │   └───test
    │         | index.spec.ts
    └───package-b
        │   release.yml
        │   package.json
        │   tsconfig.json
        └───src
        |     | index.ts
        └───test
               | index.spec.ts

The folder packages contains independent npm packages. Each one has its own package.json with a unique name and yarn workspaces will automatically recognize them. Review yarn workspaces for requirements.

Install

Repo is pre-configured as a template

Useful commands

Run scripts from each package
yarn workspaces foreach run lint

yarn workspaces foreach run test

yarn workspaces foreach run build