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

leadent-config-manager

v0.1.9

Published

Leadent Config Manager CLI

Downloads

194

Readme

Leadent Config Manager

L.C.M. has two main uses:

  1. Fetch and merge config for local testing or deployment
  2. Diff local config changes to create files to be added to the config repo

1. Fetch and merge configuration files

USAGE
  $ leadent-config-manager setup <frontend | portal> [-b <value>] -c <value> -e <value> [-i <value>] [-l <value>] 

FLAGS
  -b, --branch=<value>       all-configs branch name to fetch the config files from, this will default to 'main' if not provided
  -c, --client=<value>       (required) Client name (folder name in the config repo)
  -e, --environment=<value>  (required) Target environment (e.g.: dev, local, staging, production)
  -i, --inherit=<value>      An environment to be merged with the base file before merging with the target environment
  -l, --developer=<value>    Local developer's settings (merge settings in 'local' folder in all-configs)
  -r, --reset=<value>        Reset local changes before merging in configuration, the value is the branch name in omw-fe or portal to reset to

DESCRIPTION
  When merging in configuration, the config is fetched and merged into the existing configuration in the following order:
  1. --reset
  2. --inherit
  3. --environment
  4. --local

EXAMPLES
  To merge customer specific configuration
  $ leadent-config-manager setup frontend -c client1 -e production
  
  To merge configuration from a different config branch
  $ leadent-config-manager setup frontend -c client1 -e production -b all-config-branch

  To merge configuration with an inherited environment
  $ leadent-config-manager setup frontend -c client1 -i production -e staging
  
  To configuration with a specific developer's settings
  $ leadent-config-manager setup frontend -c client1 -i production -l dev1
  
   To merge customer specific configuration with an developer settings
  $ leadent-config-manager setup frontend -c client1 -l dev1
  
  To merge reset any local config changes before merging in configuration
  $ leadent-config-manager setup frontend -c client1 -i production -l dev1 -r omw-fe-branch
  
  A full example
  $ leadent-config-manager setup frontend -r omw-fe-branch -b all-config-branch -c client1 -i production -e staging -l dev1

2. Diffing configuration files

USAGE
$ leadent-config-manager diff frontend -d <value> [-b <value>]

FLAGS
  -b, --branch=<value>       all-configs branch name to fetch the config files from, this will default to 'main' if not provided
  -d, --diff=<value>         Branch name to diff against, this will default to 'primary' if not provided

DESCRIPTION
  This creates a diff your local configuration compared to the omw-fe or portal branch provided.
  This could then be added to all-configs. 

EXAMPLES
  $ leadent-config-manager diff frontend
  $ leadent-config-manager diff frontend -d some-new-omw-fe-branch