Permalink
Browse files

Updated dev scripts

  • Loading branch information...
1 parent 64715c8 commit 1065e088c1f930f45f68535baf0c3779159b6a93 @ixti ixti committed Jan 9, 2012
Showing with 13 additions and 12 deletions.
  1. +2 −2 .gitignore
  2. +3 −0 .npmignore
  3. +1 −1 .travis.yml
  4. +5 −2 Makefile
  5. +2 −7 package.json
View
@@ -1,3 +1,3 @@
-/doc/
/node_modules/
-/npm-debug.log
+/doc/
+*.log
View
@@ -0,0 +1,3 @@
+/node_modules/
+/doc/
+*.log
View
@@ -1,5 +1,5 @@
language: node_js
node_js:
- 0.6
-before_script: "npm install --dev"
+before_script: "make dev-deps"
script: "make test"
View
@@ -11,6 +11,8 @@ GITHUB_NAME := nodeca/babelfish
SRC_URL_FMT := https://github.com/${GITHUB_NAME}/blob/${CURR_HEAD}/{file}\#L{line}
+test-all: lint test
+
lint:
if test ! `which jshint` ; then \
echo "You need 'jshint' installed in order to run lint." >&2 ; \
@@ -19,7 +21,7 @@ lint:
fi
jshint . --show-non-errors
-test: lint
+test:
@if test ! `which vows` ; then \
echo "You need 'vows' installed in order to run tests." >&2 ; \
echo " $ make dev-deps" >&2 ; \
@@ -42,6 +44,7 @@ dev-deps:
echo " See: http://npmjs.org/" >&2 ; \
exit 128 ; \
fi
+ npm install jshint -g
npm install --dev
gh-pages:
@@ -65,5 +68,5 @@ todo:
grep 'TODO' -n -r ./lib 2>/dev/null || test true
-.PHONY: test doc dev-deps gh-pages todo
+.PHONY: lint test doc dev-deps gh-pages todo
.SILENT: lint test doc todo
View
@@ -17,12 +17,7 @@
"test" : "make test"
},
- "dependencies" : {
- "underscore" : "1.1.7"
- },
- "devDependencies" : {
- "vows" : "~ 0.6.0",
- "jshint" : "~ 0.5.5"
- },
+ "dependencies" : { "underscore": "1.1.7" },
+ "devDependencies" : { "vows": "~ 0.6.0" },
"engines" : { "node": "> 0.4.11" }
}

0 comments on commit 1065e08

Please sign in to comment.