How to package all this JavaScript?

  • Rod Petrovi─Ź
  • October 2011

Slide contents

  • Hello
  • Rod Petrovic
  • Work partners
  • How to package JS
  • Node
  • Quick recap
  • 2001 JS
  • Progressive enhancement
  • I disabled my JavaScript (1)
  • 2001 JS
  • 2011 HTML
  • Single-page
  • 2011 HTML
  • Single-page
  • I disabled my JavaScript (2)
  • JS - HTML
  • Must organize
  • MCV
  • SproutCore, JavaScript, Backbone.js, Spine.js
  • ? Questions...
  • - Dependency management
  • - Merged minified
  • - Nice code
  • Different approaches
  • 1. Lazy
  • Example of scripts
  • No dependency management, Merged
  • 2. Common
  • Example of files
  • No dependency management
  • 3. Require.si
  • Example of require.si
  • Modules
  • Example of define
  • No nice code
  • 4. Browserify
  • CommonJS
  • Example of CommonJS
  • CoffeeScript
  • Example od CoffeeScript
  • Browserity entry
  • Connect, browserify, server
  • NPM modules
  • Npm install underscore
  • NPM modules
  • What you get is..
  • Caveat!
  • Require "system"
  • Ignore : "system"
  • Thanks