Skip to content

Commit 416cc7b

Browse files
committed
Update support files.
1 parent e593019 commit 416cc7b

10 files changed

+46
-48
lines changed

.gitignore

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
build
2-
reports
3-
4-
# Mac OS X
5-
.DS_Store
1+
build/
2+
reports/
63

74
# Node.js
8-
node_modules
5+
node_modules/
96
npm-debug.log
7+
8+
# Mac OS X
9+
.DS_Store

.jshintrc

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"node": true,
3-
43
"bitwise": true,
54
"camelcase": true,
65
"curly": true,
@@ -15,6 +14,5 @@
1514
"undef": true,
1615
"unused": true,
1716
"trailing": true,
18-
1917
"laxcomma": true
2018
}

.npmignore

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
README.md
21
Makefile
2+
README.md
33
build/
44
docs/
55
examples/
66
reports/
77
support/
88
test/
99

10-
# Mac OS X
11-
.DS_Store
12-
1310
# Node.js
1411
.npmignore
1512
node_modules/
1613
npm-debug.log
1714

15+
# Mac OS X
16+
.DS_Store
17+
1818
# Git
1919
.git*
20+
21+
# Utilities
22+
.jshintrc
23+
.travis.yml

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: "node_js"
22
node_js:
3-
- "0.4"
4-
# - "0.6"
5-
- "0.8"
63
- "0.10"
4+
- "0.8"
5+
# - "0.6"
6+
- "0.4"
77

88
before_install:
99
- "npm install istanbul -g"
@@ -12,4 +12,4 @@ before_install:
1212
script: "make ci-travis"
1313

1414
after_success:
15-
- "make submit-coverage-to-coveralls"
15+
- "make submit-cov-to-coveralls"

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
(The MIT License)
1+
The MIT License (MIT)
22

3-
Copyright (c) 2012-2013 Jared Hanson
3+
Copyright (c) 2012-2014 Jared Hanson
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

Makefile

+12-15
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,38 @@
1-
SOURCES = lib/*.js lib/**/*.js
1+
SOURCES ?= lib/*.js lib/**/*.js
22
TESTS ?= test/*.test.js test/**/*.test.js
33

4-
lint: lint-jshint
54
test: test-mocha
65
test-cov: test-istanbul-mocha
76
view-cov: view-istanbul-report
7+
lint: lint-jshint
8+
lint-tests: lint-tests-jshint
89

910

1011
# ==============================================================================
1112
# Node.js
1213
# ==============================================================================
1314
include support/mk/node.mk
1415
include support/mk/mocha.mk
15-
include support/mk/vows.mk
16+
include support/mk/istanbul.mk
1617

1718
# ==============================================================================
18-
# Browserify
19+
# Analysis
1920
# ==============================================================================
20-
BROWSERIFY_MAIN = ./lib/index.js
21-
22-
include support/mk/browserify.mk
23-
include support/mk/testling.mk
21+
include support/mk/notes.mk
22+
include support/mk/jshint.mk
2423

2524
# ==============================================================================
26-
# Code Quality
25+
# Reports
2726
# ==============================================================================
28-
include support/mk/notes.mk
29-
include support/mk/jshint.mk
30-
include support/mk/istanbul.mk
27+
include support/mk/coveralls.mk
3128

3229
# ==============================================================================
3330
# Continuous Integration
3431
# ==============================================================================
35-
include support/mk/coveralls.mk
32+
submit-cov-to-coveralls: submit-istanbul-lcov-to-coveralls
3633

34+
# Travis CI
3735
ci-travis: test test-cov
38-
submit-coverage-to-coveralls: submit-istanbul-lcov-to-coveralls
3936

4037
# ==============================================================================
4138
# Clean
@@ -47,4 +44,4 @@ clean:
4744
clobber: clean clobber-node
4845

4946

50-
.PHONY: lint test test-cov view-cov ci-travis clean clobber
47+
.PHONY: test test-cov view-cov lint lint-tests submit-cov-to-coveralls ci-travis clean clobber

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
"passport",
1414
"middleware"
1515
],
16+
"author": {
17+
"name": "Jared Hanson",
18+
"email": "jaredhanson@gmail.com",
19+
"url": "http://www.jaredhanson.net/"
20+
},
1621
"repository": {
1722
"type": "git",
1823
"url": "git://github.com/jaredhanson/oauth2orize.git"
1924
},
2025
"bugs": {
2126
"url": "http://github.com/jaredhanson/oauth2orize/issues"
2227
},
23-
"author": {
24-
"name": "Jared Hanson",
25-
"email": "jaredhanson@gmail.com",
26-
"url": "http://www.jaredhanson.net/"
27-
},
2828
"licenses": [
2929
{
3030
"type": "MIT",

support/mk/istanbul.mk

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ISTANBUL ?= istanbul
22
ISTANBUL_OUT ?= ./reports/coverage
33
ISTANBUL_REPORT ?= lcov
4-
ISTANBUL_HTML_REPORT_PATH ?= $(ISTANBUL_OUT)/lcov-report/index.html
54
ISTANBUL_LCOV_INFO_PATH ?= $(ISTANBUL_OUT)/lcov.info
5+
ISTANBUL_HTML_REPORT_PATH ?= $(ISTANBUL_OUT)/lcov-report/index.html
66

77

88
test-istanbul-mocha: node_modules
@@ -11,13 +11,8 @@ test-istanbul-mocha: node_modules
1111
--dir $(ISTANBUL_OUT) --report $(ISTANBUL_REPORT) \
1212
$(_MOCHA) -- \
1313
--reporter $(MOCHA_REPORTER) \
14-
--require $(MOCHA_REQUIRE) $(TESTS)
15-
16-
test-istanbul-vows: node_modules
17-
NODE_PATH=$(NODE_PATH_TEST) \
18-
$(ISTANBUL) cover \
19-
--dir $(ISTANBUL_OUT) --report $(ISTANBUL_REPORT) \
20-
$(VOWS) $(VOWS_REPORTER) $(TESTS)
14+
--require $(MOCHA_REQUIRE) \
15+
$(TESTS)
2116

2217
view-istanbul-report:
2318
open $(ISTANBUL_HTML_REPORT_PATH)

support/mk/jshint.mk

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ JSHINT ?= jshint
33
lint-jshint:
44
$(JSHINT) $(SOURCES)
55

6+
lint-tests-jshint:
7+
$(JSHINT) $(TESTS)
68

7-
.PHONY: lint-jshint
9+
10+
.PHONY: lint-jshint lint-tests-jshint

support/mk/mocha.mk

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ test-mocha: node_modules
77
NODE_PATH=$(NODE_PATH_TEST) \
88
$(MOCHA) \
99
--reporter $(MOCHA_REPORTER) \
10-
--require $(MOCHA_REQUIRE) $(TESTS)
10+
--require $(MOCHA_REQUIRE) \
11+
$(TESTS)
1112

1213

1314
.PHONY: test-mocha

0 commit comments

Comments
 (0)