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

@jazz-community-org/pack-jazz-web-plugin

v2.0.1

Published

Script for packaging a JavaScript plugin for the IBM Jazz Platform

Downloads

19

Readme

Package Jazz Web Plugins

Use this script to package JavaScript web plugins for extending the IBM Jazz Platform.

Install

npm install @jazz-community-org/pack-jazz-web-plugin --save-dev

Configure

The script will take the following from the package.json in the root of your plugin:

{
  "name": "your-plugin-name",
  "version": "your-plugin-version",
  "description": "your-plugin-description",
  "author": "your-plugin-author",
  "license": "your-plugin-license",
  "packJazzWebPlugin": {
    "pluginId": "your-plugin-id (the same as in your plugin.xml)",
    "pluginFiles": ["..."]
  }
}

The "pluginFiles" list is used to specify all the files and directories that should be included in the plugin package. Directories are specified by adding a trailing slash /. It can be left out and will default to ["META-INF/", "resources/", "plugin.xml"].

Additionally, the environment variable BUILD_TIMESTAMP can be used to set a custom timestamp in the created zip file name. Without this, a timestamp will be created from the current time.

Run

Make sure that your current working directory is the root of your web plugin.

Option 1

Add the script to your package.json:

"scripts": {
  "pack": "pack-jazz-web-plugin"
}

Then run the command:

npm run pack

Option 2

Alternatively, you can run the package directly using npx:

npx pack-jazz-web-plugin

Executing the package using npx has the advantage that the console output will only contain the created zip file name. This can be used to locate the file in the next step of your CI process.

Output

A zip file is created with the settings and plugin files configured in the package.json. If the script is successful, the name of the zip file will be outputted to the console.

This is the structure of the output file:

id_version_date-time.zip
├─ id_updatesite
│  ├─ features
│  │  ├─ id.feature_version_date-time.jar
│  │  │  ├─ feature.xml
│  ├─ plugins
│  │  ├─ id_version_date-time.jar
│  │  │  ├─ **/* (all plugin files)
│  ├─ site.xml
└─ id_updatesite.ini