the modern web - digicomp...adc 2017 x-platform articles about angular & x fabian c sicher...

78

Upload: others

Post on 19-Jun-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 2: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

The modern web

toolchain

@FabianGosebrink

Page 3: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

Fabian Gosebrink

Page 4: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

@FabianGosebrink

Page 5: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 6: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

The modern web toolchain

Page 7: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 8: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 9: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 10: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 11: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 12: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 13: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 14: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 15: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 16: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 17: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 18: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 19: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 20: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

> npm install rimraf -g

Page 21: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

> npm install rimraf

Page 22: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 23: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 24: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 25: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 26: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

> yarn add ...

Page 27: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 28: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 29: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 30: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 31: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 32: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 33: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 34: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 35: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 36: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

ES5

ES6

TS

Page 37: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

> npm install typescript

Page 38: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

> tsc myTypescriptFile.ts

Page 39: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 40: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 41: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 42: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 43: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

Root

Child Child

GrandChild

GrandChild

Page 44: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 45: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 46: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

SystemJS

Page 47: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 48: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 49: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

// import the entire utils object with CommonJSvar utils = require('utils’);

var query = 'test';utils.ajax('https://api.example.com?search=' + query)

.then(handleResponse);

Page 50: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

// import the ajax function with an ES6 import statementimport { ajax } from 'utils';var query = 'test‘;

// call the ajax functionajax('https://api.example.com?search=' + query )

.then(handleResponse);

Page 51: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 52: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 53: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 54: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 55: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

> npm install webpack-dev-server --save-dev

Page 56: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 57: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

Ahead-of-time (AOT)

vs.

just-in-time (JIT)

Page 58: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 59: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 60: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 61: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 62: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 63: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

Testing

Page 64: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

ProtractorJasmine Karma

Page 65: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

Jasmine

Behaviour Driven Development

Fast

Page 66: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

Karma

Test runner

Spawns browser & runs tests

Also on CommandLine

Page 67: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 68: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 69: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

Protractor

End-to-end test framework

Runs in a real browser

Test like a user

Page 70: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 71: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 72: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 73: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

How do you keep up 2 date?

Page 74: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 75: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

Conferences!

Page 76: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 77: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &
Page 78: The modern web - Digicomp...ADC 2017 X-platform Articles about Angular & x Fabian C Sicher https:// offering.solutions [blog/ valuawlc Professional Developing Software, Speaking &

https://github.com/FabianGosebrink

https://offering.solutions

https://swissangular.com

@FabianGosebrink