aboutsummaryrefslogtreecommitdiff
path: root/docs/npm.md
diff options
context:
space:
mode:
authorBrendan Le Foll <brendan.le.foll@intel.com>2014-11-25 13:26:17 +0000
committerBrendan Le Foll <brendan.le.foll@intel.com>2014-11-26 11:43:30 +0000
commitd42f8f40f52ac65c01fc8bd33beb83f02d777cbb (patch)
tree2b7d5034f73aa9c45845a672915b131612907032 /docs/npm.md
parent276b0a8920a5d033d1bacda1053346e4351dcdbb (diff)
docs: update documentation mistakes
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Diffstat (limited to 'docs/npm.md')
-rw-r--r--docs/npm.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/npm.md b/docs/npm.md
index 49e75c1..bdced1d 100644
--- a/docs/npm.md
+++ b/docs/npm.md
@@ -15,13 +15,17 @@ we have generated for you.
Recreating tarball
------------------
-From a checkout of mraa you can do the following to 'generate' this tarball
+From a checkout of mraa you can do the following to 'generate' this tarball.
+It's important to not leave a .git directory as npm will then consider the
+tarball contains a full git tree. Also you need a top level dir which matches
+the npm pkg name so we create one with a symlink and add the 'h' flag to tar to
+follow simlinks.
~~~~~~~~~~~~~{.sh}
mkdir build
cd build
cmake -DBUILDSWIGNODE=ON ..
make npmpkg
-cd ../
-tar czv --exclude='build/*' --exclude='.git/*' -f /tmp/mraa.tar.gz .
+ln -s ../ mraa
+tar hczv --exclude='build*' --exclude='.gitignore' --exclude='.git' --exclude='build*/*' --exclude='.git/*' -f mraa.tar.gz mraa
~~~~~~~~~~~~~