Grunt-cli和Grunt - 相同的应用程序,两个版本? [英] Grunt-cli and Grunt - Same app, two versions?
问题描述
Achtung!
当时接受的答案回答了我的问题,但现在已经过时。当时grunt-cli使用grunt,但是使用另一个分支。
未被接受的答案会告诉你今天是怎么回事。
问题
什么是grunt-cli和grunt之间的关系和区别?
这似乎是同样的事情,但不同的版本。
Grunt
https://npmjs.org/package/grunt
https://github.com/gruntjs/grunt
Grunt-cli
https:// npmjs.org/package/grunt-cli
https://github.com/gruntjs/grunt/blob/devel/docs/getting_started.md
你是对的,这两个项目因为不同版本的grunt而存在。
grunt-cli
用于grunt版本0.4(并且有一个对0.4的隐式依赖),在写这篇文章的时候是用alpha开发的。 grunt-0.4将命令行界面(grunt-cli)从API库中分离出来。
开始使用您找到的文档位于 devel
分支,这将是0.4版本。
如果您使用的是grunt 0.3.x,那么你不需要安装 grunt-cli
。
Achtung!
The accepted answer answered my question at the time, but is now outdated. Back then grunt-cli used grunt, but with another branch. The not-accepted answers will tell you how it is today.
Question
What is the relations and differences between grunt-cli and grunt? It seems to be the same thing, but different versions.
Grunt
https://npmjs.org/package/grunt
https://github.com/gruntjs/grunt
Grunt-cli
https://npmjs.org/package/grunt-cli
https://github.com/gruntjs/grunt/blob/devel/docs/getting_started.md
You're correct, the two projects exist because of different versions of grunt.
grunt-cli
is used for grunt version 0.4 (and has an explicit dependency on 0.4), which as of this writing is in alpha development. grunt-0.4 splits the command line interface (grunt-cli) from the API libraries.
The "Getting Started" documentation you found is in the devel
branch of the grunt repository, which will be the 0.4 release.
If you're using grunt 0.3.x, then you don't need to install grunt-cli
.
这篇关于Grunt-cli和Grunt - 相同的应用程序,两个版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!