Skip to content

Commit 420bbd9

Browse files
committed
doc: update npm script descrption
1 parent b278feb commit 420bbd9

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ Ant Design 组件库的 Angular 实现,开发和服务于企业级后台产品
3838

3939
### Jest + Protractor
4040

41-
单端测试框架Jest
42-
e2e测试框架Protractor
41+
* 单端测试框架Jest
42+
* e2e测试框架Protractor
43+
4344
参考:
4445
* [Angular + Jest + Wallabyjs why it is the ideal combination! And how to configure](https://blog.cloudboost.io/angular-jest-wallabyjs-why-it-is-the-ideal-combination-and-how-to-configure-b4cbe2eff4b3)
4546
* [Angular 6: “ng test” with Jest in 3 minutes](https://codeburst.io/angular-6-ng-test-with-jest-in-3-minutes-b1fe5ed3417c)
@@ -59,12 +60,22 @@ lint-staged 结合 tslint 和 stlyelint 会在 git 提交代码前对代码进
5960

6061
## 代码提交规范
6162

62-
commit 分为 fix、feat、doc 三种
63+
commit 分为 fix、feat、doc 三种
6364

6465
* fix: 用于修复 bug ,例如: fix: remove unused dependcies.
6566
* feat: 用于添加新的功能或特性等,例如: feat: add login page.
6667
* doc: 用于更新文档,例如: doc: update description of project architecture.
6768

69+
## npm 脚本说明
70+
71+
* 本地调试: npm run start
72+
* 打包为静态文件: npm run build
73+
* 单元测试: npm run test
74+
* e2e测试: npm run e2e
75+
* 静态检查: npm run lint
76+
* 热更新方式调试: npm run hmr
77+
* 测试覆盖率: npm run test:coverage
78+
6879
## License
6980

7081
The MIT License (see the [LICENSE](https://github.com/coderiver-org/coderiver-angular/blob/master/LICENSE) file for the full text)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "npm run color-less && ng serve --proxy-config proxy.conf.json --host 0.0.0.0 -o",
88
"build": "npm run color-less && ng build --prod --build-optimizer",
99
"test": "ng test",
10-
"lint": "npm run lint:style",
10+
"lint": "npm run lint:ts && npm run lint:style",
1111
"e2e": "ng e2e",
1212
"postinstall": "node ./scripts/pug-rule-insert.js",
1313
"color-less": "node scripts/color-less.js",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy