Permalink
Browse files

Using .npmignore makes life so much easier.

  • Loading branch information...
1 parent e05c3f6 commit 503aea8eb25b5a608d7b86c70ff2398e089b7d12 @assaf committed Dec 22, 2010
Showing with 9 additions and 6 deletions.
  1. +4 −0 .npmignore
  2. +5 −6 Cakefile
View
@@ -0,0 +1,4 @@
+.git*
+.npm
+html
+node_modules
View
@@ -39,11 +39,12 @@ task "setup", "Install development dependencies", ->
## Building ##
build = (callback)->
- exec "rm -rf lib && coffee -c -o lib src", callback
+ log "Compiling CoffeeScript to JavaScript ...", green
+ exec "rm -rf lib && coffee -c -l -o lib src", callback
task "build", -> build onerror
task "clean", "Remove temporary files and such", ->
- exec "rm -rf clean html lib man1", onerror
+ exec "rm -rf html lib man1", onerror
## Testing ##
@@ -135,11 +136,9 @@ task "publish", "Publish new version (Git, NPM, site)", ->
exec "git push --tags origin master"
log "Publishing to NPM ...", green
- exec "rm -rf clean && git checkout-index -a -f --prefix clean/ ; cp -rf man1 clean/", (err)->
+ build (err)->
onerror err
- exec "coffee -c -o clean/lib clean/src", (err)->
- onerror err
- exec "npm publish clean", onerror
+ exec "npm publish ./", onerror
# Publish documentation
publishDocs onerror

0 comments on commit 503aea8

Please sign in to comment.