官术网_书友最值得收藏!

  • Learning Grunt
  • Douglas Reynolds
  • 377字
  • 2021-07-09 20:22:48

Chapter 1. Grunt Dependencies

Grunt is a JavaScript task runner. As its name alludes, this tool performs the grunt work of completing development tasks, which might include linting JavaScript, running tests, generating minified JavaScript and CSS, moving files and directories, creating archives, and the list goes on and on. In fact, the purpose of Grunt is task automation, which means running one or more tasks with the least amount of user interaction needed in order to complete the work. Almost any task can be automated with Grunt and many plugins (tasks) already exist that can be installed and used in your project. It is possible to write and publish your own plugins to meet the need of tasks for which a plugin does not already exist. You can also modify existing plugins to meet project-specific requirements. The Grunt community is very large and there is a great deal of documentation and resources available as a result. With a minimum amount of research effort, information on specific Grunt topics can be found in a wide range of places. This book, for one, will provide information on the installation and setup of Grunt, installation and configuration of tasks found in the Node Package Manager (NPM) registry, creation of custom tasks, Grunt API documentation, and much more. Some main benefits of using the Grunt task runner are that Grunt task automation improves productivity by handling repetitive tasks with efficiency, reduces errors using automated processes, and lessens the workload so that less time and energy is spent on things that can be handled through workflow automation. Once the upfront work of Grunt implementation has been completed, there is practically no additional work needed to run tasks. It is a very simple matter to create custom task runners for various build stages of projects with fine-grained control over what tasks get run for various stages. For instance, it is possible to create a custom task that includes error checking and syntax validation, running a suite of unit tests, and then, upon success, building the project to a development release version and generating a deployment archive. The possibilities for various build configurations are vast. However, first things first, there are some things that need to be discussed prior to ping in.

主站蜘蛛池模板: 富阳市| 大名县| 白河县| 台中县| 吉首市| 桂东县| 哈尔滨市| 泸定县| 西畴县| 三门峡市| 南昌县| 五家渠市| 祁门县| 新绛县| 富阳市| 肥东县| 岳阳市| 思茅市| 岱山县| 静乐县| 宿州市| 大方县| 永平县| 梅河口市| 沙雅县| 沙河市| 许昌县| 外汇| 通州区| 青州市| 简阳市| 赫章县| 环江| 黄大仙区| 凌海市| 渭南市| 海盐县| 确山县| 六盘水市| 沧源| 剑川县|