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

@octopusdeploy/step-package-cli

v4.0.3

Published

``` npm i --save-dev @octopusdeploy/step-package-cli ```

Downloads

658

Readme

Octopus Step Packages: CLI

npm i --save-dev @octopusdeploy/step-package-cli

The Step Package CLI provides a set of tools to build, pack and publish step packages in a consistent manner, so that once built they are in a format that is guaranteed to work with Octopus Server.

Build

The build command:

  • Loads package id and version information from the package.json file located via the packageDirectory parameter
  • Locates convention-based step package contents by scanning for a metadata.json file located via the sourceDirectory parameter and looking for contents relative to it
  • Will build the required node components (executor.js, validator.js) within the step package in CommonJS format
  • Will build the required browser components (ui.js) within the step package in ESM format
  • Will generate the required JsonSchema (inputs.json) from the default exported type in inputs.ts
  • Will package the built contents into a zip file located in the outputDirectory

Publish

The publish command:

  • Unzips one or more built step packages to be published via the packagePath parameter. A glob pattern can be used to process multiple packages.
  • Loads the metadata from the package to construct a package manifest
  • Uploads the manifest and package contents to the feed designated by the feedUrl parameter, using the apiKey parameter for authentication to the feed.
  • If a package already exists in the feed a 409 Conflict error will be returned, this can be ignored using the ignoreExistingPackageErrors flag.

Execution Environment

Why CommonJS for node and ESM for the browser? Because ESM in node is currently painful.

Conventions

Step Packages are expected to follow these conventions:

  • There is a metadata.json file that adheres to either the Step Metadata Schema or the Target Metadata Schema
  • The executor is the default export of executor.ts
  • The validator is the default export of validator.ts
  • The UI is the default export of ui.ts
  • The input type schema root is the default export of input.ts
  • A logo is available as logo.svg
  • All the above files are located alongside metadata.json in a single directory.

Multiple steps and deployment targets may exist in a Step Package, but they must exist in separate directories within it. See the Step Package Template Repository for a sample repository structure.

Code within the step package can be broken down into an arbitrary number of ts files, but the expected root files listed above must exist at the step root directory, and they must contain the expected default exports.

If these conventions are not followed, the CLI build will fail.

Additional Configuration

If a step package needs to supply additional configuration to esbuild (for example, to specify some external packages to ignore), it can provide a step-package.json, and declare a subset of the options available on esbuild.BuildOptions. This configuration will be contributed to the build of all of the components within the step package.