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

@bellam/bcc-deploy-cli

v1.1.2

Published

Command line interface to deploy Oracle ATG BCC project with NodeJS and Puppeteer.

Downloads

10

Readme

bcc-deploy-cli

Command line interface to deploy Oracle ATG BCC projects with NodeJS and Puppeteer.

npm version Build Status

  • Tested on Oracle Commerce 11.2.

Installation

npm install -g @bellam/bcc-deploy-cli

This command installs puppeteer's local chromium browser as part of the package.

Command line interface

To deploy a project, run bcc-deploy command with required arguments.

$ bcc-deploy --prj "project name" --url "http://127.0.0.1:8081"

You can pass username and password as arguments but it is recommended to set ATG BCC login credentials in environment variables.

Set ATG BCC username in environment variable BCC_USERNAME_<env> and ATG BCC password in environment variable BCC_PASSWORD_<env>.

Example:

  • if your --env argument is "prod", set BCC_USERNAME_PROD and BCC_PASSWORD_PROD.
  • If you are not using --env, set BCC_USERNAME and BCC_PASSWORD.

Deploying project without --url

Optionally, you can also set the BCC URL (without trailing slash) in environment variable BCC_URL_<env>.

Set up all three environment variables (username, password, url) and run bcc-deploy,

$ bcc-deploy --prj "project name" --env prod

Arguments

Usage: --prj <project_name> --env <environment_name>

Options:
  --help            Show help                                          [boolean]
  --version         Show version number                                [boolean]
  --prj, --project  Project name                             [string] [required]
  --url             BCC URL endpoint. eg: http://x.x.x.x:xxxx.
                    Optionally, set environment variable BCC_URL_<env>
                                                             [string] [required]
  --env             Environment. eg: uat, prod                          [string]
  -u, --user        BCC username.
                    Optionally, set environment variable BCC_USERNAME_<env>
                    (Recommended).                           [string] [required]
  -p, --pass        BCC Password.
                    Optionally, set environment variable BCC_PASSWORD_<env>
                    (Recommended).                           [string] [required]
  --headless        Open browser process in background and hide browser window.
                                                       [boolean] [default: true]
  --xform           Optional transform function called on -prj argument[boolean]

bcc-deploy

Versions

1.1.1 - added logout function post-deployment

1.1.0 - pass environment as argument to pickup environment-specific URL, Username, Password

1.0.3 - xform argument to transform project name

1.0.1 - npm registry docs update

1.0.0 - Initial Commit