commit f261cc04a21f33d70bfb02bb18976a334e2618e9 Author: Jeremy Thomerson Date: Tue Jun 20 20:43:49 2017 -0400 Initial commit diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..c89e331 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,5 @@ +{ + + "extends": "eslint-config-silvermine/node" + +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..032441d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +node_modules +coverage diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..55890a2 --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +.eslintrc.json +.travis.yml +Gruntfile.js +tests/** diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9863ddc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: node_js +# 4.3.2 is what AWS Lambda currently uses +node_js: + - "5" + - "4.3.2" + +before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi + +script: + - grunt standards + - npm test + +# For code coverage: +after_success: + cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..3f766dc --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2017 Jeremy Thomerson + * Licensed under the MIT license. + */ + +'use strict'; + +module.exports = function(grunt) { + + var config; + + config = { + js: { + all: [ 'Gruntfile.js', 'src/**/*.js', 'tests/**/*.js' ], + }, + }; + + grunt.initConfig({ + + pkg: grunt.file.readJSON('package.json'), + + eslint: { + target: config.js.all, + }, + + }); + + grunt.loadNpmTasks('grunt-eslint'); + + grunt.registerTask('standards', [ 'eslint' ]); + grunt.registerTask('default', [ 'standards' ]); + +}; diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..873928e --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) +Copyright (c) 2017 Jeremy Thomerson + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5d3e7b0 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# Silvermine VideoJS Quality/Resolution Selector + +[![Build Status](https://travis-ci.org/silvermine/videojs-quality-selector.png?branch=master)](https://travis-ci.org/silvermine/videojs-quality-selector) +[![Coverage Status](https://coveralls.io/repos/github/silvermine/videojs-quality-selector/badge.svg?branch=master)](https://coveralls.io/github/silvermine/videojs-quality-selector?branch=master) +[![Dependency Status](https://david-dm.org/silvermine/videojs-quality-selector.png)](https://david-dm.org/silvermine/videojs-quality-selector) +[![Dev Dependency Status](https://david-dm.org/silvermine/videojs-quality-selector/dev-status.png)](https://david-dm.org/silvermine/videojs-quality-selector#info=devDependencies&view=table) + + +## What is it? + +A plugin for [videojs](http://videojs.com/) versions 6+ that adds a button to the control +bar which will allow the user to choose from available video qualities or resolutions. + + +## How do I use it? + +Here's an example of how you can use this library: + +```js +``` + + +## How do I contribute? + +We genuinely appreciate external contributions. See [our extensive +documentation](https://github.com/silvermine/silvermine-info#contributing) on how to +contribute. + + +## License + +This software is released under the MIT license. See [the license file](LICENSE) for more +details. diff --git a/package.json b/package.json new file mode 100644 index 0000000..e3285e3 --- /dev/null +++ b/package.json @@ -0,0 +1,41 @@ +{ + "name": "silvermine-videojs-quality-selector", + "version": "0.9.0", + "description": "video.js plugin for selecting a video quality or resolution", + "main": "src/index.js", + "scripts": { + "test": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec 'tests/**/*.test.js'" + }, + "author": "Jeremy Thomerson", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/silvermine/videojs-quality-selector.git" + }, + "keywords": [ + "video.js", + "videojs", + "plugin", + "resolution", + "quality" + ], + "bugs": { + "url": "https://github.com/silvermine/videojs-quality-selector/issues" + }, + "homepage": "https://github.com/silvermine/videojs-quality-selector#readme", + "devDependencies": { + "class.extend": "0.9.2", + "coveralls": "2.13.1", + "eslint": "4.0.0", + "eslint-config-silvermine": "1.3.0", + "expect.js": "0.3.1", + "grunt": "1.0.1", + "grunt-eslint": "20.0.0", + "istanbul": "0.4.5", + "mocha": "3.4.2", + "mocha-lcov-reporter": "1.3.0", + "rewire": "2.5.2", + "sinon": "2.3.5", + "underscore": "1.8.3" + } +} diff --git a/src/.eslintrc.json b/src/.eslintrc.json new file mode 100644 index 0000000..fe56197 --- /dev/null +++ b/src/.eslintrc.json @@ -0,0 +1,5 @@ +{ + + "extends": "eslint-config-silvermine/browser" + +} diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..8b46fbb --- /dev/null +++ b/src/index.js @@ -0,0 +1,3 @@ +'use strict'; + +module.exports = {}; diff --git a/tests/.eslintrc.json b/tests/.eslintrc.json new file mode 100644 index 0000000..b506575 --- /dev/null +++ b/tests/.eslintrc.json @@ -0,0 +1,5 @@ +{ + + "extends": "eslint-config-silvermine/node-tests" + +} diff --git a/tests/Placeholder.test.js b/tests/Placeholder.test.js new file mode 100644 index 0000000..216c7f3 --- /dev/null +++ b/tests/Placeholder.test.js @@ -0,0 +1,11 @@ +'use strict'; + +var expect = require('expect.js'); + +describe('Everything', function() { + + it('needs to be tested', function() { + expect(true).to.be(true); + }); + +});