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

@bcgov/pipeline-cli

v1.0.1

Published

Pipeline Utility

Downloads

36

Readme

CircleCI

pipeline-cli

The pipeline-cli is an opinionated utility wrapper around oc CLI. It enables developer to run stages of their continuous delivery pipeline from their own workstation or form within a CI/CD server.

The utitility support and promote the following Continuous Delivery patterns:

  • Single Command Environment: "run a single command to build and deploy the application to any accessible environment, including the local development."
  • Single Path to Production: "Any change can be tied back to a single revision in a version-control system."
  • Short-Lived Branches: "Branches must be short lived – ideally less than a few days and never more than an iteration."

As well as support a Github Flow.

How we got here

Version 1: OpenShift Pipeline

This is OpenShift built-in pipeline build strategy.

Pro:

  • Easy to setup
  • Small footprint

Con:

  • It does not managed itself as it requires that the BuildConfig already exists and it is manually managed/maintained
  • Issues related to managed Jenkins memory/CPU
  • Not very reusable (aside from copy-and-paste)
  • High Dependency to Jenkins and Jenkinsfile
  • Long Jenkisfile.
  • Can't build/deploy from workstation (Without Jenkins)
  • No support for PR-based build/deployment.

Version 2: Jenkins Shared Library

Jenkins Shared Library addresses the reusablity aspect, and make it easier to share common pipeline tasks/stages.

Pro:

  • Reusable
  • Brings consistency accross multiple instances of Jenkins
  • Smaller Jenkinsfile
  • Opinionated/Configurable

Con:

  • Hard to develop/evold the pipeline: Debugging/Troubleshooting requires adding a binch of echo to try to identify issues.
  • High Dependency to Jenkins and Jekninsfile
  • Can't build/deploy from workstation (Without Jenkins)

Version 3: Groovy Script Library

Pro:

  • Reusable
  • Single command line build/deployment from Workstation
  • Low dependency to Jenkins

Con:

  • Java with Gradle + Groovy has a considerably large footprint and long statup. It takes about 5min to actually start build/deployment.
  • Complex configuration file

Version 4: JavaScript Node/NPM Module

Pro:

  • Reusable
  • Single command line build/deployment from Workstation
  • Low dependency to Jenkins
  • Easy to extend
  • Less opnionated

Con:

  • Bigger footprint/boilerplate

Why Not ...?

Helm

Helm helps you manage Kubernetes applications — Helm Charts help you define, install, and upgrade even the most complex Kubernetes application.

Operator Framework

The Operator Framework is an open source toolkit to manage Kubernetes native applications, called Operators, in an effective, automated, and scalable way.

OpenShift Do (Odo)

Odo utilizes Source-to-Image to create reproducible Docker images from source code. Odo handles the complex task of building, pushing and deploying your source code.

Coverage of fast tests:

DEBUG=info:* npm run coverage

Reset dependencies

rm -rf node_modules; npm install

Debug

npm link