1.2.3 • Published 8 months ago

@amirko28/react-project-merger v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

React Project Merger

react-project-merger is a simple CLI for merging existing react projects into one using React Router. Pleate note that the CLI does not modify the existing projects!

Why does this exist?

In microfrontend architecture, sometimes you want to merge existing microfrontends into one to improve the ability to manage your microfrontends.

Usage

Using NPX

You can call the CLI using npx:

npx react-project-merger -p app1 app2 -o merged

Installing it locally

You can also run it as a global package:

pnpm install @amirko28/react-project-merger
pnpm react-project-merger -p app1 app2 -o merged

Flags

You can pass additional flags:

FlagMandatoryDescription
-p --paths <paths...>The given projects' paths
-o --output \<output>The merged project path
-i --input \<inputPath>Input file (for passing args)
-f --forceForce merged directory overwrite (default: false)
--javascriptGenerates a javascript merged project (default: false)
--app-file \<appFilePath>The App component path in the given projects (default: 'src/App')
-V --versionThe CLI version
-h --helpDisplay help

Input file example

{
    "paths": ["src1", "src2"],
    "output": "merged",
    "debug": false,
    "force": true
}

And run:

npx react-project-merger -i input.json
1.2.3

8 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.2.0

8 months ago

1.1.0

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago