Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Mar 3, 2016
0 parents commit 7cfc21d
Show file tree
Hide file tree
Showing 10 changed files with 158 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
docs/
reports/

# Mac OS X
.DS_Store

# Node.js
node_modules
npm-debug.log
18 changes: 18 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"node": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"forin": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonew": true,
"quotmark": "single",
"undef": true,
"unused": true,
"trailing": true,
"laxcomma": true
}
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Makefile
docs/
examples/
reports/
test/

.jshintrc
.travis.yml
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: "node_js"
node_js:
- "5"
- "4"
- "3" # io.js
- "2" # io.js
- "1" # io.js
- "0.12"


before_install:
- "npm install [email protected] -g"
- "npm install [email protected] -g"

script:
- "make test-cov"

after_success:
- "make report-cov"

sudo: false
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2016 Jared Hanson

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.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
include node_modules/make-node/main.mk


SOURCES = lib/*.js lib/**/*.js
TESTS = test/*.test.js test/**/*.test.js

LCOVFILE = ./reports/coverage/lcov.info


view-docs:
open ./docs/index.html

view-cov:
open ./reports/coverage/lcov-report/index.html

clean: clean-docs clean-cov
-rm -r $(REPORTSDIR)

clobber: clean
-rm -r node_modules


.PHONY: clean clobber
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# passport-oauth2-client-public
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports.hello = 'world';
44 changes: 44 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "passport-oauth2-client-public",
"version": "0.0.0",
"description": "OAuth 2.0 public client authentication strategy for Passport. ",
"keywords": [
"passport",
"oauth",
"oauth2",
"auth",
"authn",
"authentication",
"authz",
"authorization",
"api"
],
"author": {
"name": "Jared Hanson",
"email": "[email protected]",
"url": "http://www.jaredhanson.net/"
},
"repository": {
"type": "git",
"url": "git://github.com/jaredhanson/passport-oauth2-client-public.git"
},
"bugs": {
"url": "http://github.com/jaredhanson/passport-oauth2-client-public/issues"
},
"license": "MIT",
"licenses": [
{
"type": "MIT",
"url": "http://opensource.org/licenses/MIT"
}
],
"main": "./lib",
"devDependencies": {
"make-node": "^0.3.0",
"mocha": "^2.0.0",
"chai": "^3.0.0"
},
"scripts": {
"test": "node_modules/.bin/mocha test/*.test.js"
}
}
13 changes: 13 additions & 0 deletions test/package.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* global describe, it */

var pkg = require('..');
var expect = require('chai').expect;


describe('passport-oauth2-client-public', function() {

it('should export hello world', function() {
expect(pkg.hello).to.equal('world');
});

});

0 comments on commit 7cfc21d

Please sign in to comment.