Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use devDependencies & package.json's scripts

  • Loading branch information...
commit 6a17d04fd7b8b400fee7dfc5652895687077d801 1 parent e85becb
@JeanSebTr JeanSebTr authored
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  .gitignore
@@ -1,2 +1,3 @@
.DS_Store
node_modules
+lib/*.js
View
4 Makefile
@@ -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
3  index.js
@@ -1,2 +1,3 @@
-require('coffee-script')
+try { require('coffee-script'); }
+catch (e) {}
exports.Router = require('./lib/router').Router;
View
9 package.json
@@ -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": "*"
}
Please sign in to comment.
Something went wrong with that request. Please try again.