Skip to content

CLI app to create Module Federation applications

License

Notifications You must be signed in to change notification settings

chranderson/create-mf-app

 
 

Repository files navigation

create-mf-app

npm version npm version

Creates a Module Federation application, API server, or library based on one of multiple different templates.

Usage

npx create-mf-app

These projects are not production complete. They are designed as lightweight projects that can be used to quickly prototype a new feature or library.

Programmatic Questions

Pick the name of your app? (host)

Press enter for the default host directory. Type . for the current directory or type the name of the new directory.

Project Type: 
  > Application
    API Server
    Library

Chose the Application, API Server, or Library.

Application

Port number: (8080)

Type a port number or press enter for the default port 8080.

Framework: (Use arrow keys)
    lit-html
    mithril
    preact
  > react
    react-esm
    solid-js
    svelte
    vanilla
    vue2
    vue3
    inferno

Chose desired framework.

Language:
  > typescript
    javascript

Chose your preferred programming language: javascript or typescript

CSS:
  > CSS
    Tailwind

Chose your desired form of styling. Tailwind will generate extra files.

API Server

Port number: (8080)

Type a port number or press enter for the default port 8080.

Template:
  > express
    graphql-apollo
    graphql-nexus
    graphql-subscriptions
    nextjs-auth
    nextjs-todo

Select the desired API template.

Library

A typescript file library will be automatically generated.

Programmatic Usage

const { buildProject } = require('create-mf-app')

buildProject({
  type: 'Application',
  name: 'my-project',
  port: '8080',
  framework: 'react',
  language: 'typescript',
  css: 'Tailwind',
})

About

CLI app to create Module Federation applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.1%
  • TypeScript 35.0%
  • HTML 2.7%
  • CSS 2.0%
  • Vue 0.9%
  • Svelte 0.6%
  • Other 0.7%