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

@portfolium/pdt

v1.2.2

Published

Portfolium Deploy Tool

Downloads

3

Readme

Portfolium Deploy Tool

This CLI tool can be used to assist in managing branch deployments on development and QA servers. It is useful when trying to manage multiple apps on a single server, especially with several developers creating feature branches that need to be deployed.

Installation

npm install -g @portfolium/pdt

Configuration

pdt looks for the json file in $HOME/.pdt/pdt.json. It expects 2 properties in the json file:

  • projectDir {String}
  • apps {Array[Object]}

This is an example:

{
  "projectDir": "/home/mywebapp/deploy",
  "apps": [
    {
      "name": "web",
      "script": "deploy-web.sh"
    },
    {
      "name": "api",
      "script": "deploy-api.sh"
    }
  ]
}

The apps section defines the app that pdt will operate on. The name should be a directory under the directory defined in projectDir . The script is the script that will be called with the deploy command.

Usage

The main command is pdt. It is modeled after the git command. The following subcommands are available.

deploy|d <app> [branch]

param  app    (required)   - the app name to deploy (i.e. web)
param  branch (optional)   - the branch to checkout and deploy; if branch is empty,
                             a branch selector is shown

Checkout the branch for app and run the deploy script. Full output can be viewed with pdt logs <app>.

checkout|c <app> [branch]

param  app    (required)   - the app name to run the checkout (i.e. web)
param  branch (optional)   - the branch to checkout; if branch is empty,
                             a branch selector is shown

Checkout the branch for app. Full output can be viewed with pdt logs <app>.

reset|r [app]

param  app    (optional)   - the app name to reset (i.e. web or all);
                             if app is empty, it is set to 'all'

Reset the app (or all apps) to master branch at the latest revision and run the deploy script. Full output can be viewed with pdt logs <app>.

status|s [app] [-l|--long]

param  app            (optional)   - the app name to show status for (i.e. web or all);
                                     if app is empty, it is set to 'all'
option [-l|--long]    (optional)   - show longer status message

Show the current branch for the app (or all apps) or full git status message if --list is used

logs|l <app>

param  app            (optional)   - the app name to show the logs from the previous 
                                     command (i.e. web)

Show the full output from the previous command run. All commands will save their output to be viewed with pdt logs except status.