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

@squiz/dxp-plugin-template

v3.1.3

Published

This tool allows developers to install plug and play components within their normal webpack repos

Downloads

15

Readme

Install Tool

This is the install tool for the plug and play components. This tool can be installed in a repo as a node module or run one time via npx.

Installation

NPX

To install plug and play components via npx simply run npx git+ssh://[email protected]:plug-and-play/install-tool.git this will download the install tool and run it, giving you the available components to install. It should be noted that if you have components that clash with the selected components to install, the tool will alert you to this and suggest that you rename these folders.

You will need to run the npx command each time you wish to run the install tool.

Dependencies

There are two kinds of dependencies for Plug and Play components: Local and External. Local dependencies are other Plug and Play components which may be re-usable block of code used im multiple places across the P&P landscape. e.g the Video Modal component makes use of the common Modal component. External dependencies are other NPM packages which are needed for the component to function, often utility packages, e.g. the Modal component uses ally.js and focus-trap to perfom several WCAG functions.

Auto install

When installing components using the Plug and Play Install Tool you will be prompted for if you want the tool to automatically install the dependencies; if you do the tool will handle the rest, if you refuse you will be prompted for each components dependency set for if you want it installed or if you will handle the dependency installation yourself.

Local depedency detection

The tool will check if a local dependency is already installed and skip if it is, this check is performed ONLY based on the /src/module/; no attempt to verify this is actually a P&P component is performed or that it is the correct version.

Manually resolving local dependencies

If you opt to install dependencies yourself you may find not all Local Dependencies are includes in the install tool options by default, to expand the full list to include dependant only modules include the --deps argument when invoking the install tool.

Name conflicts when installing components or dependencies

The install tool will not install a component or dependency if it find a like named module in /src/module, it will alert via the console that the install has been skipped. To resolve backout the changes performed by the P&P install tool, rename or move the folder(s) that are causing issues and re-installed P&P component via the tool. Once installed you can rename the P&P or existing components as needed.

Where do i report an issue or error with the tool?

#plug-and-play slack channel