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 🙏

© 2025 – Pkg Stats / Ryan Hefner

shipit-local

v0.5.5

Published

Set of deployment tasks for Shipit that allows you to build locally, ideal for automating stage server builds

Readme

#shipit-local

shipit-local is a set of tools that aids in making releases and deploying them locally. Its intended to help with the automation of creating releases from branches on a stage server.

This package is not compatible with shipit-deploy or other packages that rely on servers being defined.

##Dependencies

  • node/npm - but lets be honest if you dont have these already what are you doing here?
  • git 1.7.8+

##Features

  • Works on both Windows and *nix platforms
  • Easy command line usage with overridable config options

##Install

npm install --save shipit-local

##Usage

####Example shipitfile.js

module.exports = function (shipit) {
  require('shipit-local')(shipit);

  shipit.initConfig({
    default: {
      deployTo: '/var/www',
      repositoryUrl: 'https://github.com/user/repo.git',
      updateSubmodules: false,
      keepReleases: 1,
      deleteOnRollback: false
    }
  });
};

To deploy the master branch from your repository:

shipit master deploy

You can rollback a particular branch by using:

shipit master rollback

Rollback will only work if there is a previous release to roll back to.

###Advanced Usage You can override all of the available config options by passing them in on the command line:

shipit master deploy --deployTo=/var/www/overriden

This will now override the deployTo option and set it to the value passed it.

##Options

####deployTo Type: String

Defines a path where branches should be created at. EX: If you use /var/www then when you run shipit master deploy your master branch will be deployed to /var/www/master/releases/<timestamp> and linked to /var/www/master/current

####deployToStructure Type: Number

Default: 0

Option for deployTo structure:

  • 0 - Use as is
  • 1 - Append branch name
  • 2 - Append repo name
  • 3 - Append branch then repo name
  • 4 - Append repo then branch name

####repositoryUrl Type: String

Git URL of the project repository.

####branchNameAlias Type: String

Default: The first argument passed to shipit

A string to replace the provided branch with. Say you want to deploy master but you want to alias that as 1.0.0-rc1. This is how you would do that. Only works with deployToStructure 1,3,4

####repoNameAlias Type String

Default: Parsed from the repo URL

A string to replace the repo name with. Similar to branchNameAlias but for the repo name. Only works with deployToStructure 2,3,4

####updateSubmodules Type: Boolean

Default: false

Whether or not after updating the repository to also update submodules.

####deleteOnRollback Type: Boolean

Default: false

Whether or not to delete the old release when rolling back to a previous release.

####keepReleases Type: Number

Default: 1 (The current one does not count toward this number)

Number of releases to keep besides the current one in each branch's releases directory. If set to 0 or less than zero this will not use a releases directory and symlink the current, instead all work will be kept and updated in the current folder.

####gitConfig Type: Object

Custom git configuration settings for the cloned repo.

####copyPreviousRelease Type: Boolean

Default: false

If set to true will copy the previous release directy then perform the git updates on it. By default this is set to false and a clean directory is used.

##Workflow Tasks

  • Deploy
    • deploy:prepare
      • Emit event deploy:prepare.
      • Create new release directory.
      • Emit event deploy:prepared.
    • deploy:fetch
      • Initialize repository.
      • Add remote.
      • Fetch repository.
      • Checkout commit-ish.
      • Merge remote branch in local branch.
      • Emit event deploy:fetched.
    • deploy:build
      • Emit event deploy:build.
    • deploy:publish
      • Update symlink (Uses ln -s on *nix systems and mklink on Windows)
      • Emit event deploy:published.
    • deploy:cleanup
      • Remove old releases
      • Emit event deploy:cleaned
  • Rollback
    • rollback:prepare
      • Emit event rollback:prepare
      • Locate previous release
    • rollback:rollback
      • Update symlink (Uses ln -s on *nix systems and mklink on Windows)
      • Emit event deploy:published.
    • rollback:cleanup
      • Delete old release if deleteOnRollback is true
      • Emit event rollback:cleaned

##License MIT