Learning Grunt

Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 28. März 2016
  • |
  • 184 Seiten
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78588-333-0 (ISBN)
Monitor and automate complex JavaScript tasks and processes by obtaining a practical understanding of GruntAbout This BookGain a solid knowledge of Grunt to achieve better process management by improving consistency, productivity, reliability, and quality of codeInstall, configure, and use plugins into your project with this hands-on guideThis step-by-step tutorial will walk you through practical examples of workflow automationWho This Book Is ForIf you are a JavaScript developer and want to learn project monitoring and automation using Grunt, then this book is for you. Basic knowledge of Node.js and Angular.js is assumed. However, no previous experience using Grunt.js is required.What You Will LearnInstall and configure Grunt and its dependencies such as Node.js and Node Package Manager (NPM)Create a sample application using Angular.JSConfigure plugins to perform various tasks that will benefit your projectExplore the task-specific methods available through the Grunt API such as configuration, externals, events, and loggingSet up tasks to automate the build process of the simple contact applicationBuild, test, and refine a sample projectGet general tips, tricks, and troubleshooting strategies to identify and solve common issues in GruntAdvance your knowledge of Grunt with concepts such as configuration variables and test automationIn DetailWith the increasing focus on task automation, the Grunt task runner is a vast platform that allows you to incorporate automation into your workflows.At the outset, you will learn how to use Node.js and NMP through an example. You will then find out how to build a sample app and the development environment for it. You will further delve into the implementation of Grunt plugins and the configuration of Grunt tasks. Furthermore, you will explore the various methods and packages for workflow automation. The final chapter will cover some advanced concepts, such as configuration variables and how to create a Grunt plugin.By the end of the book, you will have gained the fundamentals of Grunt and progressed through advanced concepts, including building a Grunt plugin.Style and approachThis book is an easy-to-follow, step-by-step tutorial that provides explanations and examples of deploying Grunt from scratch.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
978-1-78588-333-0 (9781785883330)
178588333X (178588333X)
weitere Ausgaben werden ermittelt
Douglas Reynolds is a web application developer. He holds a degree in software engineering and has worked with web technologies for over 15 years. Douglas currently works for Herff Jones as a Senior Web Applications Developer as a member of a highly skilled and dedicated team of professionals. Douglas writes and lectures on web technologies, teaches at Illinois State University in the Department of Technology, and writes on topics of technology for Packt Publishing. Douglas and his wife of over 20 years, along with their son and two dogs, live in Bloomington, Illinois. He loves his family and friends and enjoys spending time outdoors in nature, riding his Harley, and continually developing his relationship with God.
  • Cover
  • Copyright
  • Credits
  • About the Author
  • Acknowledgement
  • About the Reviewer
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Grunt Dependencies
  • Dependencies
  • What is Node.js and NPM?
  • Where can I find Node.js and NPM?
  • Upgrading or installing Node.js
  • Upgrading Node.js via NPM on Mac
  • Upgrading Node.js on Windows via .msi and NPM
  • The pristine installation of Node.js via downloaded binary
  • Adding your installation path to your $PATH variable
  • Using NPM to install the Grunt Command Line Interface
  • Installing the Grunt CLI
  • Updating NPM
  • Installing Grunt CLI
  • Summary
  • Chapter 2: Foundation for Creating an App using Angular.JS
  • Installing Git
  • Determining the Git installation
  • Creating a temporary alias
  • Adding Git to your $PATH variable
  • Installation of Git
  • Creating the Angular Seed Project
  • Dependencies of Angular Seed
  • Cloning the Angular Seed Project
  • Installing Angular Seed dependencies
  • Running the Angular Seed Application
  • Installation summary - a quick guide
  • Installing Git
  • Determining Git Installation
  • Create the Angular Seed Project
  • Summary
  • Chapter 3: All about Grunt Plugins
  • Obtaining Grunt plugins
  • Plugins overview
  • Actually obtaining Grunt plugins
  • Common Grunt plugins and their purposes
  • Linting JavaScript - contrib-jshint
  • Minifying Javascript - contrib-uglify
  • Compile LESS into CSS - contrib-less
  • Desktop notifications for automated tasks - notify
  • Opening files and URLs automatically - open
  • Optimizing images - contrib-imagemin
  • Running tasks only on files that changed - newer
  • Performing SSH and SFTP tasks - ssh
  • The minification of CSS - contrib-cssmin
  • Concatenate files - contrib-concat
  • Cleaning up files and folders - contrib-clean
  • Minifying HTML files - contrib-htmlmin
  • Watch for changing files - contrib-watch
  • Summary
  • Chapter 4: Configuration of Grunt Tasks
  • Reviewing the installation of Grunt tasks
  • Installing contrib-jshint with NPM
  • Installing contrib-uglify with NPM
  • Installing contrib-less with NPM
  • Installing contrib-watch with NPM
  • Discussing package.json and gruntfile.js
  • The package.json file
  • The gruntfile.js file
  • Introducing the Grunt API
  • The wrapper function and initConfig
  • Loading NPM tasks:
  • Creating tasks
  • Grunt fail API
  • The Grunt event API
  • The Grunt file API
  • The Grunt log API
  • The Grunt option API
  • Grunt Template API
  • The Grunt task API
  • Summary
  • Chapter 5: Task Setup in the sample_project Application
  • Defining requirements of sample_project
  • An overview of user stories
  • The slide deck
  • Gruntfile.js wrapper and configuration
  • Wrapper
  • grunt-init-gruntfile
  • Gruntfile.js configuration
  • Summary
  • Chapter 6: Building the Sample Project
  • Understanding task loading
  • Using the LoadNpmTasks method
  • Calling plugins using the loadNpmTasks method
  • Using the devDependencies object looping method
  • The default task configuration
  • A custom task configuration
  • Functional testing
  • Testing the contrib-jshint configuration
  • Testing the contrib-uglify configuration
  • Testing the contrib-less Configuration
  • Testing the contrib-imagemin configuration
  • Testing the notify configuration
  • Testing the open configuration
  • Testing the contrib-watch Configuration
  • The Complete Gruntfile.js
  • Summary
  • Chapter 7: Advanced Grunt Concepts
  • Creating a Grunt plugin
  • Using the Grunt plugin scaffold
  • Authoring a custom plugin
  • Summary
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)


Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.

Download (sofort verfügbar)

24,93 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok