快递和快递之间有什么不同? [英] What is the different between express and express-generator
问题描述
express
最近发布了4.1.0。现在您不能直接通过 npm intall -g express
直接使用命令行express,该版本在3.x版中运行良好。当我阅读包中的 Readme
时,看到 express-generator
。在 npm install -g express-generator
之后,我可以使用命令行。那有什么区别呢?只用于全局安装?使用express 4,将快速样板生成器命令行提取到自己的模块express-generator因为发电机应用程序并没有真正地与快速的Web框架共享代码,并且可以独立地发布快速和生成器应用程序。
我想这是走向正确解决方向的一步来自样板/骨架发生器的Web框架,因为这使得表达更加轻巧,并利用像yeoman这样专注于生成东西的工具。
As you might know, express
released 4.1.0 recently. Now you can not use the command line "express" directly via npm intall -g express
which is working just well in version 3.x. When I read the Readme
in the package, I saw express-generator
. After npm install -g express-generator
, I can use the command line. So,what's the difference? Only for global install?
With express 4 the express boilerplate generator command line was extracted to it's own module 'express-generator' because the generator app did not really share code with express web framework and express and generator app can be released independently.
I guess this was a step into the right direction to decouple the web framework from the boilerplate/skeleton generator since this makes express even more lightweight and leverages tools like yeoman that focus on generating things.
这篇关于快递和快递之间有什么不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!