Mastering Grunt (Paperback)

Daniel Li

  • 出版商: Packt Publishing
  • 出版日期: 2014-04-28
  • 售價: $1,110
  • 貴賓價: 9.5$1,055
  • 語言: 英文
  • 頁數: 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 進行建置自動化和測試。你將有機會結合 Grunt 與最新和熱門的網頁工具(如 Git、Jade、CoffeeScript、Sass 和 Mocha 測試引擎)在多個令人興奮的項目中使用它們。你還將學習創建一個項目 - 一個簡單的佈告欄系統(BBS),該項目將解釋如何在建置過程中使用 Grunt 和 Mocha 測試庫來自動化測試。

通過結合其他技術與 Grunt,精通 Grunt 將教你成為建置自動化的專家,並教你現代網頁開發的最佳實踐。

你將從本書中學到:
- 使用 Grunt.js 建立任何網頁應用程式
- 探索與 Git 的源代碼控制基礎
- 理解使用 npm 和 Bower 進行套件管理的重要性
- 使用 Jade 模板引擎與 Grunt 一起自動化壓縮和混淆過程
- 通過使用 Sass(一種 CSS 預處理器)簡化編譯過程
- 理解 CoffeeScript 開發的基本原理
- 使用基於 JavaScript 的 Mocha 測試引擎實施無界面測試
- 使用 Grunt 自動化前端測試過程

方法:
這本易於理解的教程提供了幾個引人入勝的項目,向你展示如何在各種網頁技術中使用 Grunt,教你如何在應用程式中精通建置自動化和測試。