Git Product home page Git Product logo

microfrontend-utility's Introduction

microfrontend-utility

This is a repository to store all utilities used to implement my vision of microfrontends

Keywords

Consumer - A web application/microfrontend that references other microfrontends Microfrontend - A standalone application that encapsulates a domain and can be run independently or can be run on the same context as the consumer

Important notes

  • It's important to externalize those dependencies that can take a lot of space of the final bundle.

For example

  • Libraries can make up a lot of the bundle: Libraries like React and React-DOM usually take up a lot of space and can be externalized. This can be done by providing the externalized name to the definition.js inside the project module.

  • This project implements a very generic strategy of implementing/integrating microfrontends. The idea here is to improve the library as it gets used. The development must be taken carefully as since the microfrontends can be run on the same context, they can override some behaviors.

For example

  • CSS priority overrides (Alwways preffix possible naming conflict with process.env.MICROFRONTEND_NAME): While implementing a Proof Of Concept both applications used the library MaterialUI. When the Consumer rendered the microfrontend the bootstrap from MaterialUI would override the custom styles made by the first application. It was required to set a custom name for the bootstrapped classes from MaterialUI so they would not conflict with the same appplication.

Utilities

Responsible for adding the dependencies used for this implementation of microfrontend along with adding import maps for the provided microfrontends

This Command Line Utility is used to bootstrap a modular project that can be deployed as a microfrontend. It prepares and exposes the interface consumed by the webpack plugin and allows the project to be runnable independently from a consumer. Currently the project is bootstraped with React but as time goes, there can be PR so it can be bootstraped for other frameworks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.