-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
180 lines (161 loc) · 6.61 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Gulp.js 101 by Manaday Mavani</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<style>
.coding-text {
font-family: Consolas, monospace !important;
}
.terminal-text {
color: #17ff2e !important;
}
</style>
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- Title slide -->
<section>
<h1>Gulp.js 101</h1>
<p>
<small>Prepared by <a href="http://twitter.com/ManadayM">Manaday Mavani</a></small>
</p>
</section>
<!-- Agenda -->
<section>
<h1>Agenda</h1>
<p>
<span class="fragment terminal-text">Introduction, </span>
<span class="fragment terminal-text">Installation, </span>
<span class="fragment terminal-text">Implementation, </span>
<span class="fragment terminal-text">Impact</span>
</p>
</section>
<!-- Introduction -->
<section>
<section>
<h1>Introduction</h1>
</section>
<!-- 10,000 foot view -->
<section>
<h3>10,000 foot view</h3>
<p class="terminal-text">A task runner</p>
</section>
<!-- 5,000 foot view -->
<section>
<h3>5,000 foot view</h3>
<p class="terminal-text">A tool to automate and enhance your workflow</p>
</section>
<!-- 1,000 foot view -->
<section>
<h3>1,000 foot view</h3>
<p class="terminal-text">A tool that can do (but not limited to):</p>
<ul>
<li class="fragment highlight-current-green"><span class="coding-text terminal-text"></span> Compress front-end resources</li>
<li class="fragment highlight-current-green"><span class="coding-text terminal-text"></span> Concatenation</li>
<li class="fragment highlight-current-green"><span class="coding-text terminal-text"></span> SASS to CSS</li>
<li class="fragment highlight-current-green"><span class="coding-text terminal-text"></span> Transpiling - ES5+ to ES5</li>
<li class="fragment highlight-current-green"><span class="coding-text terminal-text"></span> Image optimization</li>
<li class="fragment highlight-current-green"><span class="coding-text terminal-text"></span> Live reload</li>
</ul>
</section>
</section>
<!-- Installation -->
<section data-background-image="./images/gulp-setup.gif" data-background-opacity="0.6">
<h1>Installation</h1>
</section>
<!-- Implementation -->
<section>
<section>
<h1>Implementation</h1>
</section>
<section>
<h3>Building blocks</h3>
<ul>
<li><span class="coding-text terminal-text">task</span> - Unit of work for the repetitive common activities</li>
<li><span class="coding-text terminal-text">src</span> - Source from which files need to be processed</li>
<li><span class="coding-text terminal-text">pipe</span> - Adds a function to the Node stream (Excellent article on this topic <a href="https://florian.ec/articles/gulp-js-streams/">florian.ec</a>)</li>
<li><span class="coding-text terminal-text">dest</span> - Dumping zone</li>
<li><span class="coding-text terminal-text">watch</span> - Monitor</li>
</ul>
</section>
</section>
<!-- Impact -->
<section>
<section>
<h1>Impact</h1>
</section>
<section>
<h3>Towards Better UX</h3>
<ul>
<li class="fragment"><span class="coding-text terminal-text">Automation</span> - Automated front-end workflow in place</li>
<li class="fragment"><span class="coding-text terminal-text">Speed</span> - Faster page loads</li>
<li class="fragment"><span class="coding-text terminal-text">Requests</span> - Reduced number of requests</li>
<li class="fragment"><span class="coding-text terminal-text">Cache</span> - Effective cache purging mechanism</li>
</ul>
</section>
</section>
<!-- Articles -->
<section>
<h3>Articles worth checking</h3>
<ul>
<li><a href="https://investis.udemy.com/learn-gulp">Gulp.js Udemy Course by Andrew Mead</a></span></li>
<li><a href="https://florian.ec/articles/gulp-js-streams/">Streams in Gulp.js</a></span></li>
<li><a href="https://github.com/isaacs/node-glob#glob-primer">Understanding Globs</a></span></li>
<li><a href="https://github.com/gulpjs/vinyl-fs">Vinyl Objects</a></span></li>
<li><a href="https://www.smashingmagazine.com/2018/01/front-end-performance-checklist-2018-pdf-pages/">Front-end Performance Checklist 2018</a></li>
<li><a href="https://fettblog.eu/gulp-4-parallel-and-series/">Task execution system - Gulp 3 and 4</a></span></li>
<li><a href="https://codeburst.io/switching-to-gulp-4-0-271ae63530c0">Gulp 3 to 4</a></span></li>
</ul>
</section>
<!-- Courses & Tuts -->
<section>
<h3>Courses & Ready materials</h3>
<ul>
<li><a href="https://investis.udemy.com/learn-gulp">Gulp.js Udemy Course by Andrew Mead</a></span></li>
<li><a href="https://github.com/gulpjs/gulp/tree/master/docs/recipes">Gulp.js Recipes</a></span></li>
<li><a href="https://github.com/google/web-starter-kit/blob/master/gulpfile.babel.js">Google Web Starter Kit's Advanced Gulp Implementation</a></span></li>
</ul>
</section>
<!-- Thank you -->
<section>
<h1 class="terminal-text">¯\_(ツ)_/¯</h1>
<h2>Thank you</h2>
<small>Any easy questions?</small>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
progress: false,
slideNumber: true,
pdfSeparateFragments: false,
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>