New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

release-easy

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

release-easy

愉快的发布npm包

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

主要做哪些事情

1、语义化版本
2、自动生成changelog
3、自动发包

怎么使用

const release = require('release-easy')

release(options)

options

类型: Object

参数类型默认值是否必须说明
semVerCallbackFunction|String--语义化版本之后要做的事情,可以传递回调函数引用,或者一个npm scripts指令
npmRegistryStringhttps://registry.npmjs.org/要发布npm的源
cwdDirStringprocess.cwd()自定义发布目录
syncVersionForJsonString---需要同步发布版本的package.json

例子

const release = require('release-easy')

release({
  semVerCallback: 'build' // npm run build
  npmRegistry: 'https://registry.npmjs.org/'
})

也可以通过shell使用

npm install -g release-easy

// 或者是
npm install --save-dev release-easy
// 通过npm script来使用
{
  "script": {
    "release": "release-easy"
  }
}
Options:
  -V, --version                 output the version number
  -c --callback <npmScript>     语义化版本之后执行的npm脚本
  -r, --registry <npmRegistry>  设置发布的npm源
  -h, --help                    output usage information

Keywords

release

FAQs

Package last updated on 10 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts