frontend-monorepo-template
v1.0.0
Published
Monorepo template configured with Yarn 2, Typescript, automated Gihub releases and npm publishing.
Downloads
3
Maintainers
Readme
frontend-monorepo-template
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