@enfyra/create-app 0.1.32 → 0.1.33
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 +7 -8
- package/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,20 +19,17 @@ npx @enfyra/create-server my-backend
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
# Using npx (recommended)
|
|
22
|
-
npx @enfyra/create-app
|
|
22
|
+
npx @enfyra/create-app
|
|
23
23
|
|
|
24
24
|
# Using yarn
|
|
25
|
-
yarn create @enfyra/app
|
|
25
|
+
yarn create @enfyra/app
|
|
26
26
|
|
|
27
27
|
# Using pnpm
|
|
28
|
-
pnpm create @enfyra/app
|
|
29
|
-
|
|
30
|
-
# Using bun
|
|
31
|
-
bun create @enfyra/app my-app
|
|
28
|
+
pnpm create @enfyra/app
|
|
32
29
|
|
|
33
30
|
# Or install globally
|
|
34
31
|
npm install -g @enfyra/create-app
|
|
35
|
-
create-app
|
|
32
|
+
create-app
|
|
36
33
|
```
|
|
37
34
|
|
|
38
35
|
## Demo
|
|
@@ -58,7 +55,9 @@ create-app my-app
|
|
|
58
55
|
|
|
59
56
|
### Create a new project
|
|
60
57
|
```bash
|
|
61
|
-
npx @enfyra/create-app
|
|
58
|
+
npx @enfyra/create-app
|
|
59
|
+
# Optional: specify a name
|
|
60
|
+
npx @enfyra/create-app my-enfyra-app
|
|
62
61
|
```
|
|
63
62
|
|
|
64
63
|
### Interactive setup
|
package/index.js
CHANGED
|
@@ -43,7 +43,7 @@ async function main() {
|
|
|
43
43
|
});
|
|
44
44
|
console.log('');
|
|
45
45
|
|
|
46
|
-
// Get project name from command line or prompt
|
|
46
|
+
// Get project name from command line or prompt with default
|
|
47
47
|
let projectName = program.args[0];
|
|
48
48
|
|
|
49
49
|
if (!projectName) {
|
|
@@ -52,6 +52,7 @@ async function main() {
|
|
|
52
52
|
type: 'input',
|
|
53
53
|
name: 'name',
|
|
54
54
|
message: 'Project name:',
|
|
55
|
+
default: 'my-enfyra-app',
|
|
55
56
|
validate: (input) => {
|
|
56
57
|
if (!input || input.trim().length === 0) {
|
|
57
58
|
return 'Project name is required';
|