0.0.1 • Published 2 years ago

@kwooshung/standard-version-helper v0.0.1

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

Standard Version Helper

It is based on standard versionThe help tool can provide simple menu selection in the console.

GitHub License GitHub Release Date - Published_At GitHub last commit GitHub code size in bytes GitHub top language GitHub pull requests GitHub issues Github Stars NPM Version Npm.js Downloads/Week Github CI/CD codecov Maintainability Gitee Repo

Discontinued, Recommend Using Cvlar

This tool is no longer updated. It is recommended to use the more powerful Cvlar instead.

Why?

  • I am tired of command line version upgrades and have to remember commands, parameters, and various rules every time. These are all things I don't want to remember. I just want to focus on business development, so I developed this tool.
  • Since there is a 'standard version', why not have another help tool?

Features

  • No need to remember commands
  • No need to remember parameters
  • No need to remember Semantic version number
  • No need to remember version number rules
  • No need to remember version number cancellation rules
  • No need to remember version number enforcement rules
  • No need to remember Version number minor rules
  • No need to remember version number patch rules
  • You are not afraid of making mistakes in version number, there are verification prompts
  • Increase work efficiency
  • Newbie friendly

Menu Preivew

Assume that your current project version is: v2.0.0;

  • The following menu demonstrates all processes, that is, what each branch process should display;
  • In actual use, it will not be expanded as shown below, but whatever you select will be displayed, just like you use other command line menus.
- main menu
  ├── Upgraded version
  │ ├── Which version do you plan to upgrade?
  │ ├── Major version: v2.0.0 > 3.0.0
  │ │ └── Push to the warehouse?
  │ │ │ ├── Y (default): npx standard-version --release-as major && --follow-tags origin master
  │ │ │ └── N:npx standard-version --release-as major
  │ ├── Minor version: v2.0.0 > 2.1.0
  │ │ └── Push to the warehouse?
  │ │ │ ├── Y (default): npx standard-version --release-as minor && git push --follow-tags origin master
  │ │ │ └── N:npx standard-version --release-as minor
  │ ├── Patch version: v2.0.0 > 2.0.1
  │ │ └── Push to the warehouse?
  │ │ │ ├── Y (default): npx standard-version --release-as patch && git push --follow-tags origin master
  │ │ │ └── N:npx standard-version --release-as patch
  │ └── Return
  ├──Specified version
  │ ├── Please enter the version number: 4.0.0
  │ │ └── Your current version number is: v2.0.0, confirm to enter the specified version number: v4.0.0 Yes
  │ │ └── Push to the warehouse?
  │ │ │ ├── Y (default): npx standard-version --release-as 4.0.0 && git push --follow-tags origin master
  │ │ │ └── N:npx standard-version --release-as 4.0.0
  ├── Cancel version
  │ ├── Which version do you want to undo?
  │ ├── Current version
  │ │ ├── Keep changes to the file and only undo the version number?
  │ │ │ ├── Yes
  │ │ │ │ └── Do you want to update the version number in the package.json file: v2.0.0 to the revoked version number v1.9.9?
  │ │ │ │ ├── Yes
  │ │ │ │ │ └── The current version is updated to: 1.9.9
  │ │ │ │ └── No
  │ │ │ └── No
  │ ├── Cancel the specified version
  │ │ ├── Enter the version number to be revoked: 1.5.0
  │ │ │ ├── Keep changes to the file and only undo the version number?
  │ │ │ │ ├── Yes
  │ │ │ │ │ └── Do you want to update the version number in the package.json file: v2.0.0 to the revoked version number v1.4.9?
  │ │ │ │ │ ├── Yes
  │ │ │ │ │ │ └── The current version is updated to: 1.4.9
  │ │ │ │ │ └── No
  │ │ │ │ └── No
  │ └── Return
  └── Exit

Install

npm

npm install standard-version @kwooshung/standard-version-helper --save-dev

yarn

yarn add standard-version @kwooshung/standard-version-helper -D

pnpm

pnpm add standard-version @kwooshung/standard-version-helper -D

recommend

Add the scripts script in package.json as follows:

{
  "scripts": {
    "release": "standard-version-helper"
  }
}

Two parameters are supported: --locale and --cmd:

--locale

  • Default is Simplified Chinese
  • Change the language, such as English en_US or --locale en_US, as shown in the code below
  • For other languages, Google Translate is used. Its accuracy cannot be guaranteed. If there are any inaccuracies in the translation, please submit issue & PR
  • See the table below for the list of languages
{
  "scripts": {
    "release": "standard-version-helper --locale en_US"
  }
}

--cmd

You can add some custom commands, such as ls -l, this command

{
  "scripts": {
    "release": "standard-version-helper --cmd ls -l"
  }
}

Comprehensive usage

{
  "scripts": {
    "release": "standard-version-helper --locale en_US --cmd ls -l"
  }
}

Version number support rules are as follows:

Verified version number regular format: /^(\d+)\.(\d+)\.(\d+)(?:-([\w-]+(?:\.[\w-]+)*))?(?:\+([\w-]+(?:\.[\w-]+)*))?$/

  • 0.0.1
  • 0.1.2
  • 1.0.0-alpha
  • 1.0.0-beta
  • 1.0.0-alpha.1
  • 1.0.0-beta.2
  • 1.0.0-rc.1
  • 1.0.0+001
  • 1.0.0+20130313144700
  • 1.0.0-alpha+001
  • 1.0.0-alpha.1+001
  • 2.1.0-rc.2+build.5

Supported languages

语言代码
Arabicar_EG
Azerbaijaniaz_AZ
Bulgarianbg_BG
Bengali (Bangladesh)bn_BD
Belarusianby_BY
Catalanca_ES
Czechcs_CZ
Danishda_DK
Germande_DE
Greekel_GR
Englishen_GB
English (US)en_US
Spanishes_ES
Basqueeu_ES
Estonianet_EE
Persianfa_IR
Finnishfi_FI
French (Belgium)fr_BE
French (Canada)fr_CA
French (France)fr_FR
Irishga_IE
Galician (Spain)gl_ES
Hebrewhe_IL
Hindihi_IN
Croatianhr_HR
Hungarianhu_HU
Armenianhy_AM
Indonesianid_ID
Italianit_IT
Icelandicis_IS
Japaneseja_JP
Georgianka_GE
Khmerkm_KH
Northern Kurdishkmr_IQ
Kannadakn_IN
Kazakhkk_KZ
Korean/Koreanko_KR
Lithuanianlt_LT
Latvianlv_LV
Macedonianmk_MK
Malayalamml_IN
Mongolianmn_MN
Malay (Malaysia)ms_MY
Burmesemy_MM
Norwegiannb_NO
Nepaline_NP
Dutch (Belgium)nl_BE
Dutchnl_NL
Polishpl_PL
Portuguese (Brazil)pt_BR
Portuguesept_PT
Romanianro_RO
Russianru_RU
Sinhalasi_LK
Slovaksk_SK
Serbiansr_RS
Sloveniansl_SI
Swedishsv_SE
Tamilta_IN
Thaith_TH
Turkishtr_TR
Turkmentk_TK
Urdu (Pakistan)ur_PK
Ukrainianuk_UA
Vietnamesevi_VN
Simplified Chinesezh_CN
Traditional Chinese (Hong Kong)zh_HK
Traditional Chinese (Macau)zh_MO
Traditional Chinese (Taiwan)zh_TW

Open source projects used

Thanks to the project authors for their selfless contributions to the open source community, making our work easier! ! !

LICENSE

MIT

1.8.1

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.13

2 years ago

1.2.12

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.5

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

0.1.1

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.1

2 years ago

1.0.0

2 years ago