没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Shelve in
Web Development/JavaScript
User level:
Beginning–Intermediate
www.apress.com
SOURCE CODE ONLINE
BOOKS FOR PROFESSIONALS BY PROFESSIONALS
®
Pro Grunt.js
Pro Grunt.js gets you quickly up-to-speed with this popular JavaScript-based task
runner. Author James Cryer takes you from initial installation all the way through to
authoring successful plugins.
Using hands-on examples you will learn about CSS linting, combination,
compilation and minification; JavaScript linting, AMD modules, and templates;
image processing and optimizing; and creating a local server. You will then move
on to more advanced topics such as LiveReload, Test Automation, Modular
configuration, and combining tasks. Finally you will see how to scaffold plugins
using Grunt init and Yeoman, how to test them with Mocha and Chai, and how to
publish them so others can use them.
Start using Grunt.js to improve your workflows by using Pro Grunt.js today.
RELATED
Cryer
9781484 200148
53999
ISBN 978-1-4842-0014-8
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
iii
Contents at a Glance
About the Author ����������������������������������������������������������������������������������������������������� xi
About the Technical Reviewer ������������������������������������������������������������������������������� xiii
Acknowledgments ���������������������������������������������������������������������������������������������������xv
Introduction �����������������������������������������������������������������������������������������������������������xvii
Chapter 1: Introducing Grunt ■ ��������������������������������������������������������������������������������� 1
Chapter 2: How to Use Grunt in Your Project ■ ��������������������������������������������������������� 5
Chapter 3: Using Grunt with HTML and CSS ■ �������������������������������������������������������� 31
Chapter 4: Using Grunt with JavaScript ■ �������������������������������������������������������������� 59
Chapter 5: Using Grunt with Images, SVG, and Icons ■ ������������������������������������������ 85
Chapter 6: Using Grunt for Testing and Local Development ■ ������������������������������ 101
Chapter 7: Optimizing Your Grunt Workflow ■ ������������������������������������������������������ 131
Index ��������������������������������������������������������������������������������������������������������������������� 151
xvii
Introduction
Welcome to Pro Grunt.js. is book has been written for those who are interested in learning how Grunt.js
can be use to modernize their developer workow. Grunt can be used to automate mundane, repetitive tasks
that feature in almost all mobile and web projects. Developing optimal web applications that are tuned for
performance is essential to delivering a good user experience for all. We cannot make assumptions about the
devices and the networks users are accessing our sites and applications from. Grunt can be used to ensure
that every project we develop has a set of best practices baked in from the outset through the denition of a
common set of tasks that will enable our project to be minied, linted and tested. Grunt’s extensibility and
large number of plugins makes it the perfect tool for quickly developing a tool belt that is re-usable across
projects.
Chapter 1
is chapter introduces Grunt, providing an overview of the benets of using a task runner like Grunt before
concluding with a comparison to other popular build tools.
Chapter 2
is chapter discusses the core concepts of Grunt. Installing Grunt on a project, tasks and le matchers are
also covered.
Chapter 3
is chapter is dedicated to the introduction of Grunt tasks for working with HTML and CSS. Topics such as
sass compilation, html minication and CSS linting are discussed.
Chapter 4
is chapter discusses a set of Grunt tasks that can be used whilst working with JavaScript. It covers linting,
minications and documentation generation.
Chapter 5
is chapter introduces a set of Grunt plugins for working with images, SVG and icons. Image compression,
SVG minication and automated sprite generation are covered.
■ IntroduCtIon
xviii
Chapter 6
is chapter discusses setting up a local Node server to run a static website generated by Grunt locally.
e topic of testing local web applications is also covered in this chapter using frameworks such as Karma.
Chapter 7
e nal chapter looks at how a Grunt workow itself can be optimized to make it more maintainable and
reusable. Topics such as Grunt conguration les, optimize plugin loading, and measuring Grunt load times
are discussed.
剩余164页未读,继续阅读
资源评论
greenflute
- 粉丝: 1
- 资源: 67
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功