A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
ngst cli
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 |
Description
Nest framework TypeScript starter repository.
Installation
$ npm install
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Test
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Support
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.
Stay in touch
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
License
Nest is MIT licensed.
commitlint
Commit message格式
<type>: <subject>
注意冒号后面有空格。
type
- feat:新功能(feature)
- fix:修补bug
- docs:文档(documentation)
- style: 格式(不影响代码运行的变动)
- refactor:重构(即不是新增功能,也不是修改bug的代码变动)
- test:增加测试
- chore:构建过程或辅助工具的变动
subject
subject是 commit 目的的简短描述,不超过50个字符,且结尾不加句号(.)。
安装
npm install @commitlint/cli @commitlint/config-conventional --save-dev
husky
npm install husky --save-dev
package.json
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},