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

microfrontend-create

v1.8.1

Published

This is a microfrontend project builder through webpack v5 (ModuleFederationPlugin). You can create a 'container' or 'child' microfrontend. You will also be able to decide under which development environment to work, be it 'React', 'Vue', 'Angular', 'Svel

Downloads

42

Readme

microfrontend-create

Description

This is a microfrontend project builder through webpack v5 (ModuleFederationPlugin). You can create a 'container' or 'child' microfrontend. You will also be able to decide under which development environment to work, be it 'React', 'Vue', 'Angular', 'Svelte' , 'Vanillajs', 'Vanillawc' (web-components) or 'Lit'

From @1.4.0 version

Since version @1.4.0 you can create a simple microfrontend without big problems, but I am working to make this a great generator (be patient).

Node.js

Required 16.14.2 version or higher

Install

$ npm install microfrontend-create -g

--version

$ npx microfrontend-create --version

1.8.1

Create project

$ npx microfrontend-create

Usage

First

path/where/you/will/create/project>$ npx microfrontend-create

You can create a microfrontend only using one framework multiframework. Default value is "No". I suggest choose "N"(No) if you will only use one frameword, but if you will convine multiples frameworks should choose "y"(Yes).

? Is this a multiframework project? (y/N) __

Write your microfront project name. Avoid write spaces. Default value is "my-microfrontend".

? What is your micro-frontend´s name? (my-microfrontend) __

This opcion will only afect to some ModuleFederationPlugin configuration into "webpack.config.js" file. Default value is "child"

? What type of micro-frontend do you want to create? __ >child >container

Choose your framework. Default value is "react"

? What framework do you want to use? __ >react >vue >angular >manilla

Choose port to run in development enviroment. Default value is "8080". By convention port 8080 is used for the container. Either way, you can change this value inside the "webpack.config.js" file whenever you want.

? What port do you want to use? (8080) CREATE mymicrofrontend

CREATE mymicrofrontend/src

CREATE mymicrofrontend/src/assets

CREATE mymicrofrontend/public

CREATE mymicrofrontend/.eslintrc.json

CREATE mymicrofrontend/.gitignore

CREATE mymicrofrontend/src/index.js

CREATE mymicrofrontend/src/components

CREATE mymicrofrontend/src/hooks

CREATE mymicrofrontend/src/redux

CREATE mymicrofrontend/src/redux/slices

CREATE mymicrofrontend/src/redux/slices/counter

CREATE mymicrofrontend/src/redux/store

CREATE mymicrofrontend/src/routes

CREATE mymicrofrontend/src/redux/slices/counter/counterSlice.js

CREATE mymicrofrontend/src/redux/slices/counter/index.js

CREATE mymicrofrontend/src/redux/slices/counter/thunk.js

CREATE mymicrofrontend/src/redux/store/index.js

CREATE mymicrofrontend/src/hooks/useHook.js

CREATE mymicrofrontend/src/components/Logo.js

CREATE mymicrofrontend/src/components/Webpack.js

CREATE mymicrofrontend/src/components/stylelogo.module.css

CREATE mymicrofrontend/src/components/stylewebpack.module.css

CREATE mymicrofrontend/src/routes/Home.js

CREATE mymicrofrontend/src/routes/stylehome.module.css

CREATE mymicrofrontend/src/assets/logo.svg

CREATE mymicrofrontend/src/Mymicrofrontend.js

CREATE mymicrofrontend/src/style.module.css

CREATE mymicrofrontend/src/webpack.config.js

CREATE mymicrofrontend/public/index.html

CREATE mymicrofrontend/src/bootstrap.js

Your 'mymicrofrontend' microfrontend have been created successfully !!!

Next steps:

▶️ cd my-microfrontend

▶️ npm install or npm i

▶️ npm start

Contact me

[email protected]