Catalog npm
Back to packageRELEASE DETAILS

0.2.2

npm

@0x-jerry/x-release

A convenient tool that helps you to create a new release.

Published30 Dec 2021
Direct dependencies14
Transitive dependenciesNot calculated

README

Current package documentation

X-Release

A tool that helps you to create a new release quickly.

Install

pnpm i @0x-jerry/x-release -D
# or
pnpm i @0x-jerry/x-release -g

Usage

Usage:
  $ x-release [new-version]

Commands:
  [new-version]  the tasks to run.

Example:

- x-release --patch
- x-release 0.0.1
- x-release 0.1.1 --publish false


For more info, run any command with the `--help` flag:
  $ x-release --help

Options:
  --patch                auto-increment patch version number
  --minor                auto-increment minor version number
  --major                auto-increment major version number
  --prepatch             auto-increment prepatch version number
  --preminor             auto-increment preminor version number
  --premajor             auto-increment premajor version number
  --prerelease           auto-increment prerelease version number
  --publish              run npm publish, default is true
  --tag <tag-tpl>        new tag format, default is: "v${version}"
  --commit <commit-tpl>  the commit message template, default is: "chore: release v${version}"
  -h, --help             Display this message
  -v, --version          Display version number

Configuration

Config file: release.conf.ts

Example config file:

import { defineConfig } from '@0x-jerry/x-release'

export default defineConfig({
  /**
   * run npm publish, default true
   */
  publish: true,
  /**
   * tag template
   */
  tag: '${prefix}v${version}',
  /**
   * commit template
   */
  commit: 'chore: release ${prefix}v${version}',
  /**
   * run tasks after bump version
   */
  tasks: [
    'npm test', // run npm test
    async (ctx) => {
      console.log('new version is:', ctx.nextVersion)

      await ctx.run(`echo "custom script, all tasks are finished!"`)
    },
  ],
})

Package.json release

{
  "release": {
    "publish": true,
    "tag": "${prefix}v${version}",
    "commit": "chore: release ${prefix}v${version}",
    "tasks": [
      "npm run test",
      "echo 'run custom script after bump version'",
      "echo 'this should be the last script'"
    ]
  }
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 14

Native requirements
14 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
cac
Environment
{
  "local_name": "cac",
  "alias": false,
  "peer_metadata": null
}
^6.7.12runtime
debug
Environment
{
  "local_name": "debug",
  "alias": false,
  "peer_metadata": null
}
^4.3.3runtime
execa
Environment
{
  "local_name": "execa",
  "alias": false,
  "peer_metadata": null
}
^5.1.1runtime
semver
Environment
{
  "local_name": "semver",
  "alias": false,
  "peer_metadata": null
}
^7.3.5runtime
esbuild
Environment
{
  "local_name": "esbuild",
  "alias": false,
  "peer_metadata": null
}
^0.14.9runtime
prompts
Environment
{
  "local_name": "prompts",
  "alias": false,
  "peer_metadata": null
}
^2.4.2runtime
unconfig
Environment
{
  "local_name": "unconfig",
  "alias": false,
  "peer_metadata": null
}
^0.2.2runtime
picocolors
Environment
{
  "local_name": "picocolors",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime
esbuild-register
Environment
{
  "local_name": "esbuild-register",
  "alias": false,
  "peer_metadata": null
}
^3.3.1runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.5.4development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^27.0.3development
@types/debug
Environment
{
  "local_name": "@types/debug",
  "alias": false,
  "peer_metadata": null
}
^4.1.7development
@types/semver
Environment
{
  "local_name": "@types/semver",
  "alias": false,
  "peer_metadata": null
}
^7.3.9development
@types/prompts
Environment
{
  "local_name": "@types/prompts",
  "alias": false,
  "peer_metadata": null
}
^2.0.14development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "21c3e51d3fe38f718be1cfd254c26fefd98b793e",
  "tarball": "https://registry.npmjs.org/@0x-jerry/x-release/-/x-release-0.2.2.tgz",
  "fileCount": 32,
  "integrity": "sha512-q0MkNTNz3Am6pbWtYkbzCWujGUd75ozMnEWWz1xuAEDXZbXgZVLA848tviaqQ0KuQiPoYkEbWN5pyRyIA8aS+Q==",
  "signatures": [
    {
      "sig": "MEYCIQD7sg0CUKNEQojsCYsVV2nI0QkS4wUDKniZo3UrpxZ0FAIhAMzKd06Mlkkh4pqlyMZ7oS7xj+PTKT3rSvlTJ/t2rTfF",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 48230,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzV3oCRA9TVsSAnZWagAALAkP/jLM/l+TwiMY/QJ6sajn\n2J4pbrz6eZL01N6N3Uq66f/qyBX5bVEktpqPy58HRSLxX/ZhLDC77I5uLTj9\nGCkSAJYmpmMSv2qhucRSQRjanJ2daNgXMMXmsN9JnByAV3FIFaYmbKvI8R4/\nS0GLt5b86ND8FmzqZD9DjWOj8aoRyBz7KT4p/5ztdxREjtkR8cye7eKrnH08\nZfhPuAhw5X3F2zU9ngIzXJYUjTncrSXhcz2T30MzSftW30HobmNU6irj7uRs\nZ1KpVetzvDHbKVBtuX4FUiKskjyfyFkkECY29pYWgvZI/z8M3jwa8R0kR5Pv\na5P/2ETGBg0PYKXmAtaqov2Ef3vKA6mFZVB4wGo4IlQrS+ZfWMISJWCF8L/r\nRdjxmZCkpOVbu78iNhFpd1Ij0JymZcEdL/3Mpn4wwEiNfC03+9sX3ft6r55J\nCFtnaW2+ezE0Lgrp0HmYe34wyQSUTzino52DggC/aswDqafSpuW4SWRG3uPH\nsvr8Ozebh77/hrA/YwpPqnzPPKq9G3WdhGW/yHPRqteiWq9G4tLDbg9T+Eb6\niFjIwDXR44x1IRO4cDG5LoTq2iFCsHZMp4oOpF9l+V7AUCXu5VlPRqh6beXa\npIVdxf2wE3JWPe1dTWGQiGuHPpJ60ZFa4YNySU9SxnCs3YkYngf12oleVSv2\nA2mq\r\n=j4Cy\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0x-jerry/x-release

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:17 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:1385c19e1e5a8166df406b2feb87b195de8e3398655d8a636f0b048d9bc843fd

Other collected versions

3.0.513 Apr3.0.126 Feb2.4.118 Nov2.4.07 Mar2.3.01 Mar2.2.218 MayView all collected versions →