Permalink
Browse files

Add build script

  • Loading branch information...
1 parent 647ad93 commit 2cb0917a27ea2e7eaac50534395673afaf8e4c42 @sstephenson sstephenson committed Mar 9, 2011
Showing with 15 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +12 −0 build.sh
View
@@ -1,3 +1,5 @@
/test/fixtures/*/tmp/restart.txt
/test/fixtures/tmp/
-node_modules
+/node_modules
+/dist
+
View
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+VERSION=$(node -e 'JSON.parse(require("fs").readFileSync("package.json","utf8")).version')
+ROOT=dist/$VERSION
+
+npm bundle
+rm -fr $ROOT
+mkdir -p $ROOT/bin
+cp -R lib node_modules $ROOT
+cp `which node` $ROOT/bin
+cp bin/pow* $ROOT/bin
+cp package.json $ROOT

0 comments on commit 2cb0917

Please sign in to comment.