Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/forbeslindesay/component-release
Node.js based git-release for use with component
https://github.com/forbeslindesay/component-release
Last synced: 16 days ago
JSON representation
Node.js based git-release for use with component
- Host: GitHub
- URL: https://github.com/forbeslindesay/component-release
- Owner: ForbesLindesay
- Created: 2012-11-19T04:00:23.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-02-24T18:29:13.000Z (over 7 years ago)
- Last Synced: 2024-04-13T23:00:45.708Z (7 months ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# component-release
Node.js based git-release for use with component and npm
## Installation
$ npm install component-release -g
## Usage
$ component-release 0.0.0
## Features
- Forces versions to be of the form `/^(\d+)\.(\d+)\.(\d+)$/` and won't let you publish with a version number that isn't of that form.
- Won't let you publish with a version that doesn't match the version in `package.json` and `component.json` if those files are present.
- Will automatically update the other of those files if you have updated one of them.
- Will update both for you if you say yes when it asks you.
- Will never 'update' to an older version
- Won't let you publish an older version if a newer one exists (and is tagged)
- won't let you publish if `component.json` or `package.json` exists but is not valid json.Provided you meet the requirements it will:
- if a package.json is present and not marked private: `npm publish`
- `git commit -a -m "Release 0.0.0"`
- `git tag 0.0.0 -a -m "0.0.0"`
- `git push --follow-tags`