xyz 2.1.0

Publish npm packages with fewer screw-ups

Homepage: https://github.com/davidchambers/xyz

Platform: npm

Language: Shell

License: WTFPL

Keywords: cli, publish, release, tool

View on registry: https://www.npmjs.com/package/xyz

Direct download link: https://registry.npmjs.org/xyz/-/xyz-2.1.0.tgz

Install: npm install [email protected]


xyz

xyz simplifies the publishing of npm packages by replacing several manual steps with a single command:

$ xyz
Current version is 0.6.0. Press [enter] to publish [email protected]

Several things will happen if one elects to continue:

node -e 'var o = require("./package.json"); o.version = "0.6.1"; require("fs").writeFileSync("./package.json", JSON.stringify(o, null, 2) + "\n");'
git add 'package.json'
git commit --message 'Version 0.6.1'
git tag --annotate 'v0.6.1' --message 'Version 0.6.1'
git push --atomic 'origin' 'refs/heads/master' 'refs/tags/v0.6.1'
npm publish # Only for non-private packages.

xyz accepts several optional arguments, described in the help text:

$ xyz --help

Integration

Installing xyz globally is okay, but it's good practice to add it as a dev dependency.

npm

  "scripts": {
    "release": "xyz --repo [email protected]:owner/repo.git --increment",
  }
$ npm run release minor

Make

XYZ = node_modules/.bin/xyz --repo [email protected]:owner/repo.git

.PHONY: release-major release-minor release-patch
release-major release-minor release-patch:
    @$(XYZ) --increment $(@:release-%=%)
$ make release-minor
Sustain

Releases

2.1.0 January 09, 2017
2.0.1 December 01, 2016
2.0.0 November 28, 2016
1.1.0 October 27, 2016
1.0.1 September 18, 2016
1.0.0 August 04, 2016
0.5.0 November 07, 2014
0.4.1 October 22, 2014
0.4.0 June 30, 2014
0.3.0 April 20, 2014
See all 13 releases

Project Statistics

SourceRank 18
Dependencies 1
Dependent projects 202
Dependent repositories 553
Total releases 13
Latest release
First release
Stars 60
Forks 11
Watchers 4
Contributors 6
Repo Size: 21.5 KB

Top Contributors See all

David Chambers Aldwin Vlasblom jugglinmike Kevin Kirsche Linus Unnebäck Michael Hurley

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2017-01-09 04:46:57 UTC

Login to resync this project