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

@faceit/branch

v2.0.1

Published

A script to bootstrap development tasks at FACEIT

Downloads

6

Readme

branch

This script helps creating git branches for development tasks, which comply to EFG's guidelines as described in the jira article "The way we develop at EFG".

It can be invoked from within the monorepo by running yarn branch [options] or from any other repository by using the npx @faceit/branch [options] command (node is required, but we plan on packaging this script as a standalone executable).

Command-line options

| Option | Description | | --------------------------- | ---------------------------------------------- | | -v, --version | Output the version number | | -t, --type <type> | Commit type | | -j, --ticket [ticket] | Jira Ticket number | | -a, --abstract <abstract> | Brief description of the activity | | -d, --dry-run | Only print the branch name without creating it | | -h, --help | Display help for command |

Example:

yarn branch -t feat -j TXP-1234 -a 'implement some very cool feature'

will result in the creation of a branch named feat_TXP-1234_implement-some-very-cool-feature.

The script can also be run interactively with yarn branch: the user will be asked to provide a commit type (by chosing from a list of options), a jira ticket number and a brief abstract of the task. The script will only prompt for unanswered questions, so if it is invoked with, e.g., the type argument (yarn branch -t fix), it will skip the question about the commit type.

heads up

while the ticket number is not a mandatory argument, both the type and abstract are.

Moreover, the branch script will automatically create an empty first commit on the branch (with message ci: first commit) which is needed by the LinearB tool for development tracking purposes, and finally it will push the branch to a new upstream one.

squash command

Once the work required on the branch has been completed, the script can be invoked with the squash command, which accepts a single option:

| Option | Description | | ------------------- | ------------------------------------------------------------------------- | | -F, --no-force-push | Avoid running git push --force-with-lease automatically after squashing |

The squash command will:

  1. prompt for the name of the branch the current one stems from (since there is no easy way to determine this), which defaults to master
  2. let the user pick one of the commit messages on the branch, or type a new one altogether
  3. proceed on squashing all the commits on the branch down to a single one, which will have the chosen message
  4. if the -F option was omitted, the script will proceed on force-pushing (with lease) the current branch