react-mfe-gen 1.1.0 → 1.1.1
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
CHANGED
|
@@ -6,11 +6,12 @@ This tool uses the Runtime Integration approach — meaning each MFE is built as
|
|
|
6
6
|
|
|
7
7
|
## 🚀 Features:
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
9
|
+
- Spin up a React Microfrontend Base in Seconds – No hassle, just code.
|
|
10
|
+
- Built on Runtime Integration Best Practices – Seamless, scalable, and future-proof.
|
|
11
|
+
- Generates Production-Ready Microfrontends – Pre-configured and good to go.
|
|
12
|
+
- Smart Library Installer – Dynamically adds state management, styling, and form tools based on your choices.
|
|
13
|
+
- Self-Healing Setup – Auto-cleans incomplete code if something breaks mid-process.
|
|
14
|
+
- True Cross-Platform Compatibility – Works flawlessly on Windows, macOS, and Linux.
|
|
14
15
|
|
|
15
16
|
## 📦 Prerequisites:
|
|
16
17
|
|
|
@@ -89,7 +89,7 @@ const newProjectCreation = async (language) => {
|
|
|
89
89
|
// store working dir
|
|
90
90
|
const mfeFullPath = path.join(mfeInfo.path, mfeName);
|
|
91
91
|
workingDirectories.push(mfeFullPath);
|
|
92
|
-
|
|
92
|
+
// Go inside user specified mfe dir
|
|
93
93
|
process.chdir(mfeInfo.path);
|
|
94
94
|
const mfeAppCommand = utils.getLanguageTemplate(mfeName, isTypeScript);
|
|
95
95
|
|
|
@@ -107,7 +107,8 @@ const newProjectCreation = async (language) => {
|
|
|
107
107
|
console.log(
|
|
108
108
|
`${INFO_MESSAGE.SUCCESS.NEW_PRO}\n${INFO_MESSAGE.HAPPY_CODING}`
|
|
109
109
|
);
|
|
110
|
-
} catch {
|
|
110
|
+
} catch (e) {
|
|
111
|
+
console.log("Error:", e);
|
|
111
112
|
utils.cleanupProject(workingDirectories);
|
|
112
113
|
}
|
|
113
114
|
};
|
|
@@ -34,7 +34,7 @@ const singleMfeCreation = async (language) => {
|
|
|
34
34
|
|
|
35
35
|
// Make normal react app into MFE container
|
|
36
36
|
await utils.configureMfe(
|
|
37
|
-
{ ...mfeInfo, projectName: mfeName,mfeDescription, isTypeScript },
|
|
37
|
+
{ ...mfeInfo, projectName: mfeName, mfeDescription, isTypeScript },
|
|
38
38
|
mfeName,
|
|
39
39
|
0
|
|
40
40
|
);
|
|
@@ -42,7 +42,8 @@ const singleMfeCreation = async (language) => {
|
|
|
42
42
|
console.log(
|
|
43
43
|
`${INFO_MESSAGE.SUCCESS.ONE_MFE}\n${INFO_MESSAGE.HAPPY_CODING}`
|
|
44
44
|
);
|
|
45
|
-
} catch {
|
|
45
|
+
} catch (e) {
|
|
46
|
+
console.log("Error:", e);
|
|
46
47
|
utils.cleanupProject(workingDirectories);
|
|
47
48
|
}
|
|
48
49
|
};
|
package/package.json
CHANGED