Automate with Grunt: The Build Tool for JavaScript by Brian P. Hogan

Posted by

By Brian P. Hogan

Grunt is all over the place. JavaScript tasks from jQuery to Twitter Bootstrap use Grunt to transform code, run assessments, and bring distributions for creation. it is a construct instrument within the spirit of Make and Rake, yet written with smooth apps in brain. This ebook will get you on top of things with Grunt utilizing sensible hands-on examples, so that you can wrangle your tasks comfortably. you will tips on how to create and continue initiatives and undertaking builds, and automate your workflow with plugins and customized tasks.

JavaScript has moved from being the language you like to hate to the language you should use. And as JavaScript functions get extra advanced, you would like a procedure to regulate that complexity. whereas on-line tutorials simply clarify how one can slap jointly a configuration dossier, this publication is going additional and exhibits you ways to create your individual initiatives, layout your individual venture templates, mix plugins jointly to carry an online app to lifestyles, and construct your individual plugins.

You'll begin through studying the fundamentals of activity construction, errors dealing with, and logging as you create an easy configuration that executes uncomplicated JavaScript code utilizing Node.js. Then you are going to leap correct into dossier manipulation as you learn, write, reproduction, and delete records. you will find out how Grunt's robust multitasks paintings as you construct a job to concatenate documents jointly. as soon as you have a take hold of on those fundamentals, you are going to construct an easy app with AngularJS and CoffeeScript, utilizing Grunt to do the entire heavy lifting and script processing. ultimately, you are going to create your personal plugin so that you can know how plugins work.

Each bankruptcy includes hands-on workouts and ideas for extra examine. no matter if you rock Ruby or sling C#, Grunt should be an invaluable addition for your toolbox.

What You Need:

This e-book covers Grunt 0.4.1 and better, and calls for uncomplicated wisdom of JavaScript and command-line instruments on home windows, OS X, or Linux.

Show description

Read or Download Automate with Grunt: The Build Tool for JavaScript PDF

Similar javascript books

Sams Teach Yourself Ajax, JavaScript, and PHP All in One

<P style="MARGIN: 0px">In only a couple of minutes, you could how you can use Ajax, JavaScript, and personal home page to create interactive interfaces for your internet functions via combining those robust applied sciences.
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">No past Ajax programming event is needed. utilizing an easy, step by step method, every one lesson during this e-book builds at the earlier ones, allowing you to profit the necessities of Ajax programming with JavaScript, Hypertext Preprocessor, and similar applied sciences from the floor up.
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">Regardless of even if you run Linux, home windows, or Mac OS X, the enclosed CD features a whole Ajax programming starter equipment that offers you the entire programming instruments, reference details, JavaScript libraries, and server software program you want to manage a reliable atmosphere for studying, trying out, and production.
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">Learn how to…
<UL> * construct higher, extra interactive interfaces in your net purposes
* Make JavaScript, HTML, XML, and Hypertext Preprocessor interact to create Ajax results
* bring together an Ajax software
* Create and devour net providers with cleaning soap and relaxation
* steer clear of universal mistakes and troubleshoot courses
* Use renowned Ajax libraries to hurry up and increase universal programming tasks
</UL> <P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">On the CD
<UL> * XAMPP for home windows, Mac OS X, and Linux–an easy-to-install package deal to establish a personal home page- and MySQL-enabled Apache server in your machine
* The jEdit programming editor for home windows, Mac, and Linux
* Prototype, Scriptaculous, Rico, and XOAD–popular JavaScript libraries for growing Ajax functions and results
* an entire Ajax, HTML, XML, and Hypertext Preprocessor instructional reference library in searchable PDF layout
* resource code for the examples within the book
</UL> <P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">Phil Ballard is a software program engineering advisor and developer focusing on site and intranet layout and improvement for a global portfolio of consumers. He has an honors measure from the college of Leeds, England, and has labored for a number of years in advertisement and managerial roles within the excessive know-how sector.
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">Michael Moncur is a contract webmaster and writer. He runs a community of sites and has written numerous bestselling books approximately internet improvement, networking, certification courses, and databases.
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">Category: Web improvement
<P style="MARGIN: 0px">Covers: Ajax, JavaScript and personal home page
<P style="MARGIN: 0px">User Level: Beginning—Intermediate
<P style="MARGIN: 0px"> 
<P style="MARGIN: 0px">$39. ninety nine united states / $43. ninety nine CAN / £25. ninety nine internet united kingdom
<P style="MARGIN: 0px"> 

HTML5 Game Programming with enchant.js

HTML5 video game Programming with enchant. js supplies first-time programmers of every age the instruments to show their game principles into fact. A step by step advisor to the unfastened, open-source HTML5 and JavaScript engine enchant. js, it truly is supreme for online game lovers who've continuously desired to make their very own online game yet didn’t know the way.

Pro TypeScript: Application-Scale JavaScript Development

JavaScript is all over the place, either as a natural language and in well known libraries like Angular, jQuery and Knockout, yet clients of contemporary object-oriented languages like Java and C# usually locate JavaScript challenging to exploit and tough to increase to large-scale purposes. TypeScript is an cutting edge open resource language from Microsoft that mixes strong language gains and more desirable tooling help with the main points of interest of JavaScript as a versatile, dynamic language which could run in any browser and on any working approach.

Express.Js Deep API Reference

Exhibit. js Deep API Reference is your brief, concise advisor to specific. js APIs. this versatile Node. js internet software framework offers a strong set of good points for development unmarried, multi-page, and hybrid net applications.

Through six to-the-point chapters, you can find references for configurations, settings, environments, middleware, templating engines (including Consolidate. js), extract parameters, routing, request handlers, reaction, and streams.

Written by means of Azat Mardan, the writer of professional show. js and useful Node. js, you can find this brief, concise consultant imperative on your convey. js paintings.

Additional info for Automate with Grunt: The Build Tool for JavaScript

Sample text

Js. What You Need You’ll need a computer running Windows 7 or 8 or a modern version of Linux or OS X. You’ll need the ability to install software on your computer, as well as an active Internet connection. You’ll also need a text editor or your IDE of choice. [2] You’ll find installers for all platforms there. Download the one for your operating system and install it using the default options. Finally, Grunt is a command-line utility, so you’ll use the Command Prompt on Windows or the Terminal on OS X or Linux.

Grunt is telling us that we need something called a Gruntfile in our project. A Gruntfile is a JavaScript file that specifies and configures the tasks you want to be able to run for your project. It’s like a Makefile. js in the current working directory and it can’t find one, so it doesn’t know what we want it to do. Let’s create a Gruntfile. Our First Task Let’s kick the tires. We’ll create the default task, which is the one that runs when we type the grunt command. Every Gruntfile starts out with some boilerplate code.

In addition, each chapter gives you suggestions for further exploration, offering you the opportunity to dig deeper into Grunt. Who Should Read This Book If you’re a web developer working with CSS and JavaScript and you’ve never used Grunt, you need this book. Grunt’s features can make your workflow so much easier to manage. If your only experience with Grunt is copying and pasting some lines of configuration, you’ll find value here, as well. Grunt has become a standard for JavaScript projects on both the client and the server.

Download PDF sample

Rated 4.67 of 5 – based on 12 votes