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

sexy-commits

v0.3.17-6

Published

Sexy commits using gitmoji.dev and inquirer-autocomplete-prompt

Downloads

58

Readme

version

Sexy commits using your config from package.json.

Uses gitmoji mapping config from your package.json and inquirer to prompt you for what you did and a brief explanation (used as commit message).

{
  "gitmoji": {
    "build": [
      "🏗️",
      "Make architectural changes"
    ],
    "ci": [
      "👷",
      "Add or update CI build system"
    ],
    "chore": [
      "💄",
      "Boring chores"
    ]
  }
}

-----------------------------------------------------

➤ This is how it works

Add npm script

Add npm script commit that runs sexy-commits.

{
  "scripts": {
    "commit": "sexy-commits"
  }
}

Run the script

npm run commit

Select what you did

image-20210326144343892

Enter a short summary

image-20210326144354677

With arguments

You can also call run sexy-commitswith args.

npm run commit [add] [type] [message]

Where [add] is what do add - either allor a pattern, and [type] is what kind of change you did (depends on your gitmoji config).

Example 1

You did a fix and want to commit all changes:

npm run commit all fix

Example 2

You did a style adjustment and want to commit only what's in the theme folder.

npm run commit style theme "updated dark theme"

Alias support

With v0.3.1we introduces alias support. Add a third element to your gitmoji config which is an array of aliases. Here you can see we mapped build to ci and boringand choresto chore.

{
  "gitmoji": {
    "ci": [
      "👷",
      "Add or update CI build system",
      ["build"]
    ],
    "chore": [
      "💄",
      "Boring chores",
      ["boring", "chores"]
    ]
  }
}

Example 1

You can now do the following:

npm run commit boring "it's so boring to use regular git commits"

Auto push

You can auto push your changes by setting SEXY_COMMITS_AUTO_PUSH to 1 in your .env file.

Add skip ci tag

If you want to add skip ci tag to your commit, set the SEXY_COMMITS_SKIP_CI_TAG variable in your .env file.

Example

SEXY_COMMITS_SKIP_CI_TAG=[skip-ci]

Lint your changes before commiting

By specifying SEXY_COMMITS_LINT_CMD in your .env file, we can lint your changes before commiting (e.g. with ESLint).

Example

SEXY_COMMITS_LINT_CMD=npm run-script lint

-----------------------------------------------------

➤ Contributors

| | | |:--------------------------------------------------:|:--------------------------------------------------:| | Ole Martin Pettersen | Carl Joakim Damsleth | | [email protected] | [email protected] |

Working with issues

You can automatically tag and/or close issues automatically when commiting with sexy-commits.

By specifying SEXY_COMMITS_ISSUE_REF in your .env file, the commit will automatically tag the issue. Do not specify the issue number with the #.

By also providing SEXY_COMMITS_FIXES_ISSUE, the issue will automatically be closed when commiting.