- Products
- Strider: Open Source Continuous Integration & Deployment Server http://stridercd.com/
- Jenkins: An extendable open source continuous integration server http://jenkins-ci.org/
- Services
- Wercker - The open delivery platform http://wercker.com/
- TravisCI - a hosted continuous integration service for open source and private projects https://travis-ci.org/
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
define(function(require) { | |
'use strict'; | |
var Ember = require('ember'); | |
return Ember.Mixin.create({ | |
/** | |
* Cache all relationship IDs each time the model is loaded or updated. | |
* This data is required to determine if any relationships contain new | |
* records (or omit old records) since the last server synchronization | |
* (see this mixin's `areRelationshipsDirty` and `rollbackRelationships` |
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
var onNextChange = function(model, handler, context) { | |
var fields = Ember.get(model.constructor, 'fields').keys.toArray(); | |
// Avoid multiple invocations from batched changes using a boolean guard. | |
var hasChanged = false; | |
var handleChange = function() { | |
if (hasChanged) { | |
return; | |
} | |
hasChanged = true; |
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
define(['jquery', 'underscore', 'backbone'], function($, _, Backbone) { | |
'use strict'; | |
var WindowEmitter = _.extend({}, Backbone.Events); | |
var $window = $(window); | |
// 0.1 second is about the limit for having the user feel that the | |
// system is reacting instantaneously, meaning that no special feedback | |
// is necessary except to display the result. | |
// Source: http://www.nngroup.com/articles/response-times-3-important-limits/ | |
var period = 100; |
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
{ | |
"scripts": { | |
"test": "mocha --require test/setup.js tests" | |
} | |
} |
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
define(function() { | |
if (true) { | |
return 23; | |
} | |
return 45; | |
}); |
I'm having trouble using r.js to optimize modules in the bower_components/
directory.
My basic project directory structure looks like this:
- bower_components/
- src/
- activities/
- client/
...and the r.js configuration lists the following details:
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
require.config({ | |
paths: { | |
"alias-path": "real-path" | |
} | |
}); | |
require(["real-path", "alias-path"], function(r, a) { | |
// never invoked | |
}); |
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
// Use suite.js to define a JavaScript macro for a "not in" operator | |
// http://sweetjs.org/ | |
macro nin { | |
rule infix { | |
$key:expr | $obj:expr | |
} => { | |
!($key in $obj) | |
} | |
} |