Skip to content

Commit

Permalink
v2.0.0 from personal branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Jun 15, 2016
1 parent d89fb6a commit c773837
Show file tree
Hide file tree
Showing 52 changed files with 3,322 additions and 3,073 deletions.
14 changes: 14 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"presets": [
"es2015"
],
"plugins": [
"transform-async-to-generator",
"transform-strict-mode", [
"transform-runtime", {
"polyfill": false,
"regenerator": true
}
]
]
}
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ build/Release
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules

# Created by .ignore support plugin (hsz.mobi)

# Generate files by tvseries-api.
# Generated files by popcorn-api.
tmp

# Generated documentation.
docs

# Transpiled ES5 code
build
52 changes: 52 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"disallowEmptyBlocks": true,
"disallowFunctionDeclarations": true,
"disallowIdenticalDestructuringNames": true,
"disallowMultiLineTernary": true,
"disallowMultipleLineBreaks": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowOperatorBeforeLineBreak": ["+"],
"disallowParenthesesAroundArrowParam": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceBeforeComma": true,
"disallowSpacesInCallExpression": true,
"disallowSpacesInsideTemplateStringPlaceholders": true,
"disallowTrailingComma": true,
/*"disallowUnusedParams": true,*/
"disallowUnusedVariables": true,
"disallowVar": true,
"disallowYodaConditions": ["==", "===", "!=", "!=="],
"jsDoc": {
"checkAnnotations": true,
"checkParamExistence": true,
"checkParamNames": true,
"checkRedundantParams": true,
"checkRedundantReturns": true,
"checkReturnTypes": true,
"checkTypes": true,
"disallowNewlineAfterDescription": true,
"requireHyphenBeforeDescription": true,
"requireParamDescription": true,
"requireParamTypes": true,
"requireReturnDescription": true
},
"fileExtensions": [".js"],
"requireCommaBeforeLineBreak": true,
"requireObjectKeysOnNewLine": {
"allExcept": ["sameLine"]
},
"requirePaddingNewLinesInObjects": true,
"requireSemicolons": true,
"requireSpaceAfterComma": true,
"requireSpaceAfterLineComment": true,
"requireSpaceAfterLineComment": true,
"requireSpaceBeforeBlockStatements": 1,
"requireSpaceBeforeDestructuredValues": true,
"requireSpaceBetweenArguments": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInsideImportedObjectBraces": true,
"requireSpacesInsideObjectBrackets": "all",
"requireSpread": true,
"requireTemplateStrings": true,
"validateQuoteMarks": "\""
}
25 changes: 25 additions & 0 deletions .jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"tags": {
"allowUnknownTags": true
},
"source": {
"include": "./",
"includePattern": ".js$",
"excludePattern": "(node_modules/|build|docs|views|gulpfile*)"
},
"plugins": [
"plugins/markdown",
"node_modules/jsdoc-babel"
],
"opts": {
"template": "node_modules/docdash",
"encoding": "utf8",
"destination": "docs/",
"recurse": true,
"verbose": true
},
"templates": {
"cleverLinks": true,
"monospaceLinks": true
}
}
38 changes: 38 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
### 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

# 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

# Generated files by popcorn-api.
tmp

# Generated documentation.
docs

# untranspiled ES6 code
src
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
2.0.0 - Whatcha Babbling about? - 18 May 2016
===============================================

New features:
- Get a random movie at `/random/movie`
- Added YTS as a movie provider.
- Movies now support multiple languages.
- Moved the entire project to ES6 with [Babel](https://babeljs.io/).
- Added a command line interface to the API ([See CLI](README.md#cli)).
- The API can now be installed globally.
- Added support for the Gulp build system ([See Gulp](README.md#gulp)).
- Documentation can be generated with the `npm run docs`.
- Added option to start with the forever module (`npm run forever`).

Bug fixes:
- Fixed bug where the cron job was not working.
- Fixed bug where better movie and show torrents did not update.

Notes:
- Changed the projection of movies so it can be used with a [popcorntime provider](https://github.com/ChrisAlderson/butter-provider-movies).
- (HTTP) Logging is done with the Winston library.
- Added configuration for JSCS linter.
- Changed license from GPLv3 to MIT.
- Moved the library for eztv scraping to its own module over [here](https://github.com/ChrisAlderson/eztv-api-pt).
- Moved the library for kat scraping to its own module over [here](https://github.com/ChrisAlderson/kat-api-pt).

1.1.0 - Wanna catch a movie? - 20 March 2016
============================================

Expand Down
697 changes: 21 additions & 676 deletions LICENSE.txt

Large diffs are not rendered by default.

Loading

0 comments on commit c773837

Please sign in to comment.