Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <rebecca@npmjs.com>2016-02-23 02:00:40 +0300
committerRebecca Turner <rebecca@npmjs.com>2016-02-23 03:57:32 +0300
commitd00801d10d56b1bbc270df6a6d12263500b1a684 (patch)
treee07f1e676e97f929c5c79a181043884af9d6046a
parent1718901e1a798c2a500823065c84af7fe2b1b142 (diff)
build: Make sure ls on a clean repo works w/o error
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ba84072b1..bea8138be 100644
--- a/Makefile
+++ b/Makefile
@@ -160,18 +160,23 @@ test: doc
tag:
npm tag npm@$(PUBLISHTAG) latest
-publish: link doc
+ls-ok:
+ node . ls >/dev/null
+
+gitclean:
+ git clean -fd
+
+publish: gitclean ls-ok link doc
@git push origin :v$(shell npm -v) 2>&1 || true
- git clean -fd &&\
git push origin $(BRANCH) &&\
git push origin --tags &&\
npm publish --tag=$(PUBLISHTAG)
-release: markedclean marked-manclean doc-clean doc
+release: gitclean ls-ok markedclean marked-manclean doc-clean doc
node cli.js prune --production
@bash scripts/release.sh
sandwich:
@[ $$(whoami) = "root" ] && (echo "ok"; echo "ham" > sandwich) || (echo "make it yourself" && exit 13)
-.PHONY: all latest install dev link doc clean uninstall test man doc-clean docclean release
+.PHONY: all latest install dev link doc clean uninstall test man doc-clean docclean release ls-ok realclean