Browse files

Update package.json.

* Add JSHint support (npm run check)
* Move test scripts there (npm run test)
* Update dependencies
  • Loading branch information...
1 parent 5f09344 commit 5b49d38a2d7ec2697823440de2a6c9a805d40cf0 @XhmikosR XhmikosR committed Mar 21, 2013
Showing with 26 additions and 14 deletions.
  1. +2 −1 .gitignore
  2. +2 −0 .jshintignore
  3. +17 −0 .jshintrc
  4. +0 −10 Makefile
  5. +5 −2 package.json
  6. +0 −1 test.bat
View
3 .gitignore
@@ -1,2 +1,3 @@
-node_modules
.DS_Store
+node_modules
+npm-debug.log
View
2 .jshintignore
@@ -0,0 +1,2 @@
+.git
+node_modules
View
17 .jshintrc
@@ -0,0 +1,17 @@
+{
+ "node" : true,
+ "es5" : true,
+ "browser" : false,
+
+ "camelcase": true,
+ "curly": false,
+ "eqeqeq": false,
+ "latedef": true,
+ "multistr": true,
+ "noarg": true,
+ "plusplus": false,
+ "regexp": false,
+ "strict": false,
+ "trailing": true,
+ "unused": true
+}
View
10 Makefile
@@ -1,10 +0,0 @@
-TEST_DIR = test
-VOWS = ./node_modules/vows/bin/vows
-
-all: test
-
-test:
- @@echo "Running all tests via vows"
- @@${VOWS} ${TEST_DIR}/*-test.js
-
-.PHONY: all test
View
7 package.json
@@ -14,13 +14,16 @@
"enhancecss": "./bin/enhancecss"
},
"scripts": {
- "test": "node_modules/.bin/vows test/*-test.js"
+ "check": "jshint .",
+ "prepublish": "jshint .",
+ "test": "vows"
},
"dependencies": {
"optimist": "0.3.x"
},
"devDependencies": {
- "vows": "0.6.x"
+ "vows": "0.7.x",
+ "jshint": "1.1.x"
},
"engines": {
"node": ">=0.6.0"
View
1 test.bat
@@ -1 +0,0 @@
-node .\node_modules\vows\bin\vows test\binary-test.js test\embed-test.js

0 comments on commit 5b49d38

Please sign in to comment.