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

bitbucket-env-manager

v2.1.0

Published

Deploys Bitbucket Environment

Downloads

18

Readme

Bitbucket Deploy Pipeline Environments

A command line tool to manage Bitbucket pipeline deployment variables for different environments across multiple repositories

Installation

$ npm i -g bitbucket-env-manager

Usage

$ bitbucket-env-manager <command_name>

Available commands

init
generate
------
deploy
list
delete

Initialize Credentials

  • Setup Oauth Consumer keys in bitbucket with proper env variable edit access.
  • It should create ~/.bitbucket_env_manager/<workspace>.env file
  • During the auth API calls, this should create access tokens in ~/.bitbucket_env_manager/<workspace>_tokens.json file
bitbucket-env-manager init
  • Set OAUTH_CLIENT, OAUTH_SECRET and WORKSPACE

Generate

$ bitbucket-env-manager generate
  • Creates a new project manager folder with example for bitbucket environments
  • In project_envs/example/info.json set the workspace and repository_slug names from bitbucket.
    • workspace
    • repo

Deploy

$ bitbucket-env-manager deploy
  • Select multiple .env files to be deployed to bitbucket from project_envs folder.

  • As indicated in example folder, the folder should

    • contain .env file with name pattern .env.{0|1|2}.{env_name} .
      • {0|1|2} is for the rank of the environment to be created.
        • 0 -> Test, 1 -> Staging, 2 -> Production
      • {env_name} is the environment name to be created.
    • contain info.json file, with
      • workspace : workspace name

      • repo : repository_slug name

      • secured : [], an Array with keys from the env file that need to marked as secured in bitbucket.

      • envs_config : { [env_name] : {admin_only:boolean} }, Config object for each {env_name}. admin_only boolean flag allows to specify if the environment needs to be restricted to be deployed by admins only.

    Example:

    .env.0.Development filename deployment will delete any existing Development environment and variables from the bitbucket repository, and creates a new Development environment under Test Category.

List

$ bitbucket-env-manager list
  • Allows to list variables from existing environment from the repository
  • Select the info.json file for the desired repository
  • Select the env_name from the list to to view the variables from the environment in bitbucket.

Delete

bitbucket-env-manager delete
  • Allows to delete a existing environment from the repository
  • Select the info.json file for the desired repository
  • Select the env_name from the list to remove the environment from bitbucket.