frontend-monorepo-template

1.0.0 • Public • Published

frontend-monorepo-template

npm package Build Status Downloads Issues Commitizen Friendly Semantic Release

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

Package Sidebar

Install

npm i frontend-monorepo-template

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

20.5 MB

Total Files

2565

Last publish

Collaborators

  • nazimali