Automate with Grunt: The Build Tool for JavaScript (Paperback)
Brian P. Hogan
- 出版商: Pragmatic Bookshelf
- 出版日期: 2014-05-27
- 定價: $595
- 售價: 9.5 折 $565
- 語言: 英文
- 頁數: 84
- 裝訂: Paperback
- ISBN: 1941222110
- ISBN-13: 9781941222119
-
相關分類:
JavaScript
立即出貨 (庫存=1)
買這商品的人也買了...
-
$2,280Working Effectively with Legacy Code (Paperback)
-
$520$343 -
$680$537 -
$420$277 -
$1,245Test-Driving JavaScript Applications: Rapid, Confident, Maintainable Code
-
$1,700$1,700 -
$390$351 -
$4,620$4,389 -
$580$452 -
$1,980$1,881 -
$680$578 -
$600$474 -
$1,650$1,568 -
$560$370 -
$2,010$1,910 -
$1,980$1,881 -
$680$449 -
$2,450$2,328 -
$1,518Multithreaded JavaScript: Concurrency Beyond the Event Loop
-
$2,625$2,573 -
$1,505Mastering API Architecture: Design, Operate, and Evolve Api-Based Systems (Paperback)
-
$2,160$2,052 -
$1,758Functional Design: Principles, Patterns, and Practices (Paperback)
-
$750$495 -
$2,043$1,935
相關主題
商品描述
Grunt is everywhere. JavaScript projects from jQuery to Twitter Bootstrap use Grunt to convert code, run tests, and produce distributions for production. It's a build tool in the spirit of Make and Rake, but written with modern apps in mind. This book gets you up to speed with Grunt using practical hands-on examples, so you can wrangle your projects with ease. You'll learn how to create and maintain tasks and project builds, and automate your workflow with plugins and custom tasks.
JavaScript has moved from being the language you love to hate to the language you need to use. And as JavaScript applications get more complex, you need a process to manage that complexity. While online tutorials just explain how to slap together a configuration file, this book goes further and shows you how to create your own tasks, design your own project templates, combine plugins together to bring a web app to life, and build your own plugins.
You'll start by learning the basics of task creation, error handling, and logging as you create a simple configuration that executes basic JavaScript code using Node.js. Then you'll jump right into file manipulation as you read, write, copy, and delete files. You'll learn how Grunt's powerful multitasks work as you build a task to concatenate files together. Once you've got a grasp on these basics, you'll build a simple app with AngularJS and CoffeeScript, using Grunt to do all the heavy lifting and script processing. Finally, you'll create your own plugin so you can understand how plugins work.
Each chapter contains hands-on exercises and ideas for further study. Whether you rock Ruby or sling C#, Grunt will be a useful addition to your toolbox.
What You Need:
This book covers Grunt 0.4.1 and higher, and requires basic knowledge of JavaScript and command-line tools on Windows, OS X, or Linux.
商品描述(中文翻譯)
Grunt無所不在。從jQuery到Twitter Bootstrap的JavaScript專案都使用Grunt來轉換程式碼、執行測試並生成用於生產的發行版本。它是一個以現代應用程式為目標的建置工具,類似於Make和Rake。本書通過實際的實例讓您快速掌握Grunt,以便輕鬆管理您的專案。您將學習如何創建和維護任務和專案建置,並使用插件和自定義任務自動化您的工作流程。
JavaScript已經從您討厭的語言變成您需要使用的語言。隨著JavaScript應用程式變得越來越複雜,您需要一個處理這種複雜性的流程。網上的教程只是解釋如何拼湊一個配置文件,而本書則更進一步,向您展示如何創建自己的任務,設計自己的專案模板,將插件結合在一起使網頁應用程式活躍起來,並建立自己的插件。
您將從學習任務創建、錯誤處理和日誌記錄開始,通過使用Node.js創建一個執行基本JavaScript代碼的簡單配置。然後,您將直接進入文件操作,讀取、寫入、複製和刪除文件。您將學習Grunt強大的多任務如何工作,並建立一個將文件連接在一起的任務。一旦掌握了這些基礎知識,您將使用AngularJS和CoffeeScript創建一個簡單的應用程式,使用Grunt來處理所有繁重的工作和腳本處理。最後,您將創建自己的插件,以便了解插件的工作原理。
每個章節都包含實際的練習和進一步學習的想法。無論您是使用Ruby還是C#,Grunt都將成為您工具箱中有用的補充。
所需材料:
本書涵蓋Grunt 0.4.1及更高版本,需要基本的JavaScript知識和Windows、OS X或Linux上的命令行工具。