From 677297a41a6cfa961db3ff5a0516b12195c55a70 Mon Sep 17 00:00:00 2001 From: Aleksey V Zapparov Date: Sun, 8 Jul 2012 16:27:26 +0200 Subject: [PATCH] Update make doc & publish --- .ndocrc | 11 +++++++++++ Makefile | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.ndocrc b/.ndocrc index 1dedf39a..d8bd8599 100644 --- a/.ndocrc +++ b/.ndocrc @@ -1,3 +1,7 @@ +# +# Common nodeca config +################################################################################ + --index "./README.md" --package "./package.json" --gh-ribbon "{package.homepage}" @@ -5,3 +9,10 @@ --render "html" --link-format "{package.homepage}/blob/master/{file}#L{line}" --broken-links "throw" + + +# +# Paths with sources +################################################################################ + +lib diff --git a/Makefile b/Makefile index 0c0a1c88..de23fdcc 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ doc: exit 128 ; \ fi rm -rf ./doc - ndoc lib --link-format "{package.homepage}/blob/${CURR_HEAD}/{file}#L{line}" + ndoc --link-format "{package.homepage}/blob/${CURR_HEAD}/{file}#L{line}" dev-deps: @@ -84,6 +84,10 @@ publish: echo "Unclean working tree. Commit or stash changes first." >&2 ; \ exit 128 ; \ fi + @if test 0 -ne `git fetch ; git status | grep '^# Your branch' | wc -l` ; then \ + echo "Local/Remote history differs. Please push/pull changes." >&2 ; \ + exit 128 ; \ + fi @if test 0 -ne `git tag -l ${NPM_VERSION} | wc -l` ; then \ echo "Tag ${NPM_VERSION} exists. Update package.json" >&2 ; \ exit 128 ; \