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
module.exports = function(grunt) { | |
// Configs | |
grunt.config('debugPath' , './dist/debug/'); | |
grunt.config('releasePath' , './dist/release/'); | |
grunt.config('jsOutput' , 'main.js'); | |
grunt.config('jsVendorOutput', 'vendor.js'); | |
grunt.config('cssOutput' , 'style.css'); | |
// Build debug by default |
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
/** ----------------- | |
* main.js | |
* ------------------ | |
*/ | |
import React from 'react'; | |
import HelloMessage from './HelloMessage.jsx'; | |
import logger from './logger.js'; | |
var data = { name: 'Zak' }; |
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
module.exports = BusService; | |
var BackboneEvents = require('backbone-events-standalone'); | |
/** | |
* Set up global event bus | |
* @constructor | |
* @param {Application} app | |
*/ | |
function BusService(app) |
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
module.exports = Messenger; | |
/** | |
* Event messenger | |
* @constructor | |
*/ | |
function Messenger() | |
{ | |
} |
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
module.exports = Eventable; | |
/** | |
* Provide a mixin-able interface for registering DOM events | |
*/ | |
function Eventable() | |
{ | |
} | |
/** |
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
Started by an SCM change | |
[EnvInject] - Loading node environment variables. | |
Building remotely on 6ba38b04 (lxc-fedora17 m1.small small) in workspace /scratch/jenkins/workspace/CommunityStream | |
Deleting this stale workspace | |
[ssh-agent] Using credentials w2o_release (For use with bitbucket repos) | |
[ssh-agent] Looking for ssh-agent implementation... | |
[ssh-agent] Java/JNR ssh-agent | |
[ssh-agent] Started. | |
Cloning the remote Git repository | |
Cloning repository [email protected]:W2ODigital/sbp_community_stream.git |
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
import Promise from 'bluebird'; | |
import extend from 'extend'; | |
import urlUtil from 'url'; | |
import _ from 'underscore'; | |
import debug from 'debug'; | |
// Models | |
import PostList from './models/PostList.js'; | |
import InfluencerList from './models/InfluencerList.js'; | |
import ContentList from './models/ContentList.js'; |
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
/** | |
* @param {GainNode} gainAmount | |
*/ | |
_turnMusicUp(gainAmount) | |
{ | |
var music = this.sound.getCurrentMusic(); | |
var currentGain = this.sound.getGainValue(music); | |
this.sound.fadeIn(music, 1000, currentGain, gainAmount); | |
} |
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
/** | |
* Display loading indicator while view model data is being synced | |
* Set up container view and its subviews | |
* Fade in container | |
* @return {Promise} | |
*/ | |
StreamController.prototype.start = function() | |
{ | |
this.container = this.setupCommunityStream(); | |
this.loadingIndicator = this.setupLoadingIndicator(); |
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
module.exports = CSTransport; | |
var Promise = require('bluebird'); | |
var HttpTransport = require('http-transport'); | |
var jsonpClient = require('jsonp-client'); | |
var path = require('path'); | |
var urlUtil = require('url'); | |
function CSTransport() | |
{ |