Skip to content

Commit

Permalink
npm: Update to 1.4.28
Browse files Browse the repository at this point in the history
  • Loading branch information
tjfontaine committed Sep 16, 2014
1 parent 1fddc1f commit daca803
Show file tree
Hide file tree
Showing 502 changed files with 19,055 additions and 8,030 deletions.
7 changes: 0 additions & 7 deletions deps/npm/.tern-project

This file was deleted.

737 changes: 737 additions & 0 deletions deps/npm/CHANGELOG.md

Large diffs are not rendered by default.

44 changes: 9 additions & 35 deletions deps/npm/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# vim: set softtabstop=2 shiftwidth=2:
SHELL = bash

PUBLISHTAG = $(shell node scripts/publish-tag.js)
BRANCH = $(shell git rev-parse --abbrev-ref HEAD)

markdowns = $(shell find doc -name '*.md' | grep -v 'index') README.md

html_docdeps = html/dochead.html \
Expand Down Expand Up @@ -170,49 +173,20 @@ man: $(cli_docs) $(api_docs)
test: doc
node cli.js test

tag:
npm tag npm@$(PUBLISHTAG) latest

publish: link doc
@git push origin :v$(shell npm -v) 2>&1 || true
@npm unpublish npm@$(shell npm -v) 2>&1 || true
git clean -fd &&\
git push origin &&\
git push origin $(BRANCH) &&\
git push origin --tags &&\
npm publish &&\
make doc-publish

docpublish: doc-publish
doc-publish: doc
# legacy urls
for f in $$(find html/doc/{cli,files,misc}/ -name '*.html'); do \
j=$$(basename $$f | sed 's|^npm-||g'); \
if ! [ -f html/doc/$$j ] && [ $$j != README.html ] && [ $$j != index.html ]; then \
perl -pi -e 's/ href="\.\.\// href="/g' <$$f >html/doc/$$j; \
fi; \
done
mkdir -p html/api
for f in $$(find html/doc/api/ -name '*.html'); do \
j=$$(basename $$f | sed 's|^npm-||g'); \
perl -pi -e 's/ href="\.\.\// href="/g' <$$f >html/api/$$j; \
done
rsync -vazu --stats --no-implied-dirs --delete \
html/doc/* \
../npm-www/doc
rsync -vazu --stats --no-implied-dirs --delete \
html/static/style.css \
../npm-www/static/
#cleanup
rm -rf html/api
for f in html/doc/*.html; do \
case $$f in \
html/doc/README.html) continue ;; \
html/doc/index.html) continue ;; \
*) rm $$f ;; \
esac; \
done
npm publish --tag=$(PUBLISHTAG)

release:
@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-publish doc-clean docclean docpublish release
.PHONY: all latest install dev link doc clean uninstall test man doc-clean docclean release
10 changes: 5 additions & 5 deletions deps/npm/doc/cli/npm-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ npm-version(1) -- Bump a package version

## SYNOPSIS

npm version [<newversion> | major | minor | patch]
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease]

## DESCRIPTION

Run this in a package directory to bump the version and write the new
data back to the package.json file.

The `newversion` argument should be a valid semver string, *or* a valid
second argument to semver.inc (one of "patch", "minor", or
"major"). In the second case, the existing version will be incremented
by 1 in the specified field.
The `newversion` argument should be a valid semver string, *or* a
valid second argument to semver.inc (one of "patch", "minor", "major",
"prepatch", "preminor", "premajor", "prerelease"). In the second case,
the existing version will be incremented by 1 in the specified field.

If run in a git repo, it will also create a version commit and tag, and
fail if the repo is not clean.
Expand Down
Loading

0 comments on commit daca803

Please sign in to comment.