scale = require('bespoke-scale'),
  hash = require('bespoke-hash'),
  progress = require('bespoke-progress'),
  forms = require('bespoke-forms'),
  bga = require('bespoke-ga');

// Bespoke.js
var deck = bespoke.from('article', [
  nebula(),
  keys(),
  touch(),
  bullets('li, .bullet'),
  backdrop(),
  scale(),
  hash(),
  progress(),
  forms(),
  bga({trackingId: 'UA-45861154-1'})
]);

deck.on('activate', function(event) {
  var path = location.pathname + '#' + (event.index + 1);
  ga('send', 'pageview', {page: path});
});

// Prism syntax highlighting
// This is actually loaded from "bower_components" thanks to
// debowerify: https://github.com/eugeneware/debowerify
require('prism');

  state = require('bespoke-state'),
  ga = require('bespoke-ga');

// Bespoke.js
bespoke.from('article', [
  cube(),
  classes(),
  keys(),
  touch(),
  bullets('li, .bullet'),
  backdrop(),
  scale(),
  hash(),
  progress(),
  state(),
  ga({trackingId: 'UA-56311291-1'})
]);

// Prism syntax highlighting
// This is actually loaded from "bower_components" thanks to
// debowerify: https://github.com/eugeneware/debowerify
require('prism/components/prism-core');
require('prism/components/prism-markup');
require('prism/components/prism-css');
require('prism/components/prism-clike');
require('prism/components/prism-javascript');
require('prism/components/prism-java');
require('prism/components/prism-scala');
require('prism/components/prism-bash');

Prism.languages.insertBefore('bash', 'comment', {
Exemple #3
0
// Require Node modules in the browser thanks to Browserify: http://browserify.org
var bespoke = require('bespoke'),
  nebula = require('bespoke-theme-nebula'),
  keys = require('bespoke-keys'),
  touch = require('bespoke-touch'),
  bullets = require('bespoke-bullets'),
  backdrop = require('bespoke-backdrop'),
  scale = require('bespoke-scale'),
  ga = require('bespoke-ga'),
  hash = require('bespoke-hash');

// Bespoke.js
bespoke.from('article', [
  nebula(),
  keys(),
  touch(),
  bullets('li, .bullet'),
  backdrop(),
  scale(),
  hash(),
  ga({ trackingId: 'UA-44850660-3' })
]);