An open API service indexing awesome lists of open source software.

https://github.com/raisiqueira/ts-template-starter

A PNPM monorepo for my personal projects
https://github.com/raisiqueira/ts-template-starter

monorepo pnpm tsup typescript typescript-library vitest

Last synced: 6 days ago
JSON representation

A PNPM monorepo for my personal projects

Awesome Lists containing this project

README

          

# pnpm-monorepo

> A PNPM monorepo template for my personal projects.

## What is in this repository?

- [PNPM](https://pnpm.io/workspaces) as workspace manager and package manager.
- [TSUP](https://tsup.egoist.dev/) as a TypeScript universal package.
- [Vitest](https://vitest.dev/) as a test runner.
- [Size Limit](https://github.com/ai/size-limit) as a size limit plugin.
- [Prettier](https://prettier.io/) as a code formatter.
- [ESLint](https://eslint.org/) as a code linter.
- [NX](https://nx.dev) as cacheable operations.
- [Changesets](https://github.com/changesets/changesets/) as a way to manage changes and releases.

## Using this repository

- clone the repository or click in "Use this template" button.
- Go to `lib/package.json` and edit the `name`, `description` and `author` fields.

## Folder structure

- docs - An empty folder to store documentation.
- example - A folder with an example project. Think as playground.
- lib - A folder with a library.

## Using NX to run commands

NX is a cacheable build tool (and Monorepo manager). This project uses it to run the `build`, `test` and `coverage` commands.

```bash
# Instead of running `pnpm build`, run:
pnpm nx build lib
```

## License

MIT @ Raí Siqueira