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
What: Breakfast for south bay enterprise node.js leaders | |
When: 9 - 10:30am, Wednesday, February 19 | |
Where: | |
Box | |
4440 El Camino Real | |
Los Altos, CA 94022 | |
Why: To regularly meet to discuss enterprise node.js concerns and encourage increased community in the south bay. |
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
// Dependencies: jsonlint | |
echo('Validating JSON'); | |
exec('node ./node_modules/jsonlint/lib/cli.js -q -c ' + JSON_FILES); |
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
// Dependencies: eslint (https://github.com/eslint/eslint) | |
echo('Validating JavaScript'); | |
exec('node ./node_modules/eslint/bin/eslint ' + JS_FILES); |
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
// Useful for passing files & directories as command arguments | |
var JS_DIRS = ['lib', 'tests'].join(' '); | |
var JS_FILES = find(['lib', 'tests']).filter(fileType('js')).join(' '); | |
var JSON_FILES = find(['lib', 'tests']).filter(fileType('json')).join(' '); |
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
// Dependencies: istanbul, mocha (can substitute with any testing library) | |
echo('Running Tests & Generating Code Coverage'); | |
exec('node ./node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- --recursive ' + TEST_DIR); |
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
// dependencies: a git repo, git tag release versioning | |
function generateChangeLog(lastRelease, nextRelease) { | |
echo('Generating Changelog from ' + lastRelease + ' to ' + nextRelease); | |
('## ' + nextRelease + '\n').to('CHANGELOG.tmp'); | |
exec('git log ' + lastRelease + '...' + nextRelease + ' --pretty=format:"+ \`%h\` - %s" >> CHANGELOG.tmp'); | |
cat("CHANGELOG.tmp", "CHANGELOG.md").to("CHANGELOG.new.md"); | |
mv("CHANGELOG.md", "CHANGELOG.old.md"); | |
mv("CHANGELOG.new.md", "CHANGELOG.md"); |
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
// Dependencies: package-json-validator (https://github.com/gorillamania/package.json-validator) | |
echo('Validating package.json'); | |
exec('node ./node_modules/package-json-validator/bin/pjv package.json'); |
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
// dependencies: a git repo | |
var CHANGED_FILES = exec('git diff --name-only master..HEAD').output.replace(/\n/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
// Dependencies: mocha (http://visionmedia.github.io/mocha/) | |
echo('Running Tests'); | |
exec('node ./node_modules/mocha/bin/_mocha --recursive' + TEST_DIR); |
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
// Dependencies: mocha (http://visionmedia.github.io/mocha/) | |
echo('Running Tests'); | |
exec('node ./node_modules/mocha/bin/_mocha -R nyan --recursive ' + TEST_DIR); | |
// 380 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_,------, | |
// 0 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_| /\_/\ | |
// 0 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-^|__( ^ .^) | |
// _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- "" "" | |
// | |
// 380 passing (2s) |
OlderNewer