1.0.1 • Published 2 years ago

@surveyplanet/publish v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Publish CLI

This CLI is meant to normalize commits messages. It uses the Angular commit message format.

Install

npm install --global @surveyplanet/publish

Example

Change directory into any Git repository and run the following:

publish

Or, if you don't want to be prompted use the options flags

publish --branch main --version patch

If you are not in the git project directory you can provide a path

publish path/to/git/project

Options

-m, --message		Commit message. If not provided you will be prompted for one.
-b, --branch		Repository branch. If not provided you will be prompted for one.
-v, --version		Semantic version level. If not provided you will be prompted for one.
			(<semver> | patch | minor | major | prerelease | prepatch | preminor | premajor )
-v, --verbose		Verbose output.
-h, --help		Show help.

Example

$ publish

? The current branch is beta. Is this the branch you'd like to push to? Yes

? Select a semver string (latest: 1.0.0): (Use arrow keys)
  fix - A bug fix (PATCH).
❯ feat - A new feature (MINOR).
  perf - A code change that improves performance and has breaking changes (MAJOR).
  ──────────────
  build - Changes that affect the build system or external dependencies.
  ci - Changes to our CI configuration files and scripts.
  docs - Documentation only changes.
  refactor - A code change that neither fixes a bug nor adds a feature.
  test - Adding missing tests or correcting existing tests.
(Move up and down to reveal more choices)

? Enter a commit message header (required):
	- A succinct description of the change
	- Use imperative, present tense: "change" not "changed" or "changes"
	- No punctuation
create contact page

? Enter a commit message body (optional)
	- Includes motivation for the change and contrasts with previous behavior.
	- Just as in <subject> use imperative, present tense: "change" not "changed" nor "changes".
Create a contact page that includes a contact form and contact information. Include Google Maps API with office location.

? Enter an issue number this commit resolves (optional)
	- One issue at a time.
	- Press "enter" or "return" to skip.
234

feat: Create contact page

Create a contact page that includes a contact from and contact information. Include Google Maps API with office location.

Closes #234

? Is the commit message correct? Yes

✔︎ Success
1.0.1

2 years ago

2.0.0-beta.2

2 years ago

2.0.0-beta.1

2 years ago

2.0.0-beta.4

2 years ago

2.0.0-beta.3

2 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.1-1

3 years ago