-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
622 lines (539 loc) · 17.5 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
<!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>Modern Dev Tools</title>
<link rel="icon" sizes="32x32" type="image/png" href="img/favicon.png">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css">
<link rel="stylesheet" href="css/main.css">
<link href="https://fonts.googleapis.com/css?family=Fira+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://opensource.keycdn.com/fontawesome/4.7.0/font-awesome.min.css" integrity="sha384-dNpIIXE8U05kAbPhy3G1cz+yZmTzA6CY8Vg/u2L9xRnHjJiAK76m2BIEaSEV+/aU" crossorigin="anonymous">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- 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">
<section>
<h1>Modern Dev Tools</h1>
<h3>For Modern <i>JavaScripters</i></h3>
<h1>🛠💻🚀</h1>
<h4></h4>
</section>
<section>
<h1>Ignacio Anaya</h1>
<h3><a href="http://twitter.com/ianaya89">@ianaya89</a></h3>
<h5>Full Stack Developer en E-xact Transactions</h5>
<h5>Programming Mentor en Thinkful</h5>
<ul class="no-bullets">
<li><a href="https://twitter/ianaya89"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://github.com/ianaya89"><i class="fa fa-github"></i></a></li>
<li><a href="https://ar.linkedin.com/in/ianaya89"><i class="fa fa-linkedin"></i></a></li>
<li><a href="http://stackoverflow.com/users/4195328/ianaya89"><i class="fa fa-stack-overflow"></i></a></li>
</ul>
</section>
<section>
<section>
<h1>Dev Tools</h1>
</section>
<section>
<h1>Qué Son?</h1>
<p>Colecciones de software que hacen nuestro trabajo mas facil y <i>nuestra vida mas feliz</i>.</p>
<h3>🙂</h3>
</section>
<section>
<h1>Por Qué?</h1>
<p>Mejor codigo, menos bugs, mas funcionalidad y en menos tiempo.</p>
</section>
<section data-background="img/contract.gif">
<h1 class="white">Dónde Firmo?</h1>
</section>
<section>
<h1>Antes</h1>
<ul>
<li>CSS, JS y HTML plano</li>
<li>Deploy = Copiar Archivos</li>
<li>Codigo orientado al Browser</li>
<li>Dificil Mantenimiento</li>
<li>Procesos Manuales</li>
<li>Mala Performance</li>
</ul>
</section>
<section>
<h1>Ahora</h1>
<h3>Codigo ➡️ </h3>
<img src="img/magic.gif" alt="">
<h3> ➡️ Felicidad</h3>
</section>
<section>
<h2>Aclaraciones</h2>
<ul>
<li>Diversidad de herramientas</li>
<li>Mi experiencia</li>
<li>Linea disfusa entre herramientas y frameworks</li>
<li>Node & Browser</li>
</ul>
</section>
</section>
<section>
<section>
<h1>Editor de Texto</h1>
</section>
<section>
<h1>Atom</h1>
<ul>
<li>Gratuito 🙌</li>
<li>Rapido, extensible y customizable</li>
<li>Plugins (colors, git, linter, emmet)</li>
<li>Snippets</li>
<li>Temas + Fuentes</li>
<li>Desarrollado en Electron</li>
</ul>
</section>
<section data-background="img/magic.gif">
<h1 class="white">DEMO</h1>
</section>
</section>
<section>
<section>
<h1>Terminal</h1>
</section>
<section>
<h1>Linea de Comandos</h1>
<p>Aprendamos a querarla ❤️</p>
<ul>
<li>iTerm</li>
<li>ConEmu</li>
<li>GitBash</li>
<li>Zsh</li>
<li>alias copy='cp'</li>
</ul>
</section>
<section data-background="img/demo.gif">
<h1 class="white">Demo</h1>
</section>
</section>
<section>
<section>
<h1>Estandarización de Codigo</h1>
</section>
<section data-background="img/line.gif">
</section>
<section>
<h1>ESlint</h1>
<p>Linter para codigo para JavaScript</p>
<ul>
<li>CLI</li>
<li>Basado en reglas</li>
<li>Configurable</li>
<li>Extensible</li>
<li>Plugins para editores</li>
</ul>
</section>
<section>
<h2><code class="black">.eslintr</code></h2>
<pre>
<code style="max-height: 480px">
{
"env": {
"browser": true,
},
"globals": {
"angular": true,
},
"rules": {
"camelcase": 2,
"curly": 2,
"brace-style": [2, "1tbs"],
"quotes": [2, "single"],
"semi": [2, "always"],
"space-in-brackets": [2, "never"],
"space-infix-ops": 2,
}
}
</code>
</pre>
</section>
<section>
<h1>EditorConfig</h1>
<ul>
<li>Consistencia de código entre editores</li>
<li>Estilos generales</li>
<li>Estilos por tipo de archivo</li>
</ul>
</section>
<section>
<h2><code class="black">.editorconfig</code></h2>
<pre>
<code>
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
</code>
</pre>
</section>
<section data-background="img/magic.gif">
<h1 class="white">DEMO</h1>
</section>
</section>
<section>
<section>
<h1>Calidad de Código</h1>
</section>
<section>
<h1>Karma</h1>
<ul>
<li>Correr tests con feedback instantaneo</li>
<li>Reproducir tests en todo tipo de browsers.</li>
<li>Integración con frameworks de test (jasmine, mocha, etc.)</li>
</ul>
</section>
<section>
<h2><code class="black">karma.conf.js</code></h2>
<pre>
<code style="max-height: 460px">
module.exports = function(config) {
config.set({
browsers: ['PhantomJS', 'Chrome'],
frameworks: ['mocha'],
reporters: ['spec', 'coverage'],
files: ['test/'],
coverageReporter: {
dir : './coverage',
reporters: [
{ type: 'lcov', subdir: '.' },
{ type: 'text-summary' }
]
}
});
};
</code>
</pre>
</section>
<section>
<h1>Istanbul</h1>
<ul>
<li>CLI</li>
<li>Tracking de linea, branch y funciones</li>
<li>Medir <i>code-coverage</i> del proyecto</li>
<li>Reportes</li>
</ul>
</section>
<section>
<h1>Coveralls</h1>
<ul>
<li>Servicio web para medir y trackear <i>code-coverage</i></li>
<li>Analisis y estadísticas</li>
<li>Historial</li>
<li>CI + GitHub ❤️</li>
</ul>
</section>
<section data-background="img/coveralls.png">
</section>
<section data-background="img/demo.gif">
<h1 class="white">DEMO</h1>
</section>
</section>
<section>
<section>
<h1>Pre-Procesadores</h1>
</section>
<section>
<h1>Sass</h1>
<ul>
<li>Pre-procesador CSS</li>
<li>Cambia la sintaxis</li>
<li>Mas funcionalidades (variables, nesting, mixins, herencia, etc).</li>
<li><i>Watcher</i></li>
</ul>
</section>
<section>
<h1><s>Jade</s> Pug</h1>
<ul>
<li>Pre-procesador HTML</li>
<li>Motor de template</li>
<li>Menos sintaxis</li>
<li>Mas funcionalidad (partials, mixins, condicionales, etc)</li>
<li>node & browser</li>
</ul>
</section>
<section data-background="img/happy.gif">
<h1><a href="http://codepen.io/ianaya89/pen/NbeLWJ" class="white">DEMO</a></h1>
</section>
</section>
<section>
<section>
<h1>Transpilacion</h1>
<p>Transformacion + Compilacion</p>
</section>
<section>
<h1>Babel</h1>
<ul>
<li>Nuevas funcionalidades en ES6 en todo tipo de browsers.</li>
<li>Transforma ES6 en codigo ES5 equivalente.</li>
<li>Orientado a presets (modulos)</li>
</ul>
</section>
<section>
<h2><code class="black">.babelrc</code></h2>
<pre>
<code>
{
"presets": ["es2015", "stage-1"],
"comments": false
}
</code>
</pre>
</section>
<section data-background="img/demo.gif">
<h1><a class="white" href="https://babeljs.io/repl/#?babili=false&evaluate=true&lineWrap=false&presets=es2015%2Creact%2Cstage-2&code=const%20hello%20%3D%20'Hola%2C%20'%3B%0A%0A()%20%3D%3E%20%7B%0A%20%20console.log(hello)%3B%0A%7D%0A%0Afunction%20add(x%20%3D%201%2C%20y%20%3D%203)%20%7B%0A%20%20return%20x%20%2B%20y%3B%0A%7D%0A%0Aconsole.log(%60%24%7Bhello%7D%20Mundo!%60)%3B">
DEMO
</a></h1>
</section>
</section>
<section>
<section>
<h1>Dependencias</h1>
</section>
<section>
<h1>npm</h1>
<ul>
<li>CLI</li>
<li>Registro Open Source</li>
<li>Mas grande del mundo 🙌</li>
<li>Node & Browser</li>
</ul>
</section>
<section data-background="img/npm-stats.png">
</section>
<section>
<h1>BitHound</h1>
<ul>
<li>Analizar dependencias de npm</li>
<li>Detecta obsolescencia, inseguridades, falta de uso, desactualizaciones</li>
<li>Ayuda a refactorizar codigo</li>
<li>Tracking de <i>TODO's</i></li>
<li>CI + GitHub ❤️</li>
</ul>
</section>
<section data-background="img/bithound.png">
</section>
<section>
<h1>Greenkepper</h1>
<ul>
<li>Monitoreo en tiempo real</li>
<li>Acutalizacion automatica de dependencias</li>
<li>GitHub</li>
</ul>
</section>
<section data-background="img/greenkeeper.png">
</section>
</section>
<section>
<section>
<h1>Bundling</h1>
</section>
<section>
<h1>Webpack</h1>
<ul>
<li>Agrupa dependencias/modulos y crear archivos estaticos</li>
<li>Basado en loaders</li>
<li>Hot Replacement</li>
<li>Dev Web Server</li>
<li>Fonts, Svg, Imagenes</li>
<li>Babel, Sass, Pug, Karma, npm</li>
</ul>
</section>
<section>
<h2><code class="black">webpack.config.js</code></h2>
<pre>
<code style="max-height: 550px;">
const webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
path: './dist',
filename: 'lib.js'
},
resolve: { root: path.resolve('./') },
module: {
preLoaders: [{
test : /\.js$/,
loader : 'eslint',
include: projectRoot,
exclude: /node_modules/
}],
loaders: [
{
test: /\.(woff|ttf|eot|svg)$/,
loader: 'url?limit=64000'
},
{
test: /\.(png|jpg)$/,
loader: 'url?limit=64000'
},
{
test : /\.js$/,
exclude: /node_modules/,
loader : 'babel'
},
{
test : /\.css$/,
loader: 'style-loader!css-loader?root=./src/'
},
{
test : /\.scss$/,
loader: 'style!css!sass'
}
]
},
};
</code>
</pre>
</section>
<section data-background="img/happy.gif">
<h1 class="white">DEMO</h1>
</section>
</section>
<section>
<section>
<h1>Automatización</h1>
</section>
<section>
<h1>npm scripts</h1>
<ul>
<li>Comandos definidos en <code class="black">package.json</code></li>
<li>Pequeñas utilidades</li>
<li>Grandes sistemas de build</li>
<li><code class="black">npm run [script]</code></li>
<li>Evitamos el uso de dependencias globales</li>
</ul>
</section>
<section>
<h2><code class="black">package.json</code></h2>
<pre>
<code>
"name": "luhn-cc",
"version": "0.0.6",
"scripts": {
"build": "webpack --mode=build",
"dev": "webpack --progress --colors --watch --mode=dev",
"test": "karma start karma.conf.js --single-run",
"test-watch": "karma start karma.conf.js --auto-watch",
"check-cover": "open coverage/lcov-report/index.html",
"eslint": "eslint . .js",
"prepublish": "npm run build",
"bithound": "bithound check git@github.com:ianaya89/luhn-cc.git"
},
</code>
</pre>
</section>
</section>
<section>
<section>
<h1>CI</h1>
<p>Integración Continua</p>
</section>
<section>
<h1>Circle CI</h1>
<ul>
<li>Integraciones automáticas</li>
<li>Delivery automático</li>
<li>Instalar dependencias, correr tests, generar informes, integrar con servicios de terceros.</li>
<li>Deploy rápido, reproducible y debuggeable</li>
</ul>
</section>
<section>
<h2><code class="black">circle.yml</code></h2>
<pre>
<code style="max-height: 550px">
machine:
timezone:
America/Vancouver
node:
version: 6
dependencies:
override:
- npm install
- npm install coveralls
- npm install bithound
test:
override:
- npm test
- COVERALLS_SERVICE_NAME="circleci" COVERALLS_SERVICE_JOB_ID="$CIRCLE_BUILD_NUM" ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info
- ./node_modules/.bin/bithound check git@github.com:ianaya89/luhn-cc.git
post:
- cp -R ./coverage/* $CIRCLE_ARTIFACTS/
</code>
</pre>
</section>
<section data-background="img/circle.png">
</section>
</section>
<section>
<section>
<h1>GitHub</h1>
</section>
<section>
<h2>Git Flow</h2>
<ul>
<li>Modelo de branch</li>
<li>Branch develop & master</li>
<li>1 Funcionalidad = 1 Branch</li>
<li>Release/s Branch</li>
<li>Hot Fix Branch</li>
</ul>
</section>
<section>
<h2>Pull Requests</h2>
<ul>
<li>Visibilidad</li>
<li>Revision de código</li>
<li>Seguridad</li>
<li>Aprendizaje</li>
</ul>
</section>
<section data-background="img/pr.png">
</section>
</section>
<section data-background="img/applause.gif">
<h1 class="white">Gracias! 👏</h1>
<h3><a href="http://twitter.com/ianaya89">@ianaya89</a></h3>
<h1><a href="http://bit.ly/2hZCyk3">http://bit.ly/2hZCyk3</a></h1>
</section>
<section data-background="img/wait.gif">
<h1 class="white">Preguntas?</h1>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
Reveal.initialize({
history: true,
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>