Skip to content

Vanisper/nodejs-template

Folders and files

NameName
Last commit message
Last commit date
Mar 12, 2025
Feb 8, 2025
Feb 8, 2025
Feb 8, 2025
Feb 8, 2025
Feb 8, 2025
Feb 8, 2025
Feb 8, 2025
Feb 8, 2025
Feb 8, 2025
Feb 8, 2025

Repository files navigation

nodejs-template

一个 Node.js 项目快速起手模板。

集成技术

  • TypeScript:使用 TypeScript 编写代码
  • ESLint:代码风格检查
  • commitlint:规范 commit message
  • commitizen:规范 commit message,主要是与 git-hook 侧的交互
  • lefthook:git-hook 工具

构建过程

# commitlint
pnpm install --save-dev @commitlint/cli @commitlint/config-conventional
# commitizen
pnpm install --save-dev commitizen cz-git
# eslint & lefthook(ts 版的 eslint 配置文件需要 jiti 支持)
pnpm install --save-dev eslint jiti @antfu/eslint-config lefthook

安装了 commitizen & cz-git 之后, 需要在 package.json 中添加如下配置:

{
  "config": {
    "commitizen": {
      "path": "node_modules/cz-git"
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published