@seip/blue-bird 0.2.3 → 0.2.5

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.
Files changed (2) hide show
  1. package/core/cli/init.js +7 -8
  2. package/package.json +3 -2
package/core/cli/init.js CHANGED
@@ -67,7 +67,8 @@ class ProjectInit {
67
67
  "start": "node --env-file=.env backend/index.js",
68
68
  "react": "blue-bird react",
69
69
  "init": "blue-bird",
70
- "route":"blue-bird route"
70
+ "route": "blue-bird route",
71
+ "component": "blue-bird component"
71
72
  };
72
73
 
73
74
  let updated = false;
@@ -107,11 +108,9 @@ const initializer = new ProjectInit();
107
108
  const args = process.argv.slice(2);
108
109
  const command = args[0];
109
110
 
110
- if (command === "react") {
111
- // Dynamically import ReactScaffold to avoid circular dependencies if any,
112
- // or just run it if it's separate.
113
- import("./react.js");
114
- } else {
115
- initializer.run();
116
- }
111
+ if (command === "react") import("./react.js");
112
+ else if (command === "route") import("./route.js")
113
+ else if (command === "component") import("./component.js")
114
+ else initializer.run();
115
+
117
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seip/blue-bird",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Express + React opinionated framework with SPA or API architecture and built-in JWT auth",
5
5
  "type": "module",
6
6
  "bin": {
@@ -28,7 +28,8 @@
28
28
  "create-react-app": "node core/cli/react.js",
29
29
  "react": "node core/cli/react.js",
30
30
  "init": "node core/cli/init.js",
31
- "route": "node core/cli/route.js"
31
+ "route": "node core/cli/route.js",
32
+ "component": "node core/cli/component.js"
32
33
  },
33
34
  "dependencies": {
34
35
  "chalk": "^5.6.2",