etranzact-fe-cli 0.0.1 → 0.0.2

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
@@ -9,4 +9,7 @@ pnpm add etranzact-fe-cli -g
9
9
 
10
10
  ```bash
11
11
  npx etz-cli new [project-name]
12
- ```
12
+ ```
13
+
14
+ <!-- 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 -->
15
+ git remote set-url origin https://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@github.com/olayinkaa/etz-cli.git
package/dist/index.cjs CHANGED
@@ -64,22 +64,23 @@ scaffoldCommand.argument("<project-name>", "name of the project").action(async (
64
64
  }
65
65
  const answers = await import_inquirer.default.prompt([
66
66
  {
67
- type: "list",
67
+ type: "rawlist",
68
68
  name: "template",
69
69
  message: "Which template would you like to use?",
70
70
  choices: [
71
71
  { name: "Nextjs", value: "next" },
72
- { name: "Express", value: "express" }
72
+ { name: "Tanstack Start", value: "ts-start" },
73
+ { name: "Nodejs Express", value: "express" }
73
74
  ],
74
- default: "ts"
75
+ default: "next"
75
76
  }
76
77
  ]);
77
- const { repoUrl } = resolveTemplate(answers.template);
78
+ const { repoUrl, label } = resolveTemplate(answers.template);
78
79
  import_fs_extra.default.mkdirSync(projectPath);
79
80
  const spinner = (0, import_ora.default)().start();
80
81
  const git = (0, import_simple_git.simpleGit)();
81
82
  try {
82
- spinner.text = `Downloading ${answers.template === "js" ? "JavaScript" : "TypeScript"} template...`;
83
+ spinner.text = `Downloading ${label} template...`;
83
84
  await git.clone(repoUrl, projectPath);
84
85
  spinner.succeed("Template downloaded successfully!");
85
86
  process.chdir(projectPath);
package/dist/index.js CHANGED
@@ -41,22 +41,23 @@ scaffoldCommand.argument("<project-name>", "name of the project").action(async (
41
41
  }
42
42
  const answers = await inquirer.prompt([
43
43
  {
44
- type: "list",
44
+ type: "rawlist",
45
45
  name: "template",
46
46
  message: "Which template would you like to use?",
47
47
  choices: [
48
48
  { name: "Nextjs", value: "next" },
49
- { name: "Express", value: "express" }
49
+ { name: "Tanstack Start", value: "ts-start" },
50
+ { name: "Nodejs Express", value: "express" }
50
51
  ],
51
- default: "ts"
52
+ default: "next"
52
53
  }
53
54
  ]);
54
- const { repoUrl } = resolveTemplate(answers.template);
55
+ const { repoUrl, label } = resolveTemplate(answers.template);
55
56
  fs.mkdirSync(projectPath);
56
57
  const spinner = ora().start();
57
58
  const git = simpleGit();
58
59
  try {
59
- spinner.text = `Downloading ${answers.template === "js" ? "JavaScript" : "TypeScript"} template...`;
60
+ spinner.text = `Downloading ${label} template...`;
60
61
  await git.clone(repoUrl, projectPath);
61
62
  spinner.succeed("Template downloaded successfully!");
62
63
  process.chdir(projectPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "etranzact-fe-cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
5
  "description": "Etranzact Cli for scaffolding new frontend project",
6
6
  "type": "module",
@@ -10,20 +10,14 @@
10
10
  "etz-cli": "./dist/index.js"
11
11
  },
12
12
  "files": [
13
- "dist"
13
+ "dist",
14
+ "README.md"
14
15
  ],
15
- "scripts": {
16
- "dev": "tsc -w",
17
- "build:tsc": "tsc",
18
- "build:esb": "node esbuild.config.mjs",
19
- "build:tsup": "tsup",
20
- "build": "tsup"
21
- },
22
16
  "keywords": [],
23
17
  "author": "Olayinka Ibrahim",
24
18
  "license": "ISC",
25
- "packageManager": "pnpm@10.28.1",
26
19
  "devDependencies": {
20
+ "@changesets/cli": "^2.29.8",
27
21
  "@types/fs-extra": "^11.0.4",
28
22
  "@types/node": "^25.3.0",
29
23
  "esbuild": "^0.27.3",
@@ -38,5 +32,14 @@
38
32
  "inquirer": "^13.3.0",
39
33
  "ora": "^9.3.0",
40
34
  "simple-git": "^3.32.2"
35
+ },
36
+ "scripts": {
37
+ "dev": "tsc --watch",
38
+ "build:tsc": "pnpm run clean && tsc",
39
+ "build:esb": "node esbuild.config.mjs",
40
+ "build:tsup": "tsup",
41
+ "build": "pnpm run clean && tsup",
42
+ "clean": "rm -rf dist",
43
+ "release": "pnpm run build && changeset publish"
41
44
  }
42
45
  }