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

wisdom

v15.2.0

Published

configurable publish releases to github and npm

Downloads

92

Readme

Wisdom License NPM version Build Status

Tool for publishing releases to github and npm according to Semantic Versionin.

image

🎁Wisdom does next things:

  • set env variable $wisdom_version and $WISDOM_VERSION with future version
  • run command from scripts.wisdom of package.json (if exist);
  • run command from scripts.wisdom:type of package.json (if exist);
  • changelog;
  • version in package.json;
  • tag;
  • release on github;
  • push to github;
  • publish to npm;
  • run command from scripts.wisdom:done of package.json (if exist);

package.json should contain next properties,

when publish enabled:

{
    "publishConfig": {
        "access": "public"
    }
}

when releases enabled:

repository field should be set:

{
    "repository": {
        "type": "git",
        "url": "git://github.com/coderaiser/wisdom.git"
    }
}

Before executing wisdom, wisdom:type and wisdom:done scripts will be expanded via redrun which will speed things up.

Here is list of commands that should be executed to get same result:

changelog {{ version }}
version {{ version }}
git add --all
git commit -m "feature(package) v{{ version }}"
git push origin {{ branch }}
git tag v{{ version }}
git push origin v{{ version }}
grizzly -tn "token from url" \
-r grizzly -o {{ owner }} -t {{ version }} \
-n "{{ repo }} {{ version }}" -b "changelog"
npm publish

Install

npm i wisdom -g

How to use?

$ wisdom
Usage: wisdom [patch|minor|major]
Options:
  --dry-run       show tasks to run without actually running
  --force         do not ask before publishin major
  -h, --help      display this help and exit
  -v, --version   output version information and exit

Configuration

When you need configure wisdom you could declare them in package.json (with defaults set):

{
    "changelog": true,
    "commitType": "colon|paren",
    "tag": true,
    "release": true,
    "releaseTriesCount": 10,
    "private": false,
    "branch": "master",
    "scripts": {
        "wisdom": "echo 'do something before starting'",
        "wisdom:type": "echo 'do something before starting and add --patch, --minor or --major argument'",
        "wisdom:build": "echo 'do something before publish'",
        "wisdom:done": "echo 'do something after publish'"
    }
}

License

MIT