Slide 1

Slide 1 text

JavaScript DevOPS Automating everything JS @mananbharara

Slide 2

Slide 2 text

JavaScript DevOPS Automating everything JS @mananbharara

Slide 3

Slide 3 text

“Front-end operations engineers are the enablers of long-term progress” - smashingmagazine.com

Slide 4

Slide 4 text

Why? Front end Back end

Slide 5

Slide 5 text

Why? 40% will leave your site after 3 seconds Loading…

Slide 6

Slide 6 text

Why?

Slide 7

Slide 7 text

Why?

Slide 8

Slide 8 text

Why?

Slide 9

Slide 9 text

Weapons

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

• File based

Slide 12

Slide 12 text

• File based • Excellent community support with thousands of plugins

Slide 13

Slide 13 text

• File based • Excellent community support with thousands of plugins • Emphasis to configuration over code

Slide 14

Slide 14 text

• File based • Excellent community support with thousands of plugins • Emphasis to configuration over code • Aliases

Slide 15

Slide 15 text

• File based • Excellent community support with thousands of plugins • Emphasis to configuration over code • Aliases • Variables

Slide 16

Slide 16 text

• File based • Excellent community support with thousands of plugins • Emphasis to configuration over code • Aliases • Variables • Can be used as a deployment tool as well

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

grunt-concurrent

Slide 27

Slide 27 text

grunt-bower-install

Slide 28

Slide 28 text

Before

Slide 29

Slide 29 text

After

Slide 30

Slide 30 text

grunt-scp

Slide 31

Slide 31 text

grunt-usemin

Slide 32

Slide 32 text

Debugging the debuggable

Slide 33

Slide 33 text

Debugging the debuggable In action

Slide 34

Slide 34 text

{ version: 3, file: "script.js.map", sources: [ "app.js", "content.js", "widget.js" ], sourceRoot: "/", names: ["slideUp", "slideDown", "save"], mappings: "AAA0B,kBAAhBA,QAAOC,SACjBD,OAAOC,OAAO..." } Debugging the debuggable http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

In memory, to other streams Stream Stream Stream

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

• Stream based

Slide 41

Slide 41 text

• Stream based • Extremely fast due to reduced I/O. Concurrency in-built

Slide 42

Slide 42 text

• Stream based • Extremely fast due to reduced I/O. Concurrency in-built • Code over configuration

Slide 43

Slide 43 text

• Stream based • Extremely fast due to reduced I/O. Concurrency in-built • Code over configuration • Simple In, Out, Watch API

Slide 44

Slide 44 text

• Define tasks with gulp.task()

Slide 45

Slide 45 text

• Define tasks with gulp.task() • Watch the file system for changes with gulp.watch()

Slide 46

Slide 46 text

• Define tasks with gulp.task() • Watch the file system for changes with gulp.watch() • Open files/directories with gulp.src()

Slide 47

Slide 47 text

• Define tasks with gulp.task() • Watch the file system for changes with gulp.watch() • Open files/directories with gulp.src() • Output files/directories with gulp.dest()

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

Page speed insights YSlow

Slide 53

Slide 53 text

@mananbharara github.com/mananbharara