Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Javascript Workflow Evolution

Javascript Workflow Evolution

Since 2009 the javascript workflow is changed a lot and more things are going to change soon. In this presentation I went through the available options to build SPA (Single Page App), MPA (Multiple Page App) and Universal / Isomorphic app using grunt, gulp, and webpack. Examples and take away in ;)

Lorenzo Sicilia

May 25, 2015
Tweet

Other Decks in Programming

Transcript

  1. 14 Then JSConf on November 8, 2009 by Ryan Dahl

    In 2011, a JS package manager
  2. 25 DEPLOY • source mapping (css, js) • local testing

    DEVelopmeNt Testing STAGING / PRODUCTION • source mapping (css, js) • CI testing • gzip • uglify • css minifier • image compression • asset revisioning
  3. 28 SPA - FACTS checking- CONS PROS • More complexity

    (ie. memory leak, ) • Javascript MUST be enabled • Linking becomes an issue • Analytics aren't trivial • SEO implications • Once loaded faster • Better UX • Strict separation of concerns (API)
  4. 30 CONS PROS • two languages ( client / server

    ) • two business logic • Content is the king • Simpler • SEO friendly • URL friendly MPA - FACTS checking-
  5. 34 Isomorphic APP CONS PROS • Performance (initial page-load speed)

    • Maintainability (promote sharing code client / server ) • Progressive enhancements easier (JS not mandatory ) • SEO friendly • Complex :) • A lot of moving parts
  6. 36 A JS BUILD should Handles: • runtime dependencies •

    build dependencies • bundle JS (uglify) • bundle CSS (minification) • modules loading • testing • multi env client deploy • multi env server deploy ( isomorphic only ) • env settings • image optimization • prepare fonts / icons
  7. TAKE AWAy ARCHITECTURE • Node as presentation server • Invest

    on the build system • Isomorphic via React.renderToString