Mastering Grunt (Paperback)
暫譯: 精通 Grunt (平裝本)

Daniel Li

  • 出版商: Packt Publishing
  • 出版日期: 2014-04-28
  • 售價: $1,120
  • 貴賓價: 9.5$1,064
  • 語言: 英文
  • 頁數: 110
  • 裝訂: Paperback
  • ISBN: 1783980923
  • ISBN-13: 9781783980925
  • 海外代購書籍(需單獨結帳)

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

相關主題

商品描述

If you’re tired of repetitive JavaScript tasks like minification, compilation, and testing, this book will teach you how to use Grunt to automate them. Learn in easy steps how to streamline your workflow when building any web application.

Overview

  • Master the development of your web applications by combining Grunt with an army of other useful tools
  • Learn about the key tasks behind devops integration and automation so you can utilize Grunt in a team-working environment
  • Accelerate your web development abilities by employing best practices, including SEO, page speed optimization, and responsive design

In Detail

Grunt.js continues to excel as the build automation tool of choice. Along with its support for many third-party technologies, Grunt is packaged with a clean API for defining tasks. This powerful tool can streamline your workflow by automating the preparation tasks for production, such as compression, compilation, obfuscation, testing, and even pushing your web application live. This book will teach you how to master build automation and testing with Grunt. You will have the opportunity to utilize the latest and in-demand web tools, such as Git, Jade, CoffeeScript, Sass, and the Mocha testing engine, across several exciting projects by combining Grunt with them. You will also learn to create a project - a simple Bulletin Board System (BBS), which will explain the use of Grunt alongside the Mocha testing library to automate testing throughout the build process.

Mastering Grunt will demonstrate how to leverage Grunt with other technologies to become an expert in build automation, teaching you the best practices for modern web development along the way.

What you will learn from this book

  • Build any web application using Grunt.js
  • Explore the basics revolving around source control with Git
  • Understand the importance behind package management with npm and Bower
  • Use Grunt alongside Jade, the templating engine, to automate the compression and obfuscation process
  • Ease the compilation process by working with Sass, a CSS preprocessor
  • Understand the fundamentals involved in CoffeeScript development
  • Implement headless testing using Mocha, a JavaScript-based testing engine
  • Automate the frontend testing process using Grunt

Approach

This easy-to-understand tutorial provides you with several engaging projects that show you how to utilize Grunt with various web technologies, teaching you how to master build automation and testing with Grunt in your applications.

商品描述(中文翻譯)

如果您厭倦了重複的 JavaScript 任務,例如壓縮、編譯和測試,本書將教您如何使用 Grunt 來自動化這些任務。輕鬆學習如何在構建任何網頁應用程式時簡化您的工作流程。

概述
- 通過將 Grunt 與其他有用工具結合,掌握您的網頁應用程式開發
- 了解 DevOps 整合和自動化背後的關鍵任務,以便在團隊合作環境中利用 Grunt
- 通過採用最佳實踐來加速您的網頁開發能力,包括 SEO、頁面速度優化和響應式設計

詳細內容
Grunt.js 繼續作為首選的構建自動化工具而表現出色。除了支持許多第三方技術外,Grunt 還配備了一個乾淨的 API 來定義任務。這個強大的工具可以通過自動化生產準備任務來簡化您的工作流程,例如壓縮、編譯、混淆、測試,甚至將您的網頁應用程式上線。本書將教您如何掌握使用 Grunt 進行構建自動化和測試。您將有機會利用最新和需求量大的網頁工具,例如 Git、Jade、CoffeeScript、Sass 和 Mocha 測試引擎,通過將 Grunt 與它們結合來完成幾個令人興奮的專案。您還將學習創建一個專案 - 一個簡單的公告欄系統 (BBS),這將解釋如何在構建過程中使用 Grunt 和 Mocha 測試庫來自動化測試。

掌握 Grunt 將展示如何利用 Grunt 與其他技術結合,成為構建自動化的專家,並在此過程中教您現代網頁開發的最佳實踐。

您將從本書中學到的內容
- 使用 Grunt.js 構建任何網頁應用程式
- 探索與 Git 相關的源代碼控制基礎知識
- 理解 npm 和 Bower 的套件管理重要性
- 與模板引擎 Jade 一起使用 Grunt,自動化壓縮和混淆過程
- 通過使用 CSS 預處理器 Sass 來簡化編譯過程
- 理解 CoffeeScript 開發的基本原則
- 使用 Mocha 實現無頭測試,這是一個基於 JavaScript 的測試引擎
- 使用 Grunt 自動化前端測試過程

方法
這本易於理解的教程提供了幾個引人入勝的專案,向您展示如何利用 Grunt 與各種網頁技術,教您如何在應用程式中掌握 Grunt 的構建自動化和測試。