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
/* | |
* This script decides whether containers need to be re-built (and thus re-deployed). | |
* The result is a special `task.setvariable` printed to the console for affected containers, | |
* to be picked up by the next build stage in the pipeline. | |
* | |
* Usage: | |
* | |
* node is-affected.js --pipelineId 1 --app website --app dashboard --app services | |
* | |
* Example output: |
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
const util = require('util'); | |
const result = title => err => { | |
if (err instanceof Error) { | |
console.log(`✖ ${title}`); | |
console.error(err.actual || err); | |
} else { | |
console.log(`✔ ${title}`); | |
} | |
}; |
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
/* istanbul include next */ | |
function bar() { | |
// | |
} | |
module.exports = { | |
bar: bar | |
} |
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
testem: { | |
coverage: { | |
options: { | |
test_page: 'test/index.html#testem,coverage', | |
parallel: 2, | |
launch_in_ci: ['PhantomJS'], | |
on_start: require('./collect-coverage'), | |
before_tests: 'istanbul instrument src/ --complete-copy --output src_instrumented/', | |
after_tests: 'istanbul report --root coverage/data/ --dir coverage/report/' | |
} |
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
// lib/bar/baz.js | |
define('bar/baz', [], function() {}); | |
// foo.js | |
define(['lib/bar/baz'], function(baz) { | |
// resource requested, but baz = undefined | |
}); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>My Feeds</title> | |
</head> | |
<body> | |
<outline text="24 ways" htmlUrl="http://24ways.org/" type="rss" xmlUrl="http://feeds.feedburner.com/24ways"/> | |
<outline text="2ality – JavaScript and more" htmlUrl="http://www.2ality.com/" type="rss" xmlUrl="http://feeds.feedburner.com/2ality"/> | |
<outline text="456 Berea Street" htmlUrl="http://www.456bereastreet.com/" type="rss" xmlUrl="http://feeds.feedburner.com/456bereastreet"/> | |
<outline text="@verekia's blog" htmlUrl="http://verekia.com" type="rss" xmlUrl="http://verekia.com/feed"/> |
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
define(['wire!otherSpec'], function(otherSpec) { | |
return { | |
myModule: { | |
extends: { $ref: 'otherSpec.myBaseModule' }, | |
args: { | |
['argOverrides'] | |
} | |
} | |
} | |
}); |
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
/** | |
* RequireJS plugin to compile templates in build process (using r.js). | |
* | |
* During development, this delegates the request to the "text" plugin, and compiles the template. | |
* After build, the template resources are pre-compiled and in-lined in the module that depends on it. | |
* | |
* Based on https://github.com/millermedeiros/requirejs-hogan-plugin | |
* | |
* Also see http://requirejs.org/docs/plugins.html | |
*/ |