Browserify all the things

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

16 slides
  1. Send me an awesome responsive jQuery slider/carousel! I want to

    use it for MDN. — David Walsh (@davidwalshblog) January 29, 2014 3
  2. LA DÉPENDANCE PEUT ÊTRE LOURDE indicateur de chargement avec sémaphore

    plugin qui ouvre les liens externes avec du target blank automatique 5
  3. En attendant ... PRENNONS EXEMPLE SUR NODE Faisons de petits

    composants la gestion de modules via ES6 mkdir -p rm -rf 7
  4. BROWSERIFY TO THE RESCUE ! $ npm install ­g browserify

    $ npm install dep var dep = require('dep') exports.myExample = function () { return dep.truc({blah}) } $ browserify main.js ­o bundle.js 9
  5. (function (root, factory) { if (typeof exports === 'object') {

    // CommonJS module.exports = factory(require('b')); } else if (typeof define === 'function' && define.amd) { // AMD define(['b'], function (b) { return (root.returnExportsGlobal = factory(b)); }); } else { // Global Variables root.returnExportsGlobal = factory(root.b); } }(this, function (b) { exemple 12
  6. $ npm install debowerify decomponentify deamdify deglobalify e browserify ­t

    debowerify ­t decomponentify ­t deamdify ­t degl 14
  7. MERCI ! @MOOX SUR & MAXIME THIROUIN / Version longue

    sur putaindecode.fr TWITTER GITHUB MOOX.IO 16

More Decks by Maxime Thirouin

Other Decks in Technology