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

Commit 2bf3280

Browse files
committed
Merge branch 'dev' into feature-13-welcome
Conflicts: README.md
2 parents 83cf371 + 2abe458 commit 2bf3280

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2533
-0
lines changed

Diff for: .jsfmtrc

+171
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
{
2+
3+
4+
"// docs, basically" : "https://github.com/paulirish/sublime-jsfmt#formatting-rules",
5+
"preset": "default",
6+
"plugins": [
7+
"esformatter-quotes",
8+
"esformatter-semicolons",
9+
"esformatter-braces"
10+
],
11+
"quotes": {
12+
"type": "single",
13+
"avoidEscape": false
14+
},
15+
"indent": {
16+
"value": " "
17+
},
18+
"whiteSpace" : {
19+
"value" : " ",
20+
"removeTrailing" : 1,
21+
22+
"before" : {
23+
"ArrayExpressionOpening" : 0,
24+
"ArrayExpressionClosing" : 0,
25+
"ArrayExpressionComma" : 0,
26+
"ArgumentComma" : 0,
27+
"ArgumentList" : 0,
28+
"ArgumentListArrayExpression" : 0,
29+
"ArgumentListFunctionExpression" : 0,
30+
"ArgumentListObjectExpression" : 0,
31+
"AssignmentOperator" : 1,
32+
"BinaryExpression": 0,
33+
"BinaryExpressionOperator" : 1,
34+
"BlockComment" : 1,
35+
"CallExpression" : -1,
36+
"CatchParameterList" : 0,
37+
"CatchOpeningBrace" : 1,
38+
"CatchClosingBrace" : 1,
39+
"CatchKeyword" : 1,
40+
"CommaOperator" : 0,
41+
"ConditionalExpressionConsequent" : 1,
42+
"ConditionalExpressionAlternate" : 1,
43+
"DoWhileStatementOpeningBrace" : 1,
44+
"DoWhileStatementClosingBrace" : 1,
45+
"DoWhileStatementConditional" : 1,
46+
"EmptyStatement" : 0,
47+
"ExpressionClosingParentheses" : 0,
48+
"FinallyKeyword" : -1,
49+
"FinallyOpeningBrace" : 1,
50+
"FinallyClosingBrace" : 1,
51+
"ForInStatement" : 1,
52+
"ForInStatementExpressionOpening" : 1,
53+
"ForInStatementExpressionClosing" : 0,
54+
"ForInStatementOpeningBrace" : 1,
55+
"ForInStatementClosingBrace" : 1,
56+
"ForStatement" : 1,
57+
"ForStatementExpressionOpening" : 1,
58+
"ForStatementExpressionClosing" : 0,
59+
"ForStatementOpeningBrace" : 1,
60+
"ForStatementClosingBrace" : 1,
61+
"ForStatementSemicolon" : 0,
62+
"FunctionDeclarationOpeningBrace" : 1,
63+
"FunctionDeclarationClosingBrace" : 1,
64+
"FunctionExpressionOpeningBrace" : 1,
65+
"FunctionExpressionClosingBrace" : 1,
66+
"IfStatementConditionalOpening" : 1,
67+
"IfStatementConditionalClosing" : 0,
68+
"IfStatementOpeningBrace" : 1,
69+
"IfStatementClosingBrace" : 1,
70+
"ElseStatementOpeningBrace" : 1,
71+
"ElseStatementClosingBrace" : 1,
72+
"ElseIfStatementOpeningBrace" : 1,
73+
"ElseIfStatementClosingBrace" : 1,
74+
"MemberExpressionClosing" : 0,
75+
"LineComment" : 1,
76+
"LogicalExpressionOperator" : 1,
77+
"Property" : 1,
78+
"PropertyValue" : 1,
79+
"ParameterComma" : 0,
80+
"ParameterList" : 0,
81+
"SwitchDiscriminantOpening" : 1,
82+
"SwitchDiscriminantClosing" : 0,
83+
"ThrowKeyword": 1,
84+
"TryKeyword": -1,
85+
"TryOpeningBrace" : 1,
86+
"TryClosingBrace" : 1,
87+
"UnaryExpressionOperator": 0,
88+
"VariableName" : 1,
89+
"VariableValue" : 1,
90+
"WhileStatementConditionalOpening" : 1,
91+
"WhileStatementConditionalClosing" : 0,
92+
"WhileStatementOpeningBrace" : 1,
93+
"WhileStatementClosingBrace" : 1
94+
},
95+
96+
"after" : {
97+
"ArrayExpressionOpening" : 0,
98+
"ArrayExpressionClosing" : 0,
99+
"ArrayExpressionComma" : 1,
100+
"ArgumentComma" : 1,
101+
"ArgumentList" : 0,
102+
"ArgumentListArrayExpression" : 0,
103+
"ArgumentListFunctionExpression" : 0,
104+
"ArgumentListObjectExpression" : 0,
105+
"AssignmentOperator" : 1,
106+
"BinaryExpression": 0,
107+
"BinaryExpressionOperator" : 1,
108+
"BlockComment" : 1,
109+
"CallExpression" : 0,
110+
"CatchParameterList" : 0,
111+
"CatchOpeningBrace" : 1,
112+
"CatchClosingBrace" : 1,
113+
"CatchKeyword" : 1,
114+
"CommaOperator" : 1,
115+
"ConditionalExpressionConsequent" : 1,
116+
"ConditionalExpressionTest" : 1,
117+
"DoWhileStatementOpeningBrace" : 1,
118+
"DoWhileStatementClosingBrace" : 1,
119+
"DoWhileStatementBody" : 1,
120+
"EmptyStatement" : 0,
121+
"ExpressionOpeningParentheses" : 0,
122+
"FinallyKeyword" : -1,
123+
"FinallyOpeningBrace" : 1,
124+
"FinallyClosingBrace" : 1,
125+
"ForInStatement" : 1,
126+
"ForInStatementExpressionOpening" : 0,
127+
"ForInStatementExpressionClosing" : 1,
128+
"ForInStatementOpeningBrace" : 1,
129+
"ForInStatementClosingBrace" : 1,
130+
"ForStatement" : 1,
131+
"ForStatementExpressionOpening" : 0,
132+
"ForStatementExpressionClosing" : 1,
133+
"ForStatementClosingBrace" : 1,
134+
"ForStatementOpeningBrace" : 1,
135+
"ForStatementSemicolon" : 1,
136+
"FunctionReservedWord": 0,
137+
"FunctionName" : 0,
138+
"FunctionExpressionOpeningBrace" : 1,
139+
"FunctionExpressionClosingBrace" : 0,
140+
"FunctionDeclarationOpeningBrace" : 0,
141+
"FunctionDeclarationClosingBrace" : 0,
142+
"IfStatementConditionalOpening" : 0,
143+
"IfStatementConditionalClosing" : 1,
144+
"IfStatementOpeningBrace" : 1,
145+
"IfStatementClosingBrace" : 1,
146+
"ElseStatementOpeningBrace" : 1,
147+
"ElseStatementClosingBrace" : 1,
148+
"ElseIfStatementOpeningBrace" : 1,
149+
"ElseIfStatementClosingBrace" : 1,
150+
"MemberExpressionOpening" : 0,
151+
"LogicalExpressionOperator" : 1,
152+
"ObjectExpressionClosingBrace": 0,
153+
"PropertyName" : 0,
154+
"PropertyValue" : 0,
155+
"ParameterComma" : 1,
156+
"ParameterList" : 0,
157+
"SwitchDiscriminantOpening" : 0,
158+
"SwitchDiscriminantClosing" : 1,
159+
"ThrowKeyword": 1,
160+
"TryKeyword": -1,
161+
"TryOpeningBrace" : 1,
162+
"TryClosingBrace" : 1,
163+
"UnaryExpressionOperator": 0,
164+
"VariableName" : 1,
165+
"WhileStatementConditionalOpening" : 0,
166+
"WhileStatementConditionalClosing" : 1,
167+
"WhileStatementOpeningBrace" : 1,
168+
"WhileStatementClosingBrace" : 1
169+
}
170+
}
171+
}

Diff for: .jshintrc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"eqeqeq": true,
3+
"node": true,
4+
"browser": true,
5+
"newcap": true,
6+
"predef": [
7+
"describe",
8+
"it",
9+
"before",
10+
"beforeEach",
11+
"after",
12+
"afterEach"
13+
],
14+
"unused": true,
15+
"trailing": true,
16+
"boss": true,
17+
"loopfunc": true,
18+
"undef": true,
19+
"maxcomplexity": "10"
20+
}

Diff for: .travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: node_js
2+
node_js:
3+
- '0.10'
4+
branches:
5+
except:
6+
- master
7+
notifications:
8+
webhooks:
9+
urls:
10+
- 'https://webhooks.gitter.im/e/aae9117008dad1557aac'
11+
on_success: change
12+
on_failure: always
13+
on_start: false

Diff for: README.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# mongodb-js
22

3+
[![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)
4+
35
A collective of JavaScript that does things to or with MongoDB.
46

57
<dl>
@@ -25,3 +27,8 @@ A collective of JavaScript that does things to or with MongoDB.
2527
the entire organization green.
2628
</dd>
2729
</dl>
30+
31+
[![wercker status](https://app.wercker.com/status/18fd7c938105c8c25a0a5cb24979eef3/m "wercker status")](https://app.wercker.com/project/bykey/18fd7c938105c8c25a0a5cb24979eef3)
32+
33+
34+

Diff for: config.js

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
module.exports = {
2+
title: 'mongodb-js',
3+
org: 'mongodb-js',
4+
facetBy: ['language', 'category'],
5+
columns: {
6+
language: {
7+
type: 'string',
8+
name: 'Language'
9+
},
10+
stargazers_count: {
11+
type: 'string',
12+
icon: 'star'
13+
},
14+
category: {
15+
type: 'string',
16+
name: 'Category'
17+
},
18+
travis: {
19+
type: 'image',
20+
src: 'travis_badge_url',
21+
href: 'travis_url'
22+
},
23+
},
24+
category: function(repo) {
25+
// Dynamically assign a category to a repo
26+
if (repo.name === 'mongo') {
27+
return 'Database';
28+
}
29+
var d = repo.name + ' ' + repo.description;
30+
if (/driver/i.test(d)) {
31+
return 'Driver';
32+
}
33+
34+
if (/docs/i.test(d)) {
35+
return 'Docs';
36+
}
37+
38+
if (/bson/i.test(d)) {
39+
return 'BSON';
40+
}
41+
if (/hadoop/i.test(d)) {
42+
return 'Hadoop';
43+
}
44+
return 'n/a';
45+
},
46+
avatar_url: function(repo) {
47+
return 'https://robohash.org/' + repo._id + '.png';
48+
},
49+
language: function(repo, resp) {
50+
return resp.language;
51+
},
52+
homepage: function(repo) {
53+
if (repo.name === 'mongo') {
54+
return 'http://mongodb.com';
55+
}
56+
},
57+
travis_url: function(repo) {
58+
return 'https://travis-ci.org/' + repo._id;
59+
},
60+
travis_badge_url: function(repo) {
61+
return 'https://travis-ci.org/' + repo._id + '.svg';
62+
},
63+
npm_downloads_url: function(repo) {
64+
return 'https://img.shields.io/npm/dm/mongodb-' + repo.name + '.svg';
65+
}
66+
};

0 commit comments

Comments
 (0)