Skip to content

enMAV is an automatic version updater that runs every time you run build command in TS

License

Notifications You must be signed in to change notification settings

permaficus/enmav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enMAV

Just another auto semantic versioning for NPM publisher

๐Ÿ‘€ How it works ?

Every time you build or patch your TypeScript project, enMAV will automatically increment the patch/build value in the package.json file. It's as simple as that, and then you can publish it to NPM.

Installation

npm i enmav -g

Usage

# init will create enMAV config file
enmav --init

# Or

# you can add your favourite bundler on init
enmav --init --bundler rollup
# default bundler would be tsc if you don`t specified any
# this will add extra script command in your package.json

The output would be :

{
  "name": "your-ts-app",
  "version": "1.0.0",
  "main": "index.ts",
  "scripts": {
    "build:asv": "enmav --update-version && rollup"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "description": ""
}

Configuration

To specify the maximum build number and minor version number, refer to the example below. The configuration file is located in the root of your project folder.

enmav.config.json

{
  "updaterOptions": {
    "packageFile": "./package.json",
    "buildMax": 100,
    "minorMax": 20,
    "bundler": "tsc"
  }
}

About

enMAV is an automatic version updater that runs every time you run build command in TS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published