Skip to content

Commit

Permalink
feat(initial-release): Initial relase for npm registery
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAlderson committed Dec 27, 2017
0 parents commit e8deafd
Show file tree
Hide file tree
Showing 122 changed files with 106,360 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .babelrc
@@ -0,0 +1,49 @@
{
"plugins": [
"transform-class-properties",
"transform-export-extensions",
["transform-object-rest-spread", {
"useBuiltIns": true
}],
"transform-strict-mode"
],
"presets": ["flow"],
"env": {
"development": {
"presets": [
["env", {
"targets": {
"node": "7.10.1"
}
}]
]
},
"production": {
"plugins": [
"external-helpers",
"transform-class-properties"
],
"presets": [
["env", {
"targets": {
"node": "7.10.1"
},
"modules": false
}]
]
},
"test": {
"plugins": [
"istanbul",
"transform-class-properties"
],
"presets": [
["env", {
"targets": {
"node": "7.10.1"
}
}]
]
}
}
}
19 changes: 19 additions & 0 deletions .codeclimate.yml
@@ -0,0 +1,19 @@
engines:
duplication:
enabled: true
config:
languages:
- javascript
eslint:
enabled: true
fixme:
enabled: true
ratings:
paths:
- src/**.js
- test/**.js
- "**.js"
exclude_paths:
- "examples/**/*"
- "node_modules/**/*"
- "test/**/*"
15 changes: 15 additions & 0 deletions .editorconfig
@@ -0,0 +1,15 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.js]
indent_style = space
indent_size = 2

[{package.json,*.yml,*.cjson}]
indent_style = space
indent_size = 2
49 changes: 49 additions & 0 deletions .esdoc.json
@@ -0,0 +1,49 @@
{
"source": "./src",
"destination": "./docs",
"includes": [".js$"],
"excludes": ["(node_modules|docs|coverage)"],
"package": "./package.json",
"plugins": [{
"name": "esdoc-standard-plugin",
"option": {
"brand": {
"logo": "./logo.png",
"title": "pop-api-scraper",
"description": "The base modules for the popcorn-api scraper",
"repository": "https://github.com/popcorn-official/pop-api-scraper",
"site": "https://popcorntime.sh",
"author": "https://twitter.com/popcorntimetv",
"image": "https://avatars2.githubusercontent.com/u/7267937"
},
"manual": {
"index": "./README.md",
"globalIndex": false,
"coverage": true,
"files": [
"./manual/usage.md",
"./manual/middleware.md",
"./CHANGELOG.md",
"./CONTRIBUTING.md",
"./CODE_OF_CONDUCT.md"
]
},
"test": {
"source": "./test/",
"interfaces": ["describe", "it", "context", "suite", "test"],
"includes": ["(spec|Spec|test|Test)\\.js$"],
"excludes": ["\\.config\\.js$"]
}
}
}, {
"name": "esdoc-ecmascript-proposal-plugin",
"option": {
"all": true
}
}, {
"name": "esdoc-flow-type-plugin",
"option": {
"enable": true
}
}]
}
3 changes: 3 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,3 @@
module.exports = {
extends: 'vixo'
}
22 changes: 22 additions & 0 deletions .flowconfig
@@ -0,0 +1,22 @@
[ignore]
<PROJECT_ROOT>/build/.*
<PROJECT_ROOT>/coverage/.*
<PROJECT_ROOT>/docs/.*
<PROJECT_ROOT>/flow-typed/.*
<PROJECT_ROOT>/manual/.*
<PROJECT_ROOT>/node_modules/.*

[include]
./coverage.js
./examples/.*
./src/.*
./test/.*

[libs]

[options]
experimental.const_params=true
include_warnings=true
munge_underscores=true
unsafe.enable_getters_and_setters=true
suppress_comment= \\(.\\|\n\\)*\\flow-ignore
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE.md
@@ -0,0 +1,17 @@
## Expected Behavior


## Actual Behavior


## Steps to Reproduce the Problem

1.
1.
1.

## Specifications

- Version:
- Platform:
- Subsystem:
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,7 @@
Fixes #

## Proposed Changes

-
-
-
42 changes: 42 additions & 0 deletions .gitignore
@@ -0,0 +1,42 @@
### Node template
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

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

# Coverage directory used by tools like istanbul
coverage
.nyc_output

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

# node-waf configuration
.lock-wscript

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

# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules

# Imported flow-typed
flow-typed/npm/*

# Temporary directory
tmp

# Files generated by 'npm pack'
*.tgz

# Transpiled code
build
10 changes: 10 additions & 0 deletions .nycrc
@@ -0,0 +1,10 @@
{
"require": [
"babel-register"
],
"include": [
"src"
],
"sourceMap": false,
"instrument": false
}
51 changes: 51 additions & 0 deletions .travis.yml
@@ -0,0 +1,51 @@
sudo: required

dist: trusty

language: node_js

cache:
directories:
- node_modules
- flow-typed

env:
matrix:
- NODE_ENV=test

git:
submodules: false

jobs:
include:
- stage: prepare cache
node_js: '9'
before_script:
- npm i -g flow-typed
- npm i --no-save pop-api
- flow-typed install
script:
- npm run lint
- npm run flow
- stage: test
node_js: '7'
script: npm run test
- stage: test
node_js: '8'
script: npm run test
after_success: npm run coveralls
- stage: test
node_js: '9'
script: npm run test
- stage: build
node_js: '9'
script: npm run build
- stage: docs
node_js: '9'
script: npm run docs

notifications:
email:
recipients:
- chrisalderson@protonmail.com
on_failure: always
74 changes: 74 additions & 0 deletions CODE_OF_CONDUCT.md
@@ -0,0 +1,74 @@
# Contributor Covenant Code of Conduct

- [Our Pledge](#our-pledge)
- [Our Standards](#our-standards)
- [Our Responsibilities](#our-responsibilities)
- [Scope](#scope)
- [Enforcement](#enforcement)
- [Attribution](#attribution)

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age,
body size, disability, ethnicity, gender identity and expression, level of
experience, nationality, personal appearance, race, religion, or sexual
identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an
appointed representative at an online or offline event. Representation of a
project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at `hello@popcorntime.sh`. The
project team will review and investigate all complaints, and will respond in a
way that it deems appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an
incident. Further details of specific enforcement policies may be posted
separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
available at http://contributor-covenant.org/version/1/4

0 comments on commit e8deafd

Please sign in to comment.