@shepherd23/nx-preset-ts-monorepo
This is a template for a typescript monorepo project.
The monorepo includes:
- pnpm as the package manager and the workspace tool
- nx as the workspace manager, specifically for building and publishing.
- lerna as the monorepo manager, specifically for versioning and changelog generation.
- typescript as the language.
- jest as the test runner.
- eslint as the linter.
- prettier as the code formatter.
- husky as the git hooks manager.
- commitlint as the commit message linter.
- Github Actions as the CI/CD tool.
Template files
See ./files
for the template files.
Usage
# `pnpm dlx` is equivalent to `npx`
pnpm dlx create-nx-workspace @shepherd23/nx-preset-ts-monorepo <project-name>
# Navigate to the project
cd <project-name>
# Install dependencies
pnpm install
Arguments
project-name
[Required] The name of the project to generate.