npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@snrankin/generate-wp-readme

v1.2.0

Published

Generates conventional changelog, WordPress readme.txt and README.md from custom templates

Downloads

42

Readme

semantic-release: conventionalcommits GitHub package.json version (branch) Issues License

Table Of Contents

About The Project

I wanted an easy way to keep the WordPress readme.txt in sync with information from git. This CLI tool generates a conventionalcommit changelog file, a readme.txt file, and a README.md file. Enjoy!

Built With

Typescript

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
npm install npm@latest -g

Installation

To install and set up the library, run:

$ npm install -S @snrankin/generate-wp-readme

Or if you prefer using Yarn:

$ yarn add -D @snrankin/generate-wp-readme

Usage

Once installed via npm or yarn, simply run generate-wp-readme in your plugin folder and you're good to go! Make sure you have a {plugin}.php, a package.json and a template file

Flags/Options

Version

Output the version number

$ generate-wp-readme -v

Output File

The output file name relative to the cwd. Defaults to readme.txt.

$ generate-wp-readme -o <filename>

Changelog File

The changelog file name relative to the cwd. Defaults to CHANGELOG.md

$ generate-wp-readme -c <filename>

Main PHP File

Needs to exist prior to command execution

The main php file name relative to the cwd. Defaults to {process.cdw()}.php

$ generate-wp-readme -m <filename>

Template File

Needs to exist prior to command execution

The template file name relative to the cwd. Can be any text file. Defaults to .readme-template

$ generate-wp-readme -t <filename>

Screenshots Directory

Needs to exist prior to command execution

The screenshots directory relative to the cwd. Defaults to assets as per the WordPress plugin standard

$ generate-wp-readme -s <directory>

Changelog Length

Specify the number of versions to display before truncating the changelog.

$ generate-wp-readme -l <number>

Conventional Commit Preset

Specify a conventional commits preset.

  • angular
  • atom
  • codemirror
  • conventionalcommits (default)
  • ember
  • eslint
  • express
  • jquery
  • jshint
$ generate-wp-readme -p <preset>

Merge Codes

| Merge Code | Description | Field | Source │ | --- | --- | --- | --- | | {{__PLUGIN_NAME__}} | The name of the plugin | Plugin Name: | --main-file │ | {{__PLUGIN_SLUG__}} | Taken from the current working folder | | process.cwd() │ | {{__PLUGIN_URI__}} | The plugin homepage | Plugin URI:| --main-file │ | {{__PLUGIN_DESCRIPTION__}}| Plugin Description | Description: | --main-file │ | {{__PLUGIN_VERSION__}} | The current project version. | version:| --package-file│ | {{__PLUGIN_LICENSE__}} | The project's license.| License:| --main-file │ | {{__PLUGIN_LICENSE_URI__}} | The URI to the project's license. | License URI: | --main-file │ | {{__PLUGIN_MIN_WP__}} | The minimum required WordPress core version.| Requires at least: | --main-file │ | {{__PLUGIN_MIN_PHP__}} | The minimum required PHP version.| Requires PHP: | --main-file │ | {{__PLUGIN_TESTED_WP__}} | The latest WordPress core version the plugin has been tested against. | Tested up to:| --main-file │ | {{__PLUGIN_DONATE__}} | The plugin donation link.| funding:| --package-file │ | {{__PLUGIN_CONTRIBUTORS__}} | The plugin contributors (including author)| author:, contributors: | --package-file │ | {{__PLUGIN_TAGS__}} | The plugin tags | keywords:| --package-file │ | {{__PLUGIN_CHANGELOG_URI__}} | A link to the full project changelog.| | --changelog-file │ | {{__PLUGIN_CHANGELOG__}} | The most recent changelog entries. | | --changelog-file │

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  • If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
  • Please make sure you check your spelling and grammar.
  • Create individual PR for each suggestion.

Creating A Pull Request

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

Acknowledgements