Giter Club home page Giter Club logo

microfrontend-st's People

Contributors

fkolar avatar fundamental-bot avatar

Watchers

 avatar  avatar  avatar  avatar

microfrontend-st's Issues

How to expose node module deps as sharable module

In this repo https://github.com/fkolar/microfrontend-st/tree/master/module-federation-apps/apps/common-req-app when I try to expose local simple component (DownloadComponent) all works but not sure about sharable npm angular modules?

For example like this ?

exposes: {
          './Download': './apps/common-req-app/src/app/download.component.ts',
          './CommonReq': require.resolve("@aribaui/common-req-app")
}

We need to support page-2-page navigation (macrofront-end level as Manfred calls this ) but also support complete page mix up ( microfront-end different component from different team on one page).

We try to develop right now component in isolation, so developer can now rely as much as he can on standard angular-cli process microfrontend-apps/libs and have the other two repos for creating remote & host module fed. apps.

Screen Shot 2020-08-25 at 10 17 23 AM

Like on above picture.

1BX App Team

  • Assemble final microfrontend app from different features

Framework Team

  • Responsibel for providing an AppShell (page layout, shellbar, ....) and set of API

Angular Lib Development

  • Microservice team develops a pages/components. They are shared as npm modules as microfrontend is not only consumer

Angular Webpack development

  • This where we want to take feature developed by above team and expose it as module federation remote.

Questions:

  1. Right now we are relying on @manfredsteyer work angular 9 and some patched libraries
    Q: What if. './CommonReq': require.resolve("@aribaui/common-req-app") is developed and deployed to npm in angular 10? Version conflict.

  2. When you look at DownloadComponent (module-federation-apps/ ), this is really simple remote and really elementary usecase which will never be the case in real app.
    Q: What if I want to share a component and this has other depenencies? Then in Angular you need whole module to be imported. , then probably sharing just a simple component is out of question.

    • Should we use Modules with Routing and on the Final assembly app (one-bx-app) use named router-outlets ?

Q: How do you import dynamically Specific Module from the npm package? Something like you would do with imports ?
->import {MyFeatureModule} from '@aribaui/common-req-app'

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.