Coder Social home page Coder Social logo

version-x's Introduction

version-x

This small utility helps to change version in your project

How to use in your project

  1. In your terminal run command:
npm install @pixelygroup/version-x --save-dev
  1. Add into scripts section in package.json
 "scripts": {
    ...
    "version-x": "version-x",
    "version-major": "version-x -m",
    "version-minor": "version-x -i",
    "version-patch": "version-x -p",
    ...
  },
  1. This will allow you to run them as:
npm run version-x -- -x 1.1.1-exact-version

OR

npm run version-patch

Usage

Usage: -b 1.1.1 <version> / -m <major> / -i <minor> / -p <patch>.
In case of passing multiple options,
the conditions will be checked and applied
in the same order (left > right)

Options:
      --help     Show help                                             [boolean]
      --version  Show version number                                   [boolean]
  -x, --exact    requires version in format 1.1.1 or 1.1.1-beta, etc.   [string]
  -m, --major    Bumps a version on X position X.1.1                   [boolean]
  -i, --minor    Bumps a version on X position 1.X.1                   [boolean]
  -p, --patch    Bumps a version on X position 1.1.X                   [boolean]
  -t, --tag      Creates and pushes git tag                            [boolean]

Global installation

How to install globally directly from cloned Github repo

  1. Download the repository.
  2. Enter the directory and run
npm install -g .

How to install globally from NPM

In your terminal run command:

npm install -g @pixelygroup/version-x

How to uninstall globally

npm uninstall -g @pixelygroup/version-x

Do you enjoy this package? Help us keep it maintained!

version-x's People

Contributors

dependabot[bot] avatar krystynek avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.