front-end architecture on multibrand
TRANSCRIPT
![Page 1: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/1.jpg)
The Front-End architecture on Multibrand
David Dias - Front-End architect April 2016 / Proximity BBDO Indian Ocean
![Page 2: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/2.jpg)
front-end Architecture is important...
![Page 3: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/3.jpg)
... and it's not just about HTML and CSS.
![Page 4: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/4.jpg)
We faced daily a lot of challenges
![Page 5: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/5.jpg)
AccessibilitySEO
QualityPerformance
Maintainability*Browser compatibility
![Page 6: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/6.jpg)
»Martin Golding
« Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. »
![Page 7: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/7.jpg)
But in 2013, we faced a new challenge(at that time, lot of new tools come out into the front-end world)
![Page 8: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/8.jpg)
Build few projects with same code base?
![Page 9: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/9.jpg)
![Page 10: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/10.jpg)
We decide to use the best of the front-end technologies
![Page 11: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/11.jpg)
»
![Page 12: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/12.jpg)
»
![Page 13: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/13.jpg)
First, we needed to automate tasks
To work better, faster and maintain the code...
![Page 14: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/14.jpg)
201520132016
+
![Page 15: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/15.jpg)
![Page 16: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/16.jpg)
- Build fonts: convert icons in SVG to .ttf, .woff, .eot webfonts
- Build images: optimize all layout's images (performance)
- Dev reload: reload automatically the page after modifications
- Dev js: concatenate and minify all JavaScript files
- ...
![Page 17: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/17.jpg)
Extend the possibilities of simple HTML files
![Page 18: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/18.jpg)
PUG
![Page 19: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/19.jpg)
![Page 20: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/20.jpg)
PUG (jade)
HTML
![Page 21: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/21.jpg)
Dynamise our CSS files
![Page 22: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/22.jpg)
![Page 23: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/23.jpg)
CSS culture
• Strong nomenclature: c- (component), l- (layout), u- (utility)...
• CSS guidelines rules
• Based on OOCSS, SMACSS and BEM
![Page 24: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/24.jpg)
Modularize all the JS files
![Page 25: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/25.jpg)
201520142016
![Page 26: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/26.jpg)
![Page 27: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/27.jpg)
Bring NODE.js advantages to the browser
(Modularity, NPM import packages...)
![Page 28: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/28.jpg)
![Page 29: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/29.jpg)
A day with a FRONT-END
![Page 30: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/30.jpg)
specifications
wireframes
technical documentation
creatives (+ styleguide)
![Page 31: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/31.jpg)
creative analysis and feedbacks
creation component / page
styling and dynamise
regression testing
![Page 32: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/32.jpg)
How we see the futur? (next weeks)
![Page 33: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/33.jpg)
new RULES
![Page 34: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/34.jpg)
ECMAScript 6 A bright new future is coming...
![Page 35: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/35.jpg)
![Page 36: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/36.jpg)
more MODULARITY
![Page 37: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/37.jpg)
HTML (Pug) +
CSS (PostCSS) +
JS (React.js?)
= ONE component / ONE folder
![Page 38: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/38.jpg)
![Page 39: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/39.jpg)
![Page 40: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/40.jpg)
page.psdcomponent A.psd
component B.psd
component C.psd
component A.pug
component B.pug
component C.pug
+ css + js
+ css + js
+ css + js
styleguide
Score - Sitecore
![Page 41: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/41.jpg)
component A + component B.1 + component C
component A1 + component B + component C3
Article page
styleguide
Static page
![Page 42: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/42.jpg)
![Page 43: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/43.jpg)
more AUTOMATION
![Page 44: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/44.jpg)
Replace manual FTP update with
continuous integration
![Page 45: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/45.jpg)
![Page 46: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/46.jpg)
more TESTING / QUALITY
![Page 47: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/47.jpg)
JavaScript Unit Testing
![Page 48: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/48.jpg)
![Page 49: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/49.jpg)
Demos
![Page 50: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/50.jpg)
Questions?
![Page 51: Front-End architecture on Multibrand](https://reader031.vdocuments.mx/reader031/viewer/2022021815/5874be411a28ab8f508b4895/html5/thumbnails/51.jpg)
Thank you Obrigado
Merci