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

gulp-githooks

v0.1.16

Published

Copy all githooks files in ./githooks to .git/hooks automatically.

Downloads

3

Readme

gulp-githooks v0.1.16

Build Status

A Gulp plugin to copy all githooks files in ./githooks to .git/hooks automatically.

Getting Started

This plugin requires at least Gulp ~3.9.0

If you haven't used Gulp before, be sure to check out the Getting Started guide, as it explains how to create a Gulpfile as well as install and use Gulp plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install gulp-githooks --save-dev

Once the plugin has been installed, it may be enabled inside your Gulpfile with this line of JavaScript:

var copyToGithooks = require('gulp-githooks');
//copy githookfiles from ./githooks to ./git/hooks
copyToGithooks.sync();
or
//copy githookfiles from ./another_githooks_directory to ./git/hooks
copyToGithooks.sync('another_githooks_directory');
or
//copy githookfiles from ./githooks to ./yourapp./git/hooks
copyToGithooks.sync('githooks', 'yourapp');

Options

dirname

Type: String Defaults: githooks

It can also allow you to run another dirname to save the git hookfiles to sync.

homeDirname

Type: String Defaults: process.env.npm_package_name

It can help you to find where is the home directory.

Contributing

In lieu of a formal style-guide, take care to maintain the existing coding style. Please file a Pull Request along your issues.

  • Add unit tests for any new or changed functionality.
  • Lint and test your code using Gulp.
  • Keep the line length at 80-120 characters per line.

File a Pull Request

The process actually is quite simple:

  1. Please check out your changes on a separate branch named issue-{$integer} and commit against that one.
  2. When your tests pass and are green, merge to dev using --no-ff so we have a separate commit for that merge.
  3. After the review on dev, we can merge to master, again using --no-ff.
  4. The merge to master will get tagged. We use the SemVer standard, so no leading v.

If your PR is successful, you will get added as contributor to the repo. We trust you after your first PR made it into the repo and you then have access for further changes, handling issues, etc. So the important thing is to add your name to the package.json array of contributors when changing or adding some code for a PR. Please do that in a separate commit.

Release History

See Changelog for details or the Release list (see latest for recent updates).