Automate with Grunt: The Build Tool for JavaScript (Paperback)
暫譯: 使用 Grunt 自動化:JavaScript 的建構工具 (平裝本)

Brian P. Hogan

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2014-05-27
  • 售價: $595
  • 貴賓價: 9.5$565
  • 語言: 英文
  • 頁數: 84
  • 裝訂: Paperback
  • ISBN: 1941222110
  • ISBN-13: 9781941222119
  • 相關分類: JavaScript
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

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 上使用命令行工具的能力。

最後瀏覽商品 (20)