egg-cnode
egg-cnode copied to clipboard
迁移总结
gist $ ./cloc-git https://github.com/cnodejs/nodeclub.git
194 text files.
194 unique files.
12 files ignored.
github.com/AlDanial/cloc v 1.76 T=1.09 s (170.3 files/s, 66779.9 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JavaScript 125 6577 10539 34314
CSS 11 2528 101 14147
HTML 43 300 9 2266
LESS 1 220 12 1085
Markdown 2 30 0 238
JSON 1 0 0 69
make 1 13 1 47
YAML 1 8 0 21
-------------------------------------------------------------------------------
SUM: 185 9676 10662 52187
-------------------------------------------------------------------------------
gist $ ./cloc-git https://github.com/cnodejs/egg-cnode.git
154 text files.
154 unique files.
12 files ignored.
github.com/AlDanial/cloc v 1.76 T=1.08 s (133.7 files/s, 64530.8 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JavaScript 87 6306 10269 32023
CSS 11 2528 101 14147
HTML 38 259 9 2185
LESS 1 221 12 1088
Markdown 2 45 0 115
YAML 3 7 6 94
JSON 1 0 0 67
Dockerfile 1 8 1 8
-------------------------------------------------------------------------------
SUM: 144 9374 10398 49727
-------------------------------------------------------------------------------
Summary:
- 文件数减少 41,减少 22%
- 代码行数减少 2460 行,减少 4.7%
- 测试代码减少 980 行,减少 39%,覆盖率高于原项目。
egg-cnode
$ cloc test/
16 text files.
16 unique files.
0 files ignored.
github.com/AlDanial/cloc v 1.76 T=1.05 s (15.2 files/s, 1698.5 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JavaScript 16 249 27 1511
-------------------------------------------------------------------------------
SUM: 16 249 27 1511
-------------------------------------------------------------------------------
nodeclub:
$ cloc ../nodeclub/test/
34 text files.
34 unique files.
0 files ignored.
github.com/AlDanial/cloc v 1.76 T=1.07 s (31.8 files/s, 2783.9 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JavaScript 34 351 130 2495
-------------------------------------------------------------------------------
SUM: 34 351 130 2495
-------------------------------------------------------------------------------
- ejs-mate => egg-view-ejs
- express => egg
- PM2 => egg-scripts
- mongoose => egg-mongoose
会做性能方面的对比吗?
没啥必要做性能方面的对比。有性能问题,alinode 分分钟就能修复
建议根据js应用的不同领域 增加更多细分板块
@yuu2lee4 那是运营问题。不是代码问题。