Skip to content

Latest commit

 

History

History
82 lines (58 loc) · 1.31 KB

README.md

File metadata and controls

82 lines (58 loc) · 1.31 KB

📄 Yarn project boilerplate

Features

  • Yarn (berry) with PnP
  • TypeScript
  • ESLint
  • Prettier
  • Commitlint with Husky
  • Visual Studio Code / Vim ready
  • CI configurations
    • CodeRabbit
    • Dependabot
    • GitHub Actions

System Requirements

  • Node.js
    • Hydrogen LTS (^18.20.4)
    • Iron LTS (^20.10)
    • >=22

Install the dependencies

corepack enable
yarn install

Linting

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

Testing

yarn run test

Currently, the command works as an alias for the yarn run lint command.

Cleaning

yarn run clean

Migrate to NPM

# 1. Remove all untracked files
git clean -fdx

# 2. Patch to the project
patch -p1 < patches/migrate-to-npm.patch

# 3. Remove some files
npm x -y -- rimraf .yarn .yarnrc.yml yarn.lock

# 4. Install the dependencies
npm install

# (Optional) 5. Commit the changes
git add -A
git commit -m 'chore: migrate to NPM'

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