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

@intellihr/portal-dev-utils

v2.0.0

Published

Webpack utilities used by Portal

Downloads

9

Readme

This package includes some utilities used by Portal microservices.

Usage

If you don't use Portal, you may keep using these utilities. Feel free to fork or copy and paste them into your projects if you'd like to have more control over them. Not all of them are Portal-specific, but we might make some of them more Portal-specific in the future.

Entry Points

There is no single entry point. You can only import individual top-level modules.

new PortalManifestWebpackPlugin(options: Object)

This Webpack plugin generates a manifest file to be used by Portal.

options.filename

Type: String Default: portal-manifest.json

By default the plugin will emit portal-manifest.json to your output directory.

options.seed

Type: Object Default: {}

A cache of key/value pairs to seed the manifest. This may be used to combine manifests across compilations in multi-compiler mode. To combine manifests, pass a shared seed object to each compiler's PortalManifestWebpackPlugin instance.

webpack-dev-server-utils

createMultiCompiler(options: Object): WebpackMultiCompiler

Creates a Webpack multi-compiler instance for WebpackDevServer with built-in helpful messages.

options.appName

Type: String

The name that will be printed to the terminal.

options.configs

Type: Object[]

A list of sets of webpack configuration options to be provided to the webpack constructor.

options.devSocket

Type: Object

Required if useTypeScript is true. This object should include errors and warnings which are functions accepting an array of errors or warnings emitted by the type checking. This is useful when running fork-ts-checker-webpack-plugin with async: true to report errors that are emitted after the webpack build is complete.

options.urls

Type: Object

To provide the urls argument, use react-dev-utils/WebpackDevServerUtils@prepareUrls().

options.useYarn

Type: boolean

If true, yarn instruction will be emitted in the terminal instead of npm.

options.useTypeScript

Type: boolean

If true, TypeScript type checking will be enabled. Be sure to provide the devSocket argument above if this is set to true.

options.tscCompileOnError

Type: boolean

If true, errors in TypeScript type checking will not prevent start script from running app, and will not cause build script to exit unsuccessfully. Also downgrades all TypeScript type checking error messages to warning messages.

options.webpack

Type: function

A reference to the webpack constructor.