Skip to content

Commit

Permalink
Update support files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Jan 17, 2014
1 parent e593019 commit 416cc7b
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 48 deletions.
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
build
reports

# Mac OS X
.DS_Store
build/
reports/

# Node.js
node_modules
node_modules/
npm-debug.log

# Mac OS X
.DS_Store
2 changes: 0 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"node": true,

"bitwise": true,
"camelcase": true,
"curly": true,
Expand All @@ -15,6 +14,5 @@
"undef": true,
"unused": true,
"trailing": true,

"laxcomma": true
}
12 changes: 8 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
README.md
Makefile
README.md
build/
docs/
examples/
reports/
support/
test/

# Mac OS X
.DS_Store

# Node.js
.npmignore
node_modules/
npm-debug.log

# Mac OS X
.DS_Store

# Git
.git*

# Utilities
.jshintrc
.travis.yml
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: "node_js"
node_js:
- "0.4"
# - "0.6"
- "0.8"
- "0.10"
- "0.8"
# - "0.6"
- "0.4"

before_install:
- "npm install istanbul -g"
Expand All @@ -12,4 +12,4 @@ before_install:
script: "make ci-travis"

after_success:
- "make submit-coverage-to-coveralls"
- "make submit-cov-to-coveralls"
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(The MIT License)
The MIT License (MIT)

Copyright (c) 2012-2013 Jared Hanson
Copyright (c) 2012-2014 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
Expand Down
27 changes: 12 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,41 +1,38 @@
SOURCES = lib/*.js lib/**/*.js
SOURCES ?= lib/*.js lib/**/*.js
TESTS ?= test/*.test.js test/**/*.test.js

lint: lint-jshint
test: test-mocha
test-cov: test-istanbul-mocha
view-cov: view-istanbul-report
lint: lint-jshint
lint-tests: lint-tests-jshint


# ==============================================================================
# Node.js
# ==============================================================================
include support/mk/node.mk
include support/mk/mocha.mk
include support/mk/vows.mk
include support/mk/istanbul.mk

# ==============================================================================
# Browserify
# Analysis
# ==============================================================================
BROWSERIFY_MAIN = ./lib/index.js

include support/mk/browserify.mk
include support/mk/testling.mk
include support/mk/notes.mk
include support/mk/jshint.mk

# ==============================================================================
# Code Quality
# Reports
# ==============================================================================
include support/mk/notes.mk
include support/mk/jshint.mk
include support/mk/istanbul.mk
include support/mk/coveralls.mk

# ==============================================================================
# Continuous Integration
# ==============================================================================
include support/mk/coveralls.mk
submit-cov-to-coveralls: submit-istanbul-lcov-to-coveralls

# Travis CI
ci-travis: test test-cov
submit-coverage-to-coveralls: submit-istanbul-lcov-to-coveralls

# ==============================================================================
# Clean
Expand All @@ -47,4 +44,4 @@ clean:
clobber: clean clobber-node


.PHONY: lint test test-cov view-cov ci-travis clean clobber
.PHONY: test test-cov view-cov lint lint-tests submit-cov-to-coveralls ci-travis clean clobber
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
"passport",
"middleware"
],
"author": {
"name": "Jared Hanson",
"email": "[email protected]",
"url": "http://www.jaredhanson.net/"
},
"repository": {
"type": "git",
"url": "git://github.com/jaredhanson/oauth2orize.git"
},
"bugs": {
"url": "http://github.com/jaredhanson/oauth2orize/issues"
},
"author": {
"name": "Jared Hanson",
"email": "[email protected]",
"url": "http://www.jaredhanson.net/"
},
"licenses": [
{
"type": "MIT",
Expand Down
11 changes: 3 additions & 8 deletions support/mk/istanbul.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ISTANBUL ?= istanbul
ISTANBUL_OUT ?= ./reports/coverage
ISTANBUL_REPORT ?= lcov
ISTANBUL_HTML_REPORT_PATH ?= $(ISTANBUL_OUT)/lcov-report/index.html
ISTANBUL_LCOV_INFO_PATH ?= $(ISTANBUL_OUT)/lcov.info
ISTANBUL_HTML_REPORT_PATH ?= $(ISTANBUL_OUT)/lcov-report/index.html


test-istanbul-mocha: node_modules
Expand All @@ -11,13 +11,8 @@ test-istanbul-mocha: node_modules
--dir $(ISTANBUL_OUT) --report $(ISTANBUL_REPORT) \
$(_MOCHA) -- \
--reporter $(MOCHA_REPORTER) \
--require $(MOCHA_REQUIRE) $(TESTS)

test-istanbul-vows: node_modules
NODE_PATH=$(NODE_PATH_TEST) \
$(ISTANBUL) cover \
--dir $(ISTANBUL_OUT) --report $(ISTANBUL_REPORT) \
$(VOWS) $(VOWS_REPORTER) $(TESTS)
--require $(MOCHA_REQUIRE) \
$(TESTS)

view-istanbul-report:
open $(ISTANBUL_HTML_REPORT_PATH)
Expand Down
5 changes: 4 additions & 1 deletion support/mk/jshint.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ JSHINT ?= jshint
lint-jshint:
$(JSHINT) $(SOURCES)

lint-tests-jshint:
$(JSHINT) $(TESTS)

.PHONY: lint-jshint

.PHONY: lint-jshint lint-tests-jshint
3 changes: 2 additions & 1 deletion support/mk/mocha.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ test-mocha: node_modules
NODE_PATH=$(NODE_PATH_TEST) \
$(MOCHA) \
--reporter $(MOCHA_REPORTER) \
--require $(MOCHA_REQUIRE) $(TESTS)
--require $(MOCHA_REQUIRE) \
$(TESTS)


.PHONY: test-mocha

0 comments on commit 416cc7b

Please sign in to comment.