Skip to content

Commit c5269e7

Browse files
committed
feat(initial-release): Initial release for npm registery
0 parents  commit c5269e7

Some content is hidden

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

52 files changed

+13877
-0
lines changed

.babelrc

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"targets": {
5+
"node": "7.10.1"
6+
}
7+
}],
8+
"flow"
9+
],
10+
"env": {
11+
"test": {
12+
"plugins": ["istanbul"]
13+
}
14+
},
15+
"plugins": [
16+
"transform-class-properties",
17+
"transform-export-extensions",
18+
"transform-object-rest-spread",
19+
"transform-strict-mode"
20+
]
21+
}

.codeclimate.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
engines:
2+
duplication:
3+
enabled: true
4+
config:
5+
languages:
6+
- javascript
7+
eslint:
8+
enabled: true
9+
fixme:
10+
enabled: true
11+
ratings:
12+
paths:
13+
- src/**.js
14+
- test/**.js
15+
- "**.js"
16+
exclude_paths:
17+
- "build/**/*"
18+
- "node_modules/**/*"
19+
- "test/**/*"

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
charset = utf-8
8+
9+
[*.js]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[{package.json,*.yml,*.cjson}]
14+
indent_style = space
15+
indent_size = 2

.esdoc.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"source": "./src",
3+
"destination": "./docs",
4+
"includes": [".js$"],
5+
"excludes": ["(node_modules|docs|coverage)"],
6+
"package": "./package.json",
7+
"plugins": [{
8+
"name": "esdoc-standard-plugin",
9+
"option": {
10+
"brand": {
11+
"logo": "./logo.png",
12+
"title": "pop-api",
13+
"description": "The base modules for popcorn-api",
14+
"repository": "https://github.com/popcorn-official/pop-api",
15+
"site": "https://popcorntime.sh",
16+
"author": "https://twitter.com/popcorntimetv",
17+
"image": "https://avatars2.githubusercontent.com/u/7267937"
18+
},
19+
"manual": {
20+
"index": "./README.md",
21+
"globalIndex": false,
22+
"coverage": true,
23+
"files": [
24+
"./CHANGELOG.md",
25+
"./CONTRIBUTING.md",
26+
"./CODE_OF_CONDUCT.md"
27+
]
28+
},
29+
"test": {
30+
"source": "./test/",
31+
"interfaces": ["describe", "it", "context", "suite", "test"],
32+
"includes": ["(spec|Spec|test|Test)\\.js$"],
33+
"excludes": ["\\.config\\.js$"]
34+
}
35+
}
36+
}, {
37+
"name": "esdoc-ecmascript-proposal-plugin",
38+
"option": {
39+
"all": true
40+
}
41+
}, {
42+
"name": "esdoc-flow-type-plugin",
43+
"option": {
44+
"enable": true
45+
}
46+
}]
47+
}

.flowconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[ignore]
2+
<PROJECT_ROOT>/build/.*
3+
<PROJECT_ROOT>/coverage/.*
4+
<PROJECT_ROOT>/docs/.*
5+
<PROJECT_ROOT>/flow-typed/.*
6+
<PROJECT_ROOT>/manual/.*
7+
<PROJECT_ROOT>/node_modules/.*
8+
9+
[include]
10+
<PROJECT_ROOT>/examples/.*
11+
<PROJECT_ROOT>/src/.*
12+
<PROJECT_ROOT>/test/.*
13+
14+
[libs]
15+
16+
[options]
17+
experimental.const_params=true
18+
include_warnings=true
19+
munge_underscores=true
20+
unsafe.enable_getters_and_setters=true
21+
suppress_comment= \\(.\\|\n\\)*\\flow-ignore

.gitignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
### Node template
2+
# Logs
3+
logs
4+
*.log
5+
npm-debug.log*
6+
7+
# Runtime data
8+
pids
9+
*.pid
10+
*.seed
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
.nyc_output
18+
19+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
20+
.grunt
21+
22+
# node-waf configuration
23+
.lock-wscript
24+
25+
# Compiled binary addons (http://nodejs.org/api/addons.html)
26+
build/Release
27+
28+
# Dependency directory
29+
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
30+
node_modules
31+
32+
# Auto generated docs
33+
docs
34+
35+
# Imported flow-typed
36+
flow-typed/npm/*
37+
38+
# Temporary directory
39+
tmp
40+
41+
# Files generated by 'npm pack'
42+
*.tgz
43+
44+
# Transpiled code
45+
build

.travis.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
sudo: required
2+
3+
dist: trusty
4+
5+
language: node_js
6+
7+
cache:
8+
directories:
9+
- node_modules
10+
- flow-typed
11+
12+
addons:
13+
apt:
14+
sources:
15+
- mongodb-upstart
16+
- mongodb-3.4-precise
17+
packages:
18+
- mongodb-org-server
19+
- mongodb-org-shell
20+
- mongodb-org-tools
21+
22+
services:
23+
- mongodb
24+
25+
env:
26+
matrix:
27+
- NODE_ENV=test
28+
29+
git:
30+
submodules: false
31+
32+
jobs:
33+
include:
34+
- stage: prepare cache
35+
node_js: '9'
36+
before_script:
37+
- npm i -g flow-typed
38+
- flow-typed install
39+
script:
40+
- npm run lint
41+
- npm run flow
42+
- stage: test
43+
node_js: '7'
44+
script: npm run test
45+
- stage: test
46+
node_js: '8'
47+
script: npm run test
48+
after_success: npm run coveralls
49+
- stage: test
50+
node_js: '9'
51+
script: npm run test
52+
- stage: build
53+
node_js: '9'
54+
script: npm run build
55+
- stage: docs
56+
node_js: '9'
57+
script: npm run docs
58+
59+
notifications:
60+
email:
61+
recipients:
62+
63+
on_failure: always

CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
- [Our Pledge](#our-pledge)
4+
- [Our Standards](#our-standards)
5+
- [Our Responsibilities](#our-responsibilities)
6+
- [Scope](#scope)
7+
- [Enforcement](#enforcement)
8+
- [Attribution](#attribution)
9+
10+
## Our Pledge
11+
12+
In the interest of fostering an open and welcoming environment, we as
13+
contributors and maintainers pledge to making participation in our project and
14+
our community a harassment-free experience for everyone, regardless of age,
15+
body size, disability, ethnicity, gender identity and expression, level of
16+
experience, nationality, personal appearance, race, religion, or sexual
17+
identity and orientation.
18+
19+
## Our Standards
20+
21+
Examples of behavior that contributes to creating a positive environment
22+
include:
23+
- Using welcoming and inclusive language
24+
- Being respectful of differing viewpoints and experiences
25+
- Gracefully accepting constructive criticism
26+
- Focusing on what is best for the community
27+
- Showing empathy towards other community members
28+
29+
Examples of unacceptable behavior by participants include:
30+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
31+
- Trolling, insulting/derogatory comments, and personal or political attacks
32+
- Public or private harassment
33+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
34+
- Other conduct which could reasonably be considered inappropriate in a professional setting
35+
36+
## Our Responsibilities
37+
38+
Project maintainers are responsible for clarifying the standards of acceptable
39+
behavior and are expected to take appropriate and fair corrective action in
40+
response to any instances of unacceptable behavior.
41+
42+
Project maintainers have the right and responsibility to remove, edit, or
43+
reject comments, commits, code, wiki edits, issues, and other contributions
44+
that are not aligned to this Code of Conduct, or to ban temporarily or
45+
permanently any contributor for other behaviors that they deem inappropriate,
46+
threatening, offensive, or harmful.
47+
48+
## Scope
49+
50+
This Code of Conduct applies both within project spaces and in public spaces
51+
when an individual is representing the project or its community. Examples of
52+
representing a project or community include using an official project e-mail
53+
address, posting via an official social media account, or acting as an
54+
appointed representative at an online or offline event. Representation of a
55+
project may be further defined and clarified by project maintainers.
56+
57+
## Enforcement
58+
59+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
60+
reported by contacting the project team at `[email protected]`. The
61+
project team will review and investigate all complaints, and will respond in a
62+
way that it deems appropriate to the circumstances. The project team is
63+
obligated to maintain confidentiality with regard to the reporter of an
64+
incident. Further details of specific enforcement policies may be posted
65+
separately.
66+
67+
Project maintainers who do not follow or enforce the Code of Conduct in good
68+
faith may face temporary or permanent repercussions as determined by other
69+
members of the project's leadership.
70+
71+
## Attribution
72+
73+
This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
74+
available at http://contributor-covenant.org/version/1/4

0 commit comments

Comments
 (0)