Permalink
Browse files

Making the package a little more npm friendly

  • Loading branch information...
1 parent ae98c9f commit 6dedcadfccaf691a21b076e20906e8158483492d @frodwith committed May 2, 2011
Showing with 16 additions and 4 deletions.
  1. +7 −3 Makefile
  2. +9 −0 package.json
  3. +0 −1 test/help.coffee
View
@@ -2,17 +2,21 @@
coffee -cs < $< > $@
JSFILES := $(shell find lib test -name '*.coffee' | sed s/\.coffee$$/.js/)
+
coffee: $(JSFILES)
all: coffee
test: coffee
- nodeunit test/*.js
+ npm test
clean:
- rm -f $(JSFILES) yanop*.tar.gz
+ rm -rf $(JSFILES) yanop*.tar.gz node_modules
+
+deps:
+ npm install
dist:
perl mkdist.pl
-.PHONY : all test coffee dist
+.PHONY : all test coffee dist deps
View
@@ -9,6 +9,15 @@
"lib" : "./lib",
"test" : "./test"
},
+ "dependencies" : {
+ "file" : ">=0.1.1"
+ },
+ "devDependencies" : {
+ "nodeunit" : ">=0.5.1"
+ },
+ "scripts" : {
+ "test": "nodeunit test/*.js"
+ },
"maintainers" : [
{ "name": "Paul Driver", "email": "frodwith@gmail.com" }
],
View
@@ -47,6 +47,5 @@ exports.basic = (t) ->
long: 'define'
description: 'Symbols to define during processing'
u = new yanop.Help spec
- console.log(u.toString())
t.equals u.toString(), expected
t.done()

0 comments on commit 6dedcad

Please sign in to comment.