- 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.
- Mastering OpenCV Android Application Programming
- Visual Basic程序設(shè)計教程
- FreeSWITCH 1.6 Cookbook
- 精通API架構(gòu):設(shè)計、運維與演進
- Linux環(huán)境編程:從應用到內(nèi)核
- Mastering Ext JS
- Unreal Engine 4 Shaders and Effects Cookbook
- 青少年學Python(第1冊)
- 數(shù)據(jù)結(jié)構(gòu)習題解析與實驗指導
- 現(xiàn)代C++編程實戰(zhàn):132個核心技巧示例(原書第2版)
- 深度探索Go語言:對象模型與runtime的原理特性及應用
- Natural Language Processing with Python Quick Start Guide
- Data Science Algorithms in a Week
- 黑莓(BlackBerry)開發(fā)從入門到精通
- DB2SQL性能調(diào)優(yōu)秘笈