Skip to content

Commit

Permalink
Add source code and build config
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJones02 committed Aug 19, 2015
1 parent df256ab commit 927feaa
Show file tree
Hide file tree
Showing 15 changed files with 585 additions and 202 deletions.
149 changes: 149 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"env": {
"node": true
},
"globals": {
},
"rules": {
"block-scoped-var": 0,
"brace-style": [1, "stroustrup"],
"camelcase": 0,
"comma-dangle": "never",
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"complexity": [0, 11],
"consistent-return": 1,
"consistent-this": [0, "self"],
"curly": [2, "multi-line"],
"default-case": 0,
"dot-notation": 1,
"eol-last": 1,
"eqeqeq": 2,
"func-names": 0,
"func-style": [0, "declaration"],
"guard-for-in": 0,
"handle-callback-err": 1,
"key-spacing": [1, { "beforeColon": false, "afterColon": true }],
"max-depth": [0, 4],
"max-len": [0, 80, 4],
"max-nested-callbacks": [0, 1],
"max-params": [0, 3],
"max-statements": [0, 10],
"new-cap": 1,
"new-parens": 1,
"no-alert": 2,
"no-array-constructor": 1,
"no-bitwise": 0,
"no-caller": 2,
"no-catch-shadow": 1,
"no-cond-assign": 1,
"no-console": 1,
"no-constant-condition": 1,
"no-control-regex": 1,
"no-debugger": 2,
"no-delete-var": 1,
"no-div-regex": 0,
"no-dupe-keys": 2,
"no-else-return": 1,
"no-empty": 1,
"no-empty-class": 1,
"no-empty-label": 1,
"no-eq-null": 0,
"no-eval": 2,
"no-ex-assign": 1,
"no-extend-native": 1,
"no-extra-bind": 1,
"no-extra-boolean-cast": 1,
"no-extra-parens": 0,
"no-extra-semi": 2,
"no-fallthrough": 1,
"no-floating-decimal": 0,
"no-func-assign": 1,
"no-implied-eval": 2,
"no-inline-comments": 0,
"no-inner-declarations": [1, "functions"],
"no-invalid-regexp": 1,
"no-irregular-whitespace": 2,
"no-iterator": 1,
"no-label-var": 1,
"no-labels": 1,
"no-lone-blocks": 1,
"no-lonely-if": 0,
"no-loop-func": 2,
"no-mixed-requires": [0, false],
"no-mixed-spaces-and-tabs": [2, false],
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-multiple-empty-lines": [0, {"max": 1}],
"no-native-reassign": 1,
"no-negated-in-lhs": 1,
"no-nested-ternary": 0,
"no-new": 1,
"no-new-func": 1,
"no-new-object": 1,
"no-new-require": 0,
"no-new-wrappers": 1,
"no-obj-calls": 1,
"no-octal": 1,
"no-octal-escape": 1,
"no-path-concat": 2,
"no-plusplus": 0,
"no-process-env": 0,
"no-process-exit": 1,
"no-proto": 1,
"no-redeclare": 2,
"no-regex-spaces": 1,
"no-reserved-keys": 0,
"no-restricted-modules": 0,
"no-return-assign": 1,
"no-script-url": 1,
"no-self-compare": 2,
"no-sequences": 1,
"no-shadow": 1,
"no-shadow-restricted-names": 1,
"no-spaced-func": 2,
"no-sparse-arrays": 1,
"no-sync": 0,
"no-ternary": 0,
"no-trailing-spaces": 2,
"no-undef": 1,
"no-undef-init": 1,
"no-undefined": 0,
"no-underscore-dangle": 0,
"no-unreachable": 2,
"no-unused-expressions": 1,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": 0,
"no-void": 0,
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
"no-with": 2,
"no-wrap-func": 2,
"one-var": 0,
"operator-assignment": [0, "always"],
"padded-blocks": [0, "never"],
"quote-props": [2, "as-needed"],
"quotes": [2, "single", "avoid-escape"],
"radix": 2,
"semi": [2, "always"],
"semi-spacing": [2, {"before": false, "after": true}],
"sort-vars": 0,
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren":[2, {"anonymous": "always", "named": "never"}],
"space-in-brackets": [0, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-return-throw-case": 1,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-line-comment": [1, "always"],
"strict": [2, "global"],
"global-strict": [2, "always"],
"use-isnan": 1,
"valid-jsdoc": 0,
"valid-typeof": 2,
"vars-on-top": 0,
"wrap-iife": 0,
"wrap-regex": 0,
"yoda": [2, "never"]
}
}
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

# Users Environment Variables
.lock-wscript
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage/
logs/
doc/
test/
.npmignore
.eslintrc
gulpfile.js
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: node_js

install:
- npm install

node_js:
- 0.10

before_install:
- npm install

script:
- gulp build

after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
Loading

0 comments on commit 927feaa

Please sign in to comment.