A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
name | alias |
---|---|
application | app |
angular-app | ng-app |
class | cl |
configuration | config |
controller | co |
decorator | d |
filter | f |
gateway | ga |
guard | gu |
interceptor | in |
interface | interface |
middleware | mi |
module | mo |
pipe | pi |
provider | pr |
resolver | r |
service | s |
library | lib |
Nest framework TypeScript starter repository.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.
<type>: <subject>
注意冒号后面有空格。
- feat:新功能(feature)
- fix:修补bug
- docs:文档(documentation)
- style: 格式(不影响代码运行的变动)
- refactor:重构(即不是新增功能,也不是修改bug的代码变动)
- test:增加测试
- chore:构建过程或辅助工具的变动
subject是 commit 目的的简短描述,不超过50个字符,且结尾不加句号(.)。
npm install @commitlint/cli @commitlint/config-conventional --save-dev
npm install husky --save-dev
package.json
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},