Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from mongodb-js/1_org-page
Browse files Browse the repository at this point in the history
[#WIP] INT-20: dashboard skunkworks project
  • Loading branch information
imlucas committed Mar 18, 2015
2 parents 27739f3 + a4c4ad4 commit 2abe458
Show file tree
Hide file tree
Showing 41 changed files with 2,530 additions and 0 deletions.
171 changes: 171 additions & 0 deletions .jsfmtrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
{


"// docs, basically" : "https://github.com/paulirish/sublime-jsfmt#formatting-rules",
"preset": "default",
"plugins": [
"esformatter-quotes",
"esformatter-semicolons",
"esformatter-braces"
],
"quotes": {
"type": "single",
"avoidEscape": false
},
"indent": {
"value": " "
},
"whiteSpace" : {
"value" : " ",
"removeTrailing" : 1,

"before" : {
"ArrayExpressionOpening" : 0,
"ArrayExpressionClosing" : 0,
"ArrayExpressionComma" : 0,
"ArgumentComma" : 0,
"ArgumentList" : 0,
"ArgumentListArrayExpression" : 0,
"ArgumentListFunctionExpression" : 0,
"ArgumentListObjectExpression" : 0,
"AssignmentOperator" : 1,
"BinaryExpression": 0,
"BinaryExpressionOperator" : 1,
"BlockComment" : 1,
"CallExpression" : -1,
"CatchParameterList" : 0,
"CatchOpeningBrace" : 1,
"CatchClosingBrace" : 1,
"CatchKeyword" : 1,
"CommaOperator" : 0,
"ConditionalExpressionConsequent" : 1,
"ConditionalExpressionAlternate" : 1,
"DoWhileStatementOpeningBrace" : 1,
"DoWhileStatementClosingBrace" : 1,
"DoWhileStatementConditional" : 1,
"EmptyStatement" : 0,
"ExpressionClosingParentheses" : 0,
"FinallyKeyword" : -1,
"FinallyOpeningBrace" : 1,
"FinallyClosingBrace" : 1,
"ForInStatement" : 1,
"ForInStatementExpressionOpening" : 1,
"ForInStatementExpressionClosing" : 0,
"ForInStatementOpeningBrace" : 1,
"ForInStatementClosingBrace" : 1,
"ForStatement" : 1,
"ForStatementExpressionOpening" : 1,
"ForStatementExpressionClosing" : 0,
"ForStatementOpeningBrace" : 1,
"ForStatementClosingBrace" : 1,
"ForStatementSemicolon" : 0,
"FunctionDeclarationOpeningBrace" : 1,
"FunctionDeclarationClosingBrace" : 1,
"FunctionExpressionOpeningBrace" : 1,
"FunctionExpressionClosingBrace" : 1,
"IfStatementConditionalOpening" : 1,
"IfStatementConditionalClosing" : 0,
"IfStatementOpeningBrace" : 1,
"IfStatementClosingBrace" : 1,
"ElseStatementOpeningBrace" : 1,
"ElseStatementClosingBrace" : 1,
"ElseIfStatementOpeningBrace" : 1,
"ElseIfStatementClosingBrace" : 1,
"MemberExpressionClosing" : 0,
"LineComment" : 1,
"LogicalExpressionOperator" : 1,
"Property" : 1,
"PropertyValue" : 1,
"ParameterComma" : 0,
"ParameterList" : 0,
"SwitchDiscriminantOpening" : 1,
"SwitchDiscriminantClosing" : 0,
"ThrowKeyword": 1,
"TryKeyword": -1,
"TryOpeningBrace" : 1,
"TryClosingBrace" : 1,
"UnaryExpressionOperator": 0,
"VariableName" : 1,
"VariableValue" : 1,
"WhileStatementConditionalOpening" : 1,
"WhileStatementConditionalClosing" : 0,
"WhileStatementOpeningBrace" : 1,
"WhileStatementClosingBrace" : 1
},

"after" : {
"ArrayExpressionOpening" : 0,
"ArrayExpressionClosing" : 0,
"ArrayExpressionComma" : 1,
"ArgumentComma" : 1,
"ArgumentList" : 0,
"ArgumentListArrayExpression" : 0,
"ArgumentListFunctionExpression" : 0,
"ArgumentListObjectExpression" : 0,
"AssignmentOperator" : 1,
"BinaryExpression": 0,
"BinaryExpressionOperator" : 1,
"BlockComment" : 1,
"CallExpression" : 0,
"CatchParameterList" : 0,
"CatchOpeningBrace" : 1,
"CatchClosingBrace" : 1,
"CatchKeyword" : 1,
"CommaOperator" : 1,
"ConditionalExpressionConsequent" : 1,
"ConditionalExpressionTest" : 1,
"DoWhileStatementOpeningBrace" : 1,
"DoWhileStatementClosingBrace" : 1,
"DoWhileStatementBody" : 1,
"EmptyStatement" : 0,
"ExpressionOpeningParentheses" : 0,
"FinallyKeyword" : -1,
"FinallyOpeningBrace" : 1,
"FinallyClosingBrace" : 1,
"ForInStatement" : 1,
"ForInStatementExpressionOpening" : 0,
"ForInStatementExpressionClosing" : 1,
"ForInStatementOpeningBrace" : 1,
"ForInStatementClosingBrace" : 1,
"ForStatement" : 1,
"ForStatementExpressionOpening" : 0,
"ForStatementExpressionClosing" : 1,
"ForStatementClosingBrace" : 1,
"ForStatementOpeningBrace" : 1,
"ForStatementSemicolon" : 1,
"FunctionReservedWord": 0,
"FunctionName" : 0,
"FunctionExpressionOpeningBrace" : 1,
"FunctionExpressionClosingBrace" : 0,
"FunctionDeclarationOpeningBrace" : 0,
"FunctionDeclarationClosingBrace" : 0,
"IfStatementConditionalOpening" : 0,
"IfStatementConditionalClosing" : 1,
"IfStatementOpeningBrace" : 1,
"IfStatementClosingBrace" : 1,
"ElseStatementOpeningBrace" : 1,
"ElseStatementClosingBrace" : 1,
"ElseIfStatementOpeningBrace" : 1,
"ElseIfStatementClosingBrace" : 1,
"MemberExpressionOpening" : 0,
"LogicalExpressionOperator" : 1,
"ObjectExpressionClosingBrace": 0,
"PropertyName" : 0,
"PropertyValue" : 0,
"ParameterComma" : 1,
"ParameterList" : 0,
"SwitchDiscriminantOpening" : 0,
"SwitchDiscriminantClosing" : 1,
"ThrowKeyword": 1,
"TryKeyword": -1,
"TryOpeningBrace" : 1,
"TryClosingBrace" : 1,
"UnaryExpressionOperator": 0,
"VariableName" : 1,
"WhileStatementConditionalOpening" : 0,
"WhileStatementConditionalClosing" : 1,
"WhileStatementOpeningBrace" : 1,
"WhileStatementClosingBrace" : 1
}
}
}
20 changes: 20 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"eqeqeq": true,
"node": true,
"browser": true,
"newcap": true,
"predef": [
"describe",
"it",
"before",
"beforeEach",
"after",
"afterEach"
],
"unused": true,
"trailing": true,
"boss": true,
"loopfunc": true,
"undef": true,
"maxcomplexity": "10"
}
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: node_js
node_js:
- '0.10'
branches:
except:
- master
notifications:
webhooks:
urls:
- 'https://webhooks.gitter.im/e/aae9117008dad1557aac'
on_success: change
on_failure: always
on_start: false
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# mongodb-js

[![wercker status](https://app.wercker.com/status/18fd7c938105c8c25a0a5cb24979eef3/m "wercker status")](https://app.wercker.com/project/bykey/18fd7c938105c8c25a0a5cb24979eef3)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mongodb-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)


Meta repo for tracking all of the js related things.
66 changes: 66 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
module.exports = {
title: 'mongodb-js',
org: 'mongodb-js',
facetBy: ['language', 'category'],
columns: {
language: {
type: 'string',
name: 'Language'
},
stargazers_count: {
type: 'string',
icon: 'star'
},
category: {
type: 'string',
name: 'Category'
},
travis: {
type: 'image',
src: 'travis_badge_url',
href: 'travis_url'
},
},
category: function(repo) {
// Dynamically assign a category to a repo
if (repo.name === 'mongo') {
return 'Database';
}
var d = repo.name + ' ' + repo.description;
if (/driver/i.test(d)) {
return 'Driver';
}

if (/docs/i.test(d)) {
return 'Docs';
}

if (/bson/i.test(d)) {
return 'BSON';
}
if (/hadoop/i.test(d)) {
return 'Hadoop';
}
return 'n/a';
},
avatar_url: function(repo) {
return 'https://robohash.org/' + repo._id + '.png';
},
language: function(repo, resp) {
return resp.language;
},
homepage: function(repo) {
if (repo.name === 'mongo') {
return 'http://mongodb.com';
}
},
travis_url: function(repo) {
return 'https://travis-ci.org/' + repo._id;
},
travis_badge_url: function(repo) {
return 'https://travis-ci.org/' + repo._id + '.svg';
},
npm_downloads_url: function(repo) {
return 'https://img.shields.io/npm/dm/mongodb-' + repo.name + '.svg';
}
};
Loading

0 comments on commit 2abe458

Please sign in to comment.