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

mf-bootstrap-cli

v1.8.0

Published

Generator to create projects with Webpack Module Federation Plugin

Downloads

6

Readme

mf-bootstrap-cli

GitHub package.json version GitHub code size in bytes GitHub GitHub package.json dependency version (dev dep on branch) david npm GitHub Release Date GitHub package.json dynamic

This package includes the global command to create a React micro-frontend project (base project) with Webpack 5 (Module Federation).

After all the questions are answered or all necessary arguments passed, the CLI will create a directory in the same directory where the CLI run. The output will be a basic React base application including the configuration of Webpack 5.0.0-beta.25 to make possible the use of the Module Federation Plugin.

There are 2 available templates:

  • JavaScript (default).
  • TypeScript.

And 2 available package manager for the run the application:

  • yarn (default).
  • npm.

There is one last option that is -s or --skip that will create a micro-frontend template using the default values.

Default values:

Project name: mfApplication
Template: JavaScript
Package Manager: yarn
Initialize Git: true
Install dependencies: true

Some of the settings supported by the template are:

  • React v16.13.1
  • ReactDOM v16.13.1
  • Jest and Enzyme configuration.
  • CSS and CSS Modules
  • ESLint and Prettier config
  • Webpack 5.0.0-beta.25

Prerequisites

  • NodeJS version 12 or higher.
  • Git version 2.25.0 or higher.

Installation

The package can be installed globally.

npm i -g mf-bootstrap-cli

or you can use it by npx

npx mf-bootstrap-cli [options]

Usage

The CLI can receive the arguments inline or you can just type the package name and if there are pending mandatory options to create the project, a list of questions will be prompt to the user.

These are all the available arguments that can be pass to the bootstrap CLI.

Options

-h, --help        print mf-bootstrap-cli command line options (currently set)
-i, --install     let the application know if the micro-frontend dependencies will be install. Is set TRUE by default
-g, --git         let the application know if the micro-frontend application will be initialize with Git. Is set TRUE by default
-n, --name        micro-frontend application name
-p, --pManager    package manager to use, yarn (default) or npm
-s, --skip        parameter to create a micro-frontend application using default values
-t, --template    micro-frontend type of project, JavaScript (default) or TypeScript
-v, --version     print mf-bootstrap-cli version

Examples

  • Init Git and install dependencies:
$  mf-bootstrap-cli -n myApplication -t JavaScript -p yarn --git --install
  • without git init application and without install dependencies
$  mf-bootstrap-cli -n myApplication -t JavaScript -p yarn
  • Default template (JS), default package manager (NPM), no init and no install dependencies:
$  mf-bootstrap-cli -n myApplication
  • Use default values:
$  mf-bootstrap-cli --skip

License

MIT