Skip to content

Commit 9d7a464

Browse files
committed
Initial commit
0 parents  commit 9d7a464

8 files changed

+267
-0
lines changed

.doclets.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dir: src
2+
3+
packageJson: package.json
4+
5+
articles:
6+
- Overview: readme.md

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 4
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.{json,yml}]
14+
indent_size = 2

.eslintrc.js

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
module.exports = {
2+
extends : [
3+
'eslint:all'
4+
],
5+
globals : {
6+
'define': true,
7+
'module': true,
8+
9+
// typed arrays
10+
'Int8Array' : true,
11+
'Uint8Array' : true,
12+
'Uint8ClampedArray' : true,
13+
'Int16Array' : true,
14+
'Uint16Array' : true,
15+
'Int32Array' : true,
16+
'Uint32Array' : true,
17+
'Float32Array' : true,
18+
'Float64Array' : true
19+
},
20+
'parserOptions': {
21+
'ecmaVersion': 5
22+
},
23+
rules : {
24+
'strict': 'off',
25+
'padded-blocks': 'off',
26+
'func-names': 'off',
27+
'no-var' : 'off',
28+
'sort-vars' : 'off',
29+
'no-multi-spaces': 'off',
30+
'init-declarations': 'off',
31+
'prefer-arrow-callback' : 'off',
32+
'func-style': 'off',
33+
'no-plusplus': 'off',
34+
'no-continue': 'off',
35+
'no-prototype-builtins': 'off',
36+
'vars-on-top': 'error',
37+
'prefer-reflect': 'off',
38+
'space-unary-ops': 'off',
39+
'key-spacing' : 'off',
40+
'callback-return' : 'off',
41+
'no-implicit-coercion' : 'off',
42+
'no-negated-condition' : 'off',
43+
'guard-for-in' : 'off',
44+
'no-lonely-if' : 'off',
45+
'max-params': [
46+
'error', 5
47+
],
48+
'max-lines': [
49+
'error', {
50+
'max' : 250,
51+
'skipBlankLines' : true,
52+
'skipComments' : true
53+
}
54+
],
55+
'quote-props': [
56+
'error',
57+
'as-needed', {
58+
'keywords': false
59+
}
60+
],
61+
'space-in-parens': 'off',
62+
'id-length': [
63+
'error', {
64+
'exceptions': [
65+
'i', 'j', 'p', 'n', 'x', 'y', 'w', 'h'
66+
]
67+
}
68+
],
69+
'linebreak-style': [
70+
'error', 'unix'
71+
],
72+
'complexity': [
73+
'error', 50
74+
],
75+
'max-statements': [
76+
'error', 40
77+
],
78+
'indent': [
79+
'error', 4,
80+
{
81+
'SwitchCase': 1
82+
}
83+
],
84+
'max-len': [
85+
'error', 120, 4
86+
],
87+
'camelcase': [
88+
'error', {
89+
'properties': 'never'
90+
}
91+
],
92+
'quotes' : [
93+
'error', 'single', {
94+
'avoidEscape' : true,
95+
'allowTemplateLiterals' : true
96+
}
97+
],
98+
'default-case': [
99+
'error', {
100+
'commentPattern' : '^skip\\sdefault'
101+
}
102+
],
103+
'no-magic-numbers': [
104+
'error', {
105+
'ignore' : [0, 1],
106+
'ignoreArrayIndexes' : true
107+
}
108+
],
109+
'space-before-function-paren': [
110+
'error', {
111+
'anonymous' : 'never',
112+
'named' : 'never'
113+
}
114+
]
115+
}
116+
};

.gitattributes

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# General .gitattributes v1.0.0
2+
3+
# Auto detect text files and perform LF normalization
4+
* text=auto
5+
* eol=lf
6+
7+
# These files are text and should be normalized (Convert crlf => lf)
8+
*.php text
9+
*.css text
10+
*.scss text
11+
*.sass text
12+
*.js text
13+
*.htm text
14+
*.html text
15+
*.xml text
16+
*.txt text
17+
*.ini text
18+
*.inc text
19+
.htaccess text
20+
21+
# These files are binary and should be left untouched
22+
# images
23+
*.png binary
24+
*.jpg binary
25+
*.jpeg binary
26+
*.gif binary
27+
*.ico binary
28+
*.psd binary
29+
*.ai binary
30+
31+
# fonts
32+
*.ttf binary
33+
*.woff binary
34+
*.woff2 binary
35+
*.eot binary
36+
37+
# documents
38+
*.pdf binary
39+
*.doc binary
40+
*.docx binary
41+
42+
# compressed formats
43+
*.zip binary
44+
*.tar binary
45+
*.gz binary
46+
*.rar binary
47+
*.7z binary
48+
49+
# executables
50+
*.phar binary
51+
*.exe binary
52+
53+
# media formats
54+
*.mov binary
55+
*.mp4 binary
56+
*.mp3 binary
57+
*.flv binary
58+
*.fla binary
59+
*.swf binary

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# IntelliJ project directory
2+
.idea/
3+
4+
# Vagrant VM directory
5+
.vagrant/
6+
7+
# Node project dependencies
8+
/node_modules/
9+
10+
# Code coverage report
11+
/cov/
12+
13+
# Logs
14+
/npm-debug.log
15+
16+
# Required data for publishing project
17+
/.publish.json

.npmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# IntelliJ project directory
2+
/.idea/
3+
4+
# Vagrant VM directory
5+
/.vagrant/
6+
7+
# scripts directory (for development)
8+
/scripts/
9+
10+
# license template for minimized version (for development)
11+
/src/license-header-template.json
12+
13+
# tests directory (for development)
14+
/tests/
15+
16+
.doclets.yml
17+
.editorconfig
18+
.eslintrc.js
19+
.gitattributes
20+
.npmignore
21+
.publish.json
22+
.travis.yml
23+
vagrantfile

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: node_js
2+
3+
node_js:
4+
- stable
5+
- "6"
6+
- "6.1"
7+
- "5"
8+
- "5.1"
9+
- "4"
10+
- "4.2"
11+
- "4.1"
12+
- "4.0"
13+
14+
script:
15+
- npm run ci
16+
- npm run coveralls

license.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
**The MIT License (MIT)**
2+
3+
Copyright (c) 2016 **Richard King** [richrdkng@gmail.com](richrdkng@gmail.com)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
7+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8+
persons to whom the Software is furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all copies
11+
or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
14+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)