Socket
Socket
Sign inDemoInstall

eslint-release

Package Overview
Dependencies
128
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-release

ESLint Release Tools


Version published
Weekly downloads
2.2K
increased by55.79%
Maintainers
2
Install size
1.72 MB
Created
Weekly downloads
 

Readme

Source

NPM version Downloads Join the chat at https://gitter.im/eslint/eslint

ESLint Release Tool

This release tool has been extracted from the ESLint project so that it can be shared among projects. While it's intended for use in ESLint organization projects, it is shared freely so others might use it as well.

Please note that while this project is shared freely, it is not intended to be a general-purpose utility. The functionality is highly specific to how ESLint projects handle releases and the project will remain very focused on this use case.

Warning: There are minimal tests for this project and the API is rapidly changing. Use at your own risk.

Installation

You can install the ESLint release tool using npm:

$ npm install eslint-release --save-dev

Usage

The ESLint release tool is designed to be used on the command line and has two modes: regular release and prerelease.

To run a regular release:

$ eslint-release

To run a prerelease, you need to include the prerelease identifier:

$ eslint-prerelease alpha

To run a release in a CI environment, be sure to set NPM_TOKEN environment variable and then run:

$ eslint-ci-release

You can optionally include the release tool in another Node.js script:

var ReleaseOps = require("eslint-release");

What It Does

When you run the release tool for a regular release, the following steps take place:

  1. Updates your npm packages to ensure you're running everything with the version that would be installed with a fresh install (only outside of CI release)
  2. Runs npm test to validate the release
  3. Gathers the commit message for each commit since the last release
  4. Calculates the next release version based on the commit message format of the changes since the last release
  5. Updates CHANGELOG.md and commits the changes
  6. Runs npm version to update the version
  7. Pushes the repository to origin/master with tags (only outside of CI release)
  8. Converts all line endings to Unix style
  9. Publishes the package to npm
  10. Reverts any file changes

When you do a prerelease, the same steps are taken except that package is published to npm under the next tag instead of latest.

Team

These folks keep the project moving and are resources for help:

  • Nicholas C. Zakas (@nzakas) - project lead

Contributing

Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the ESLint Contributor Guidelines, so please be sure to read them before contributing. If you're not sure where to dig in, check out the issues.

License

MIT License

Where to ask for help?

Join our Chatroom

Keywords

FAQs

Last updated on 29 Jul 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc