Permalink
Browse files

Update support files.

  • Loading branch information...
jaredhanson committed Aug 1, 2013
1 parent 80f8533 commit d1408bf078b6156767e69ef172d96b62b1d0e12d
Showing with 109 additions and 4 deletions.
  1. +3 −0 .gitignore
  2. +20 −0 .jshintrc
  3. +4 −1 .npmignore
  4. +3 −3 package.json
  5. +10 −0 support/mk/browserify.mk
  6. +7 −0 support/mk/coveralls.mk
  7. +20 −0 support/mk/istanbul.mk
  8. +7 −0 support/mk/jshint.mk
  9. +13 −0 support/mk/mocha.mk
  10. +8 −0 support/mk/node.mk
  11. +7 −0 support/mk/notes.mk
  12. +7 −0 support/mk/testling.mk
View
@@ -1,3 +1,6 @@
+build
+reports
+
# Mac OS X
.DS_Store
View
@@ -0,0 +1,20 @@
+{
+ "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
+}
View
@@ -1,7 +1,10 @@
README.md
Makefile
-doc/
+build/
+docs/
examples/
+reports/
+support/
test/
# Mac OS X
View
@@ -30,10 +30,10 @@
"mocha": "1.x.x",
"chai": "1.x.x"
},
- "scripts": {
- "test": "node_modules/.bin/mocha --reporter spec --require test/bootstrap/node test/*.test.js"
- },
"engines": {
"node": ">= 0.4.0"
+ },
+ "scripts": {
+ "test": "node_modules/.bin/mocha --reporter spec --require test/bootstrap/node test/*.test.js"
}
}
View
@@ -0,0 +1,10 @@
+BROWSERIFY ?= browserify
+BROWSERIFY_MAIN ?= index.js
+BROWSERIFY_OUT ?= build/bundle.js
+
+build-browserify: node_modules
+ mkdir -p build
+ $(BROWSERIFY) $(BROWSERIFY_MAIN) -o $(BROWSERIFY_OUT)
+
+
+.PHONY: build-browserify
View
@@ -0,0 +1,7 @@
+COVERALLS ?= coveralls
+
+submit-istanbul-lcov-to-coveralls:
+ cat $(ISTANBUL_LCOV_INFO_PATH) | $(COVERALLS)
+
+
+.PHONY: submit-istanbul-lcov-to-coveralls
View
@@ -0,0 +1,20 @@
+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
+
+
+test-istanbul-mocha: node_modules
+ NODE_PATH=$(NODE_PATH_TEST) \
+ $(ISTANBUL) cover \
+ --dir $(ISTANBUL_OUT) --report $(ISTANBUL_REPORT) \
+ $(_MOCHA) -- \
+ --reporter $(MOCHA_REPORTER) \
+ --require $(MOCHA_REQUIRE) $(TESTS)
+
+view-istanbul-report:
+ open $(ISTANBUL_HTML_REPORT_PATH)
+
+
+.PHONY: test-istanbul-mocha view-istanbul-report
View
@@ -0,0 +1,7 @@
+JSHINT ?= jshint
+
+lint-jshint:
+ $(JSHINT) $(SOURCES)
+
+
+.PHONY: lint-jshint
View
@@ -0,0 +1,13 @@
+MOCHA ?= ./node_modules/.bin/mocha
+_MOCHA ?= ./node_modules/.bin/_mocha
+MOCHA_REPORTER ?= spec
+MOCHA_REQUIRE ?= ./test/bootstrap/node
+
+test-mocha: node_modules
+ NODE_PATH=$(NODE_PATH_TEST) \
+ $(MOCHA) \
+ --reporter $(MOCHA_REPORTER) \
+ --require $(MOCHA_REQUIRE) $(TESTS)
+
+
+.PHONY: test-mocha
View
@@ -0,0 +1,8 @@
+node_modules:
+ npm install
+
+clobber-node:
+ rm -rf node_modules
+
+
+.PHONY: clobber-node
View
@@ -0,0 +1,7 @@
+NOTES ?= 'TODO|FIXME'
+
+notes:
+ grep -Ern $(NOTES) $(SOURCES) $(TESTS)
+
+
+.PHONY: notes
View
@@ -0,0 +1,7 @@
+TESTLING ?= testling
+
+test-testling: node_modules
+ $(TESTLING)
+
+
+.PHONY: test-testling

0 comments on commit d1408bf

Please sign in to comment.