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

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
imlucas committed Apr 16, 2015
0 parents commit e29781d
Show file tree
Hide file tree
Showing 16 changed files with 613 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
.DS_Store
node_modules/
npm-debug.log
171 changes: 171 additions & 0 deletions .jsfmtrc
@@ -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
}
}
}
19 changes: 19 additions & 0 deletions .jshintrc
@@ -0,0 +1,19 @@
{
"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
}
4 changes: 4 additions & 0 deletions .npmignore
@@ -0,0 +1,4 @@
.jshintrc
.jsfmtrc
.travis.yml
test/
10 changes: 10 additions & 0 deletions .travis.yml
@@ -0,0 +1,10 @@
language: node_js
sudo: false
node_js:
- 'iojs'
- 'node'
- '0.10'
script: npm run ci
cache:
directories:
- node_modules
36 changes: 36 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,36 @@
# Contributing

Great to have you here. These are a few ways you can help make this project better:

- [Implement a #starter feature](http://github.com/mongodb-js/mongodb-collection-sample/labels/starter)
- Add an example to `README.md`

## Workflow

1. [Fork the repository on GitHub](http://github.com/mongodb-js/mongodb-collection-sample)
1. Create a new branch with a name that breifly describes your feature
1. Implement your feature or bug fix
1. Add new cases to `./test/index.test.js` and run them with `npm test`
1. Add comments around your new code that explain what's happening
1. Commit and push your changes to your branch
1. Submit a pull request

Don’t get discouraged! We estimate that the response time from the
maintainers is less than 24 hours.

## Bugs

You can report new bugs by
[creating a new issue](http://github.com/mongodb-js/mongodb-collection-sample/issues).
Please include as much information as possible about your environment
("I am using node.js v 0.12.0 on OSX Mavericks"). Actual code is always
more valuable than an explanation, so please include a link to a GitHub
gist or include a snippet directly in your issue description.

## Versioning

This library aims to adhere to [Semantic Versioning2.0.0](http://semver.org/).
Violations of this scheme should be reported as bugs. Specifically, if a
minor or patch version is released that breaks backward compatibility,
that version should be immediately yanked and/or a new version should be
immediately released that restores compatibility.

0 comments on commit e29781d

Please sign in to comment.