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

@atlassian/wrm-troubleshooting

v0.6.0

Published

A tool that can help you with troubleshooting the configuration of webpack and Atlassian P2 project.

Downloads

86

Readme

WRM Troubleshooting tool

node version npm downloads

A tool that can help you with troubleshooting the configuration of webpack and Atlassian P2 project.

Usage

The troubleshooting tool was designed to check and verify the configuration of the Atlassian P2 plugin, a modern front-end setup configured with webpack and atlassian-webresource-webpack-plugin plugin.

Additionally, the troubleshooting tool can verify if the webpack bundled JS code can be accessed with Atlassian Web-Resource Manager (WRM) inside the Atlassian product runtime.

To check if your project was configured correctly open a terminal and navigate to the root directory of your project:

cd /my-project/location

Next, run the npx command:

npx @atlassian/wrm-troubleshooting

# or run a standalone command if the package is installed globally
wrm-troubleshooting

The tool will ask you a few questions and will guide you in case your project configuration is invalid or broken.

You can also read the next paragraph to learn how to install the package globally if you prefer that.

Example and demo

WRM Troubleshooting Demo

Watch the demo with asciinema

Custom Babel environments

Some projects are using Babel with @babel/preset-env preset and can define a custom environment overrides for webpack:

Example of .babelrc or babel.config.js files

{
  env: {
    development: {
      presets: [
        // A list of Babel preset
      ],
      plugins: [
        // A list of Babel plugins
      ],
    },

    production: {
      plugins: [
        // A list of Babel plugins
      ],
    },
  },
}

In this case you need to guide the WRM troubleshooting tool about what environment should be selected to bundle the webpack code. To do that, you can execute the npx @atlassian/wrm-troubleshooting command with the BABEL_ENV variables like so:

BABEL_ENV=production npx @atlassian/wrm-troubleshooting

Installation

You don't need to install this package. You can use it with the npx command.

In case you still would like to install the package, you can install it globally with NPM:

npm install --global @atlassian/wrm-troubleshooting

or by Yarn

yarn global add @atlassian/wrm-troubleshooting

Minimum requirements

This plugin is compatible with:

  • Node 14+
  • webpack v4 and webpack v5
  • atlassian-webresource-webpack-plugin v4 and atlassian-webresource-webpack-plugin v5