上一篇:没有了 下一篇:Grunt的特点

Grunt概述

什么是Grunt声?

Grunt是一个JavaScript Task Runner,可以用作JavaScript对象的命令行工具。它是一个在NodeJS上面编写的任务管理器。

为什么要使用Grunt?

  • Grunt can perform repetitive tasks very easily, such as compilation, unit testing, minifying files, running tests, etc.

  • Grunt includes built-in tasks that extend the functionality of your plugins and scripts.

  • The ecosystem of Grunt is huge; you can automate anything with very less effort.

History

The first lines of source code were added to GruntJS in 2011. The Grunt v0.4 was released on February 18, 2013. The Grunt v0.4.5 was released on May 12, 2014. The stable version of Grunt is 1.0.0 rc1 which was released on February 11, 2016.

Advantages

  • Using Grunt, you can perform minification, compilation, and testing of files easily.

  • Grunt unifies the workflows of web developers.

  • You can easily work with a new codebase using Grunt because it contains less infrastructure.

  • It speeds up the development workflow and enhances the performance of projects.

Disadvantages

  • 每当npm软件包更新时,您需要等到Grunt的作者更新它。

  • 每个任务都是为了做一个特定的工作。如果要扩展指定的任务,那么您需要使用一些技巧来完成工作。

  • Grunt包含大量用于个人插件的配置参数。通常,Grunt配置文件的长度更长。

Copyright © 2002-2017 vue5.com 版权所有

Top