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
- - Quickly set up a React microfront end base project.
10
- - Follows Runtime Integration best practices.
11
- - Outputs ready-to-execute code with fully dynamic, seamlessly integrated components..
12
- - Dynamically installs additional libraries based on user choices, such as state management, styling, and form handling.
13
- - Automatically cleans up any incomplete code if an unexpected issue occurs during the process.
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
 
@@ -72,7 +72,8 @@ const containerCreation = async (language) => {
72
72
  console.log(
73
73
  `${INFO_MESSAGE.SUCCESS.CONTAINER}\n${INFO_MESSAGE.HAPPY_CODING}`
74
74
  );
75
- } catch {
75
+ } catch (e) {
76
+ console.log("Error:", e);
76
77
  utils.cleanupProject(workingDirectories);
77
78
  }
78
79
  };
@@ -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
- // Go inside user specified mfe dir
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-mfe-gen",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Generate React micro-frontends, containers, and projects using a simple CLI with runtime integration support.",
5
5
  "main": "index.js",
6
6
  "scripts": {