Skip to content

Commit

Permalink
Make npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewuathe committed Feb 16, 2013
1 parent 6f5bb0d commit 85f63ab
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -0,0 +1,6 @@
# Mac OSX
.DS_Store

# Node.js
node_modules
npm-debug.log
20 changes: 20 additions & 0 deletions LICENSE
@@ -0,0 +1,20 @@
(The MIT License)

Copyright (c) 2011-2013 Kai Sasaki & Yohei Yamaguchi

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.
24 changes: 24 additions & 0 deletions Makefile
@@ -0,0 +1,24 @@
SOURCES = lib/**/*.js

# ==============================================================================
# Node Tests
# ==============================================================================

VOWS = ./node_modules/.bin/vows
TESTS ?= test/*-test.js

test:
@NODE_ENV=test NODE_PATH=lib $(VOWS) $(TESTS)

# ==============================================================================
# Static Analysis
# ==============================================================================

JSHINT = jshint

hint: lint
lint:
$(JSHINT) $(SOURCES)


.PHONY: test hint lint
18 changes: 18 additions & 0 deletions lib/passport-yj/index.js
@@ -0,0 +1,18 @@
/*
* Module dependencies
*/
var Strategy = require('./strategy');

/*
* Framework version
*/
require('pgkinfo')(module, 'version');


/*
* Expose constructors
*/
exports.YJStrategy = Strategy;



29 changes: 29 additions & 0 deletions package.json
@@ -0,0 +1,29 @@
{
"name" : "passport-yj",
"version" : "1.0.0",
"description" : "Yahoo! JAPAN authentication strategy for passport",
"keywords" : ["passport", "twitter", "auth", "authentication", "identity"],
"repository" : {
"type" : "git",
"url" : "git://github.com/Lewuathe/passport-yj.git"
},
"bugs" : {
"url" : "git://github.com/Lewuathe/passport-yj.git/issues"
},
"license": [{
"type": "MIT",
"url" : "http://www.opensource.org/licenses/MIT"
}],
"main" : "./lib/passport-yj",
"dependencies":{
"pkginfo" : "0.2.x",
"passport-oauth" : "0.1.x"
},
"scripts" : {
"test" : "NODE_PATH=lib node_modules/.bin/vows test/*-test.js"
},
"engines" : {
"node" : ">= 0.4.0"
}
}

0 comments on commit 85f63ab

Please sign in to comment.