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.
About the Author
Daniel Linn has been into technology since 1992 when his father brought a modem home from his work at the cable companies for testing and he saw his first rollover image. His career has spanned all aspects of the software development life cycle, and over that time he's fulfilled many different roles including Designer, Developer, Project Manager, Database Admin, and Front End Architect, with some Dev Ops thrown in from time to time. He is currently the Director of Development at Metal Toad, a Portland-based technology consulting firm specializing in mobile, desktop, and web applications and solutions.
At times, we need to automate our workflows in order to decrease the amount of time spent on menial tasks and Grunt will help us do this.
As developers, we often have small tasks we can perform that can greatly improve the quality of our deliverables, but we don't because they are either time-consuming or only rarely produce results. With Grunt, we have the ability to automate these tasks.
Grunt has many plug-ins that tie into just about every utility you can think of for development.
There are many different ways in which Grunt can be used; let's take a look at them.
Grunt can help us with a wide range of tasks, with the help of plugins. Let's take a look at these.
Initializing a project is the first step toward getting started. Let's take a look at how we can do this in Grunt.
To test the different changes we make in our code, we need a web server. We will use Grunt Connect to do this.
There are times when we need to compile SASS with CSS. Grunt helps us do this using Compass.
For testing and production purposes, we need to compile our code in the best possible way.
For distribution purposes, we need to package files; we'll take a look at how to do this.
Concatenation and minification helps to serve few and as compact files as possible
The images can be compressed to enhance performance. We will use a tool to do the same.
We need a version of our project that only includes production files. We will create such a package in this video.
We need to commit our changes to Git in order to make sure that branches are up to date. We will integrate our code with Git.
In this video, we will see how to move files to production.
There are a few commands that do not have plugins. Let's take a look at how to run these commands.
There are several ways to use the options we saw in our last video. We will take a look at the easiest ways to use them.
We can create a Grunt task plugin in order to be able to distribute it for wider adoption.
Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.
From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.