Oreilly - Introducing Grunt: The JavaScript Task Runner
by Daniel Linn | Publisher: Packt Publishing | Release Date: June 2015 | ISBN: 9781784396176
Speed up and streamline web development by automating workflows with GruntAbout This VideoAutomate your workflows to decrease the amount of time spent on menial tasksCut out time-consuming extra steps and make it easy for everyone to share the same workflow toolsCombine all the tasks used in the course to create a concise and compact deployment packageIn DetailWeb developers today are looking to create reusable workflows and development tools in JavaScript that will dramatically streamline development. Grunt helps you achieve that and more. In addition to being able to run custom commands easily, Grunt makes your web development experience very rewarding by reacting whenever a file is changed and performs the actions needed.This course will help in all aspects of development, from writing better code to deploying compact production packages.You'll start with a simple Grunt file and move on to building a fully functional workflow and deployment system. You'll learn how to deal with simple tasks such as renaming, moving, and combining files, before moving on to more complex activities such as creating concise and compact deployment packages. You'll learn how to create a basic file then build upon it by adding modules to achieve various levels of automation that were previously difficult to attain. Next, you'll learn to use a range of plugins to achieve concatenation, image minification, and create responsive images. Before we reach the end, you will learn to compile many types of languages and then will test your code using multiple testing frameworks such as JSLint, PhantomJS, and Behat. Finally, you'll be introduced to some advanced uses of Grunt involving custom command-line commands you want to use.Once you are done with this course, developing workflows will be a breeze for you.
- Chapter 1 : Getting Started with Grunt
- The Course Overview 00:02:02
- What Is Grunt? 00:02:05
- Installing Plug-ins 00:03:08
- Chapter 2 : Running Grunt
- Ways to Run Grunt 00:03:30
- Grunt Use Cases 00:03:05
- Initializing a Project 00:02:02
- Chapter 3 : Code Compiling
- Using Grunt Connect 00:01:53
- Compiling SASS with CSS 00:02:52
- Using Targets 00:01:54
- Chpater 4 : File Manipulation
- File Moving and Renaming 00:02:02
- CSS/JS Concatenation 00:01:30
- Image Minification 00:03:28
- Chapter 5 : Testing
- Syntax Testing with JSLint 00:03:15
- Unit Testing with QUnit 00:02:26
- Behavior Testing with Behat 00:03:01
- Chapter 6 : Deployment
- Creating a Deployment Package 00:04:06
- Git Integration 00:02:37
- Moving Files to Production 00:02:37
- Chapter 7 : Running Custom Commands
- Run a Basic CLI Command 00:03:37
- Using Prompts 00:02:37
- Creating Plug-ins 00:03:45