Skip to content

kurone-kito/pnpm-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“„ PNPM project template

Features

  • PNPM
  • TypeScript
  • Biome
  • Commitlint with Husky
  • Visual Studio Code / Vim ready
  • CI configurations
    • CodeRabbit
    • Dependabot
    • GitHub Actions

how to use this template

You can create a new project by using degit or the โ€œUse this templateโ€ button on GitHub.

npx degit kurone-kito/pnpm-project-template my-project
cd my-project
pnpm install

Example settings

Monorepo

Add package directories to pnpm-workspace.yaml:

packages:
  - packages/*

Non-monorepo

Remove pnpm-workspace.yaml if you do not need workspace support.

System Requirements

  • Node.js: Any of the following versions
    • Iron LTS (^20.11.x)
    • Jod LTS or latest (>=22.x.x)

Note that this template includes .node-version, .nvmrc, and .tool-versions files with specific Node.js versions (20.19.2). Update these files and this section as needed when you start a new project.

Install the dependencies

corepack enable
pnpm install

Linting

pnpm run lint
pnpm run lint:fix # Lint and auto-fix

Testing

pnpm run test

Currently, the command works as an alias for the pnpm run lint command. Set up your own testing framework and replace this script as needed.

Cleaning

pnpm run clean

Rules for Development

Welcome to contribute to this repository! For more details, please refer to CONTRIBUTING.md.

Introduce commit message validation at commit time. The โ€œConventional Commitsโ€ rule is applied to discourage committing messages that violate conventions.

LICENSE

MIT

About

๐Ÿ“„ The boilerplate of the pnpm project; since 2024.9

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks