Permalink
Browse files

use devDependencies & package.json's scripts

  • Loading branch information...
1 parent e85becb commit 6a17d04fd7b8b400fee7dfc5652895687077d801 @JeanSebTr JeanSebTr committed May 13, 2013
Showing with 13 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 Makefile
  3. +2 −1 index.js
  4. +8 −1 package.json
View
@@ -1,2 +1,3 @@
.DS_Store
node_modules
+lib/*.js
View
@@ -1,8 +1,8 @@
test:
- @mocha --reporter list --growl --compilers coffee:coffee-script tests/mocha.coffee
+ @./node_modules/.bin/mocha --reporter list --growl --compilers coffee:coffee-script tests/mocha.coffee
oldtest:
@node tests/barista.test.js
autotest:
- @cd lib; mocha -w --reporter list --growl --compilers coffee:coffee-script ../tests/mocha.coffee
+ @cd lib; ../node_modules/.bin/mocha -w --reporter list --growl --compilers coffee:coffee-script ../tests/mocha.coffee
View
@@ -1,2 +1,3 @@
-require('coffee-script')
+try { require('coffee-script'); }
+catch (e) {}
exports.Router = require('./lib/router').Router;
View
@@ -5,9 +5,16 @@
"author": "Kieran Huggins <kieran@kieran.ca>",
"repository": "git://github.com/kieran/barista",
"main": "./index.js",
+ "scripts": {
+ "prepublish": "./node_modules/.bin/coffee -c ./lib/",
+ "test": "./node_modules/.bin/mocha --reporter list --growl --compilers coffee:coffee-script tests/mocha.coffee",
+ "autotest": "cd lib; ../node_modules/.bin/mocha -w --reporter list --growl --compilers coffee:coffee-script ../tests/mocha.coffee"
+ },
"engines": { "node": ">= 0.4.0" },
"dependencies": {
- "inflection": "*",
+ "inflection": "*"
+ },
+ "devDependencies": {
"coffee-script": "*",
"mocha": "*"
}

0 comments on commit 6a17d04

Please sign in to comment.