This file contains 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
#!/usr/bin/env node | |
'use strict'; | |
var bower = require('bower'), | |
path = require('path'), | |
_ = require('lodash'); | |
function normalize(src) { | |
return src.replace(/\\/g, '/'); |
This file contains 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
/** | |
* Given an html element or jquery object, will return a serializable object representation of that node | |
* @param {HTMLElement|jQuery} element | |
* @param {Boolean} [recurse] - specifying whether we want to build objects for the children | |
* @returns {Object} | |
*/ | |
function elementToObject(element, recurse) { | |
var el = $(element), | |
o = { | |
tagName: el[0].tagName |
This file contains 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
_easingMap: { | |
'easeInQuad': 'ease-in', | |
'easeInSine': 'ease-in', | |
'easeInCubic': 'ease-in', | |
'easeInQuart': 'ease-in', | |
'easeInQuint': 'ease-in', | |
'easeInExpo': 'ease-in', | |
'easeInCirc': 'ease-in', | |
'easeInBack': 'ease-in', | |
'easeInElastic': 'ease-in', |