Giter Site home page Giter Site logo

atriom-plugin's Introduction

Atriom logo

Getting Started

Introduction

The Atriom webpack plugin extracts data from the webpack build process and writes a .dat file to a user-specified output path. This plugin is intended for use with applications built with the Webpack 5 ModuleFederationPlugin. The generated .dat file will contain the following information:

  • name and id of the application
  • application dependencies
  • development dependencies
  • optional dependencies
  • application remote
  • overrides
  • consumed modules
  • exposed modules

Prerequisites

  • Webpack version 5.31.0 or higher

Installation

npm i --save-dev atriom-plugin

Usage

Add Atriom plugin and configuration to your webpack.config.js file.

Example

const AtriomPlugin = require('atriom-plugin');
const path = require('path');
plugins: [
    ...
    new AtriomPlugin({
        filename: "ATRIOM",
        outputPath: path.join(__dirname, "../"),
    }),
    ...
]
Key Description
filename Name of the output file*
outputPath File path for the .dat file generated by the plugin**

*The fileName in each federated application's webpack.config.js file must be identical.

**The outputPath for each federated application must point to the same location.


Once the plugin has been added and configured correctly, simply run your build script for each federated application:

webpack --mode production

The Atriom plugin will generate a .dat file at the specified location, which is ready to be used with the Atriom Dashboard.

atriom-plugin's People

Contributors

anquail avatar rachyl6787 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

atriom-plugin's Issues

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.