Skip to content

๐Ÿ“„ The boilerplate of the Yarn project with PnP; since 2022.4

License

Notifications You must be signed in to change notification settings

kurone-kito/yarn-project-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“„ 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