@portosaur/cli 0.9.1 → 0.9.3
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 +4 -4
- package/src/commands/schema.mjs +4 -0
- package/src/templates/config.yml +10 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portosaur/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
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.
|
|
30
|
-
"@portosaur/logger": "^0.9.
|
|
31
|
-
"@portosaur/wizard": "^0.9.
|
|
29
|
+
"@portosaur/core": "^0.9.3",
|
|
30
|
+
"@portosaur/logger": "^0.9.3",
|
|
31
|
+
"@portosaur/wizard": "^0.9.3",
|
|
32
32
|
"commander": "^13.1.0",
|
|
33
33
|
"js-yaml": "^4.1.1"
|
|
34
34
|
}
|
package/src/commands/schema.mjs
CHANGED
|
@@ -230,6 +230,10 @@ export async function schemaCommand(options = {}) {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
const outDir = path.dirname(OUTPUT_FILE);
|
|
234
|
+
if (!fs.existsSync(outDir)) {
|
|
235
|
+
fs.mkdirSync(outDir, { recursive: true });
|
|
236
|
+
}
|
|
233
237
|
fs.writeFileSync(OUTPUT_FILE, JSON.stringify(discoveredSchema, null, 2));
|
|
234
238
|
logger.success(`Schema written to: ${OUTPUT_FILE}`);
|
|
235
239
|
} catch (error) {
|
package/src/templates/config.yml
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
# yaml-language-server: $schema=https://soymadip.github.io/portosaur/
|
|
1
|
+
# yaml-language-server: $schema=https://soymadip.github.io/portosaur/user/config/schema.json
|
|
2
2
|
#
|
|
3
3
|
# Portosaur Project Configuration
|
|
4
4
|
# Check full Config Docs: https://soymadip.is-a.dev/portosaur/guide/config
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
# User variables for use in your values as {{vars.key}}
|
|
8
|
+
vars:
|
|
9
|
+
twitter: "@{{userName}}"
|
|
10
|
+
github: "{{userName}}"
|
|
11
|
+
linkedin: "{{userName}}"
|
|
5
12
|
|
|
6
13
|
# Site Metadata & SEO
|
|
7
14
|
site:
|
|
8
|
-
favicon: null # By default, generates from {{home_page.hero.profile_pic}}
|
|
9
|
-
|
|
10
|
-
# Auto set if deploying in Github/GitLab Pages
|
|
11
15
|
url: "auto"
|
|
12
16
|
path: "auto"
|
|
13
17
|
|
|
@@ -29,7 +33,7 @@ home_page:
|
|
|
29
33
|
url: "https://www.linked.com/in/{{userName}}"
|
|
30
34
|
|
|
31
35
|
- name: "GitHub"
|
|
32
|
-
icon: "githubalt"
|
|
36
|
+
icon: "githubalt" # TODO: needs documentation
|
|
33
37
|
url: "https://github.com/{{userName}}"
|
|
34
38
|
|
|
35
39
|
- name: "Telegram"
|
|
@@ -37,7 +41,7 @@ home_page:
|
|
|
37
41
|
|
|
38
42
|
about:
|
|
39
43
|
enable: true
|
|
40
|
-
image:
|
|
44
|
+
image: "{{home_page.hero.profile_pic}}"
|
|
41
45
|
bio:
|
|
42
46
|
- "I'm a {{home_page.hero.profession}} who loves turning ideas into reality."
|
|
43
47
|
- "With a background in computer science and a passion for design, I bridge the gap between aesthetics and functionality."
|
|
@@ -125,17 +129,3 @@ tasks:
|
|
|
125
129
|
- title: "Build the future"
|
|
126
130
|
status: "done"
|
|
127
131
|
desc: "Implementing the core framework."
|
|
128
|
-
|
|
129
|
-
# Functional Tools [TODO]
|
|
130
|
-
tools:
|
|
131
|
-
link_shortener:
|
|
132
|
-
enable: false
|
|
133
|
-
deploy_path: "/l"
|
|
134
|
-
short_links:
|
|
135
|
-
"example": "https://example.com"
|
|
136
|
-
|
|
137
|
-
# Custom variables for use in your content as {{custom.key}}
|
|
138
|
-
custom:
|
|
139
|
-
twitter: "@{{userName}}"
|
|
140
|
-
github: "{{userName}}"
|
|
141
|
-
linkedin: "{{userName}}"
|