Skip to content

Commit 1ae1594

Browse files
committed
Initial commit
0 parents  commit 1ae1594

12 files changed

+147
-0
lines changed

Diff for: .editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

Diff for: .gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
*~
3+
4+
node_modules/
5+
npm-debug.log
6+
7+
coverage/
8+
docs/

Diff for: .jsdocrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"plugins": [
3+
"plugins/markdown"
4+
],
5+
"opts": {
6+
"template": "node_modules/docdash",
7+
"destination": "docs/"
8+
},
9+
"templates": {
10+
"default": {
11+
"includeDate": false
12+
}
13+
}
14+
}

Diff for: .npmignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.gitignore
2+
.npmignore
3+
.editorconfig
4+
5+
node_modules/
6+
npm-debug.log
7+
8+
test/
9+
coverage/
10+
.travis.yml
11+
12+
docs/
13+
.jsdocrc
14+
.yaspellerrc

Diff for: .travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- "6"
4+
- "4"

Diff for: .yaspellerrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"lang": "en",
3+
"ignoreCapitalization": true,
4+
"dictionary": [
5+
"JSDoc",
6+
"docdash"
7+
]
8+
}

Diff for: CHANGELOG.md

Whitespace-only changes.

Diff for: LICENSE

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

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Event Emitter 5

Diff for: index.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function EventEmitter5 () {
2+
3+
}
4+
5+
EventEmitter5.prototype = { }
6+
7+
module.exports = EventEmitter5

Diff for: package.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "eventemitter5",
3+
"version": "0.0.0",
4+
"description": "",
5+
"keywords": [],
6+
"author": "Andrey Sitnik <[email protected]>",
7+
"license": "MIT",
8+
"repository": "ai/eventemitter5",
9+
"dependencies": {},
10+
"devDependencies": {
11+
"docdash": "^0.4.0",
12+
"eslint": "^3.5.0",
13+
"eslint-config-standard": "^6.0.1",
14+
"eslint-plugin-promise": "^2.0.1",
15+
"eslint-plugin-standard": "^2.0.0",
16+
"jest": "^15.1.1",
17+
"jsdoc": "^3.4.1",
18+
"lint-staged": "^3.0.2",
19+
"pre-commit": "^1.1.3",
20+
"rimraf": "^2.5.4",
21+
"yaspeller": "^2.9.1"
22+
},
23+
"scripts": {
24+
"lint-staged": "lint-staged",
25+
"spellcheck": "npm run docs && yaspeller *.md docs/*.html",
26+
"clean": "rimraf docs/ coverage/",
27+
"lint": "eslint *.js test/*.js",
28+
"docs": "jsdoc --configure .jsdocrc *.js",
29+
"test": "jest --coverage && npm run lint && npm run spellcheck"
30+
},
31+
"jest": {
32+
"coverageThreshold": {
33+
"global": {
34+
"statements": 100
35+
}
36+
}
37+
},
38+
"eslintConfig": {
39+
"extends": "standard",
40+
"rules": {
41+
"valid-jsdoc": "error",
42+
"no-new": "off"
43+
},
44+
"env": {
45+
"jest": true
46+
}
47+
},
48+
"lint-staged": {
49+
"*.md": "yaspeller",
50+
"*.js": "eslint"
51+
},
52+
"pre-commit": [
53+
"lint-staged"
54+
]
55+
}

Diff for: test/index.test.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var EventEmitter5 = require('../')
2+
3+
it('is a class', function () {
4+
var instance = new EventEmitter5()
5+
expect(typeof EventEmitter5).toEqual('function')
6+
expect(instance instanceof EventEmitter5).toBeTruthy()
7+
})

0 commit comments

Comments
 (0)