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

@kie/build-chain-files-generator

v1.1.2

Published

NodeJS tool to create files based on build configuration

Downloads

15

Readme

Build Chain files generator

It's a tool either to be used as a javascript library, a CLI or a github actions. The tool generate files (images, project-list.txt, ...) based on a build-chain definition file. See: Github Action Build Chain.

Allowed configuration files versions

  • 2.0

Input Fields

  • definition-file (mandatory): path to the file in filesystem | URL to the file

    Example:

    definition-file: './folder/whatever_definition_file.yaml'
    definition-file: 'http://yourdomain.com/definition-file.yaml'
    definition-file: 'https://raw.githubusercontent.com/kiegroup/droolsjbpm-build-bootstrap/master/.ci/pull-request-config.yaml'
    definition-file: 'https://raw.githubusercontent.com/kiegroup/droolsjbpm-build-bootstrap/${BRANCH}/.ci/pull-request-config.yaml'
    definition-file: 'https://raw.githubusercontent.com/${GROUP}/droolsjbpm-build-bootstrap/${BRANCH}/.ci/pull-request-config.yaml'
    definition-file: 'https://raw.githubusercontent.com/${GROUP}/${PROJECT_NAME}/${BRANCH}/.ci/pull-request-config.yaml'

    output-file-path: description: "the output file path to store the produced file" required: true font: description: "the font used to generate image, something like 14px Arial" required: false

  • file-type (required): The file type you want to produce. Possible values:

    • image: it will generate the file image based on the definition file.
    • repository-list: it will generate a plain text file with the full downstream dependency information.
  • output-file-path (required): The file path where the file will be stored. For instance:

    output-file-path: 'folderx/my-project-hierarchy.png'
    output-file-path: 'project-list.txt'

    Note: It make sense in case this is part of a flow where the files are either archived or stored as a new push to the repository/pull request.

  • exclude (optional): The list of projects or branches to exclude from project-list generation. For instance:

    exclude: groupx/projectx  # it will exclude groupx/projectx from the list
    exclude: |                # it will exclude groupx/projectx, groupx/projecty and all the projects where the mapping is master:7.x
          groupx/projectx
          groupx/projecty
          @master:7.x
  • include (optional): The list of projects or branches to include from project-list generation. For instance:

    include: groupx/projectx  # it will include groupx/projectx from the list
    include: |                # it will include groupx/projectx, groupx/projecty and all the projects where the mapping is master:7.x
          groupx/projectx
          groupx/projecty
          @master:7.x
  • font (optional): The font size and name to produce the image. For instance:

    font: '14px Liberation Serif'
    font: '11px IBM Plex Sans Condensed 2'

CLI Usage

Generate Image

Check this example: build-chain-files-generator -df https://raw.githubusercontent.com/kiegroup/droolsjbpm-build-bootstrap/master/.ci/pull-request-config.yaml -o image.png image -font "14px Arial"

where:

  • -df: is the definition file
  • -o: the file path to store the file
  • image: the file type to generate
  • -font (optional): the font to use

Generate Repository list file

Check this example:

build-chain-files-generator -df ./pull-request-config.yaml -o file.txt repository-list -exclude "groupx/projectX" "@master:main" > build-chain-files-generator -df ./pull-request-config.yaml -o file.txt repository-list -include "groupx/projectY" "@main:master"

where:

  • -df: is the definition file
  • -o: the file path to store the file
  • image: the file type to generate
  • -exclude (optional): the project list or mapping to exclude
  • -include (optional): the project list or mapping to include