mfer 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -10
- package/dist/commands/run.js +2 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,15 +10,6 @@ A powerful CLI tool designed to simplify the management and execution of multipl
|
|
|
10
10
|
- [📦 Installation](#-installation)
|
|
11
11
|
- [🛠️ Quick Start](#️-quick-start)
|
|
12
12
|
- [📋 Commands](#-commands)
|
|
13
|
-
- [mfer init](#mfer-init)
|
|
14
|
-
- [mfer run](#mfer-run)
|
|
15
|
-
- [mfer pull](#mfer-pull)
|
|
16
|
-
- [mfer install](#mfer-install)
|
|
17
|
-
- [mfer clone](#mfer-clone)
|
|
18
|
-
- [mfer config](#mfer-config)
|
|
19
|
-
- [mfer config list](#mfer-config-list)
|
|
20
|
-
- [mfer config edit](#mfer-config-edit)
|
|
21
|
-
- [mfer help](#mfer-help)
|
|
22
13
|
- [⚙️ Configuration](#️-configuration)
|
|
23
14
|
- [🎯 Use Cases](#-use-cases)
|
|
24
15
|
- [🔧 Advanced Usage](#-advanced-usage)
|
|
@@ -93,6 +84,15 @@ mfer pull frontend
|
|
|
93
84
|
|
|
94
85
|
## 📋 Commands
|
|
95
86
|
|
|
87
|
+
### Quick Reference
|
|
88
|
+
- [`mfer init`](#mfer-init) - Interactive setup wizard
|
|
89
|
+
- [`mfer run`](#mfer-run-group_name) - Run micro frontend applications
|
|
90
|
+
- [`mfer pull`](#mfer-pull-group_name) - Pull latest changes from git repositories
|
|
91
|
+
- [`mfer install`](#mfer-install-group_name) - Install dependencies for micro frontends
|
|
92
|
+
- [`mfer clone`](#mfer-clone-group_name) - Clone repositories that don't exist locally
|
|
93
|
+
- [`mfer config`](#mfer-config) - Manage configuration settings
|
|
94
|
+
- [`mfer help`](#mfer-help) - Display help information
|
|
95
|
+
|
|
96
96
|
### `mfer init`
|
|
97
97
|
Interactive setup wizard to create your configuration file.
|
|
98
98
|
|
|
@@ -265,7 +265,11 @@ groups:
|
|
|
265
265
|
## 🔧 Advanced Usage
|
|
266
266
|
|
|
267
267
|
### Custom Start Commands
|
|
268
|
-
By default, mfer runs `npm start` in each project directory.
|
|
268
|
+
By default, mfer runs `npm start` in each project directory.
|
|
269
|
+
You can currently only customize this by modifying the run command in the source code.
|
|
270
|
+
|
|
271
|
+
Adding configurable custom start commands is something I plan on adding in the near future.
|
|
272
|
+
I also welcome anyone to open a PR for that!
|
|
269
273
|
|
|
270
274
|
### Environment Variables
|
|
271
275
|
mfer respects your existing environment setup and will use the same Node.js and npm versions you have configured.
|
package/dist/commands/run.js
CHANGED
|
@@ -3,6 +3,7 @@ import { configExists, currentConfig, warnOfMissingConfig, } from "../utils/conf
|
|
|
3
3
|
import concurrently from "concurrently";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
import path from "path";
|
|
6
|
+
const RUN_COMMAND = "npm start";
|
|
6
7
|
const runCommand = new Command("run")
|
|
7
8
|
.description("run micro-frontend applications")
|
|
8
9
|
.argument("[group_name]", "name of the group as specified in the configuration", "all")
|
|
@@ -25,7 +26,7 @@ const runCommand = new Command("run")
|
|
|
25
26
|
}
|
|
26
27
|
const mfeDir = currentConfig.mfe_directory;
|
|
27
28
|
const commands = group.map((mfe) => ({
|
|
28
|
-
command:
|
|
29
|
+
command: RUN_COMMAND,
|
|
29
30
|
name: mfe,
|
|
30
31
|
cwd: path.join(mfeDir, mfe),
|
|
31
32
|
prefixColor: "blue"
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { loadConfig } from "./utils/config-utils.js";
|
|
|
10
10
|
program
|
|
11
11
|
.name("mfer")
|
|
12
12
|
.description("Micro Frontend Runner (mfer) - A CLI for running your project's micro frontends.")
|
|
13
|
-
.version("1.0.
|
|
13
|
+
.version("1.0.3", "-v, --version", "mfer CLI version")
|
|
14
14
|
.hook("preAction", (thisCommand, actionCommand) => {
|
|
15
15
|
console.log();
|
|
16
16
|
})
|