This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// only polyfill .finished in browsers that already support animate() | |
if (document.body.animate) { | |
// Chrome does not seem to expose the Animation constructor globally | |
if (typeof Animation === 'undefined') { | |
window.Animation = document.body.animate({}).constructor; | |
} | |
if (!Animation.prototype.hasOwnProperty('finished')) { | |
Object.defineProperty(Animation.prototype, 'finished', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Primus = require('primus'), | |
path = require('path'), | |
chalk = require('chalk'), | |
log = console.log, | |
primusRequests = require('primus-requests') | |
const sockets = module.exports | |
sockets.listen = function(server) { | |
const primus = sockets.primus = new Primus(server, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "www", | |
"version": "1.0.0", | |
"scripts": { | |
"dev": "node tasks/wright.dev.js", | |
"prod": "node tasks/wright.prod.js" | |
}, | |
"dependencies": { | |
"rollup": "^0.35.9", | |
"wright": "github:porsager/wright" |