Add rsvp to setupbase

This commit is contained in:
Jonathan Frederic 2014-11-04 13:44:13 -08:00
parent 26d012b3b7
commit 6ee932f298
2 changed files with 9 additions and 1 deletions

View File

@ -32,7 +32,14 @@ casper.open_new_notebook = function () {
for (var i = 0; i < arguments.length; i++) {
var value = arguments[i];
if (value instanceof Object) {
pretty_arguments.push(JSON.stringify(value, null, ' '));
var name = value.name || 'Object';
// Print a JSON string representation of the object.
// If we don't do this, [Object object] gets printed
// by casper, which is useless. The long regular
// expression reduces the verbosity of the JSON.
pretty_arguments.push(name + ' {' + JSON.stringify(value, null, ' ')
.replace(/(\s+)?({)?(\s+)?(}(\s+)?,?)?(\s+)?(\s+)?\n/g, '\n')
.replace(/\n(\s+)?\n/g, '\n'));
} else {
pretty_arguments.push(value);
}

View File

@ -159,6 +159,7 @@ def find_package_data():
pjoin(components, "jquery-ui", "themes", "smoothness", "images", "*"),
pjoin(components, "marked", "lib", "marked.js"),
pjoin(components, "requirejs", "require.js"),
pjoin(components, "rsvp", "rsvp.js"),
pjoin(components, "underscore", "underscore-min.js"),
pjoin(components, "moment", "moment.js"),
pjoin(components, "moment", "min", "moment.min.js"),