@portosaur/cli 0.9.3 → 0.9.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portosaur/cli",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "CLI for Portosaur - The static Personal portfolio site generator.",
5
5
  "license": "GPL-3.0-only",
6
6
  "author": "soymadip",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "types": "./src/index.d.ts",
28
28
  "dependencies": {
29
- "@portosaur/core": "^0.9.3",
30
- "@portosaur/logger": "^0.9.3",
31
- "@portosaur/wizard": "^0.9.3",
29
+ "@portosaur/core": "^0.9.4",
30
+ "@portosaur/logger": "^0.9.4",
31
+ "@portosaur/wizard": "^0.9.4",
32
32
  "commander": "^13.1.0",
33
33
  "js-yaml": "^4.1.1"
34
34
  }
@@ -296,6 +296,14 @@ export async function initCommand(options = {}) {
296
296
 
297
297
  state.projectName = options.projectName || "my-portfolio";
298
298
 
299
+ if (state.vcs !== "none") {
300
+ const vcsConfig = registry.vcs_providers[state.vcs];
301
+ state.gitRemoteUrl = vcsConfig.url
302
+ .replace("{{user}}", state.userName)
303
+ .replace("{{projectName}}", state.projectName)
304
+ .replace("{{domain}}", vcsConfig.domain);
305
+ }
306
+
299
307
  // Validate resolved hosting platform
300
308
  if (
301
309
  state.hosting !== "none" &&
@@ -386,10 +394,13 @@ export async function initCommand(options = {}) {
386
394
 
387
395
  const portoVer = isTestProject ? "*" : `^${porto.version || "0.0.0"}`;
388
396
 
397
+ const cloneUrl = state.gitRemoteUrl || "<your-repository-url>";
398
+
389
399
  const templateVars = {
390
400
  projectName: state.projectName,
391
401
  userName: state.userName || "",
392
402
  fullName: state.fullName || "",
403
+ cloneUrl,
393
404
  portoVer,
394
405
  portoHome: porto.homepage || "",
395
406
  portoRepo: porto.repository || "",
@@ -1,4 +1,6 @@
1
- # {{projectName}}
1
+ <div align="center">
2
+ <h1>{{projectName}}</h1>
3
+ </div>
2
4
 
3
5
  Welcome to my digital personality and portfolio! 👋
4
6
 
@@ -6,14 +8,20 @@ This is my personal space on the web to express myself, share my thoughts, and s
6
8
 
7
9
  ## About This Repository
8
10
 
9
- This repository contains the source code for my personal website, built with [Portosaur]({{portoHome}}).
10
-
11
+ This repository contains content for my personal website, built with [Portosaur]({{portoHome}}).
11
12
  It serves as my:
12
13
 
13
14
  - **Portfolio**: Highlighting my projects, skills, and professional experience.
14
15
  - **Digital Notebook**: A collection of notes, snippets, and ongoing learnings.
15
16
  - **Blog**: Long-form articles and deep dives.
16
17
 
18
+ ## Repository Structure
19
+
20
+ - `config.yml` — The configuration for my site.
21
+ - `notes/` — Markdown/MDX files for my digital Notebook.
22
+ - `blog/` — Articles and blog posts.
23
+ - `static/` — Static assets like images and my resume.
24
+
17
25
  ## Local Development
18
26
 
19
27
  If you'd like to explore the code or run this site locally:
@@ -21,38 +29,21 @@ If you'd like to explore the code or run this site locally:
21
29
  1. **Clone the repository:**
22
30
 
23
31
  ```bash
24
- git clone https://github.com/<MyUserName>/{{projectName}}.git
32
+ git clone {{cloneUrl}}
25
33
  cd {{projectName}}
26
34
  ```
27
35
 
28
- 2. **Install dependencies:**
36
+ 2. **Start the development server:**
29
37
 
30
38
  ```bash
31
39
  bun install
32
- ```
33
-
34
- _(npm, yarn, or pnpm work too!)_
35
-
36
- 3. **Start the development server:**
37
-
38
- ```bash
39
40
  bun run dev
40
41
  ```
41
42
 
42
- 4. **Build for production:**
43
- ```bash
44
- bun run build
45
- ```
46
-
47
- ## Structure
48
-
49
- - `config.js` — The configuration for my site.
50
- - `notes/` — Markdown/MDX files for my digital Notebook.
51
- - `blog/` — Articles and blog posts.
52
- - `static/` — Static assets like images and my resume.
53
-
54
43
  ---
55
44
 
56
- <br/>
45
+ <div align="center">
57
46
 
58
47
  _Powered by [Portosaur]({{portoHome}})_
48
+
49
+ </div>