@zyrab/domo-ssg 0.5.0 β 0.5.1
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/file-utils.js +2 -2
- package/src/index.js +1 -1
- package/src/route-traversal.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zyrab/domo-ssg",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "A Static Site Generator (SSG) for Domo-based projects.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"author": "Zyrab",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@zyrab/domo": "
|
|
21
|
-
"@zyrab/domo-
|
|
22
|
-
"@zyrab/domo
|
|
20
|
+
"@zyrab/domo-og": "0.1.3",
|
|
21
|
+
"@zyrab/domo-router": "^0.2.0",
|
|
22
|
+
"@zyrab/domo": "^1.3.0"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
package/src/file-utils.js
CHANGED
|
@@ -42,9 +42,9 @@ export function cleanOutputDir(outputDir, exclude) {
|
|
|
42
42
|
const entryPath = path.join(outputDir, entry);
|
|
43
43
|
fs.rmSync(entryPath, { recursive: true, force: true });
|
|
44
44
|
}
|
|
45
|
-
console.log(
|
|
45
|
+
console.log(`π Cleaned output directory: ${outputDir}`);
|
|
46
46
|
} else {
|
|
47
47
|
fs.mkdirSync(outputDir, { recursive: true });
|
|
48
|
-
console.log(
|
|
48
|
+
console.log(`π Created output directory: ${outputDir}`);
|
|
49
49
|
}
|
|
50
50
|
}
|
package/src/index.js
CHANGED
|
@@ -14,7 +14,7 @@ async function main() {
|
|
|
14
14
|
|
|
15
15
|
console.log("π Starting Domo SSG build...");
|
|
16
16
|
console.log(`π Output directory: ${config.outDir}`);
|
|
17
|
-
console.log(`πΊοΈ
|
|
17
|
+
console.log(`πΊοΈ Routes file: ${config.routesFile}`);
|
|
18
18
|
console.log(`π§© Layout file: ${config.layout}`);
|
|
19
19
|
|
|
20
20
|
// 1. Clean the output directory
|
package/src/route-traversal.js
CHANGED
|
@@ -56,7 +56,7 @@ export async function buildRoutes(routes, renderLayout, parentPath = "", props =
|
|
|
56
56
|
await buildRoutes(routeNode, renderLayout, currentRoute, { ...props });
|
|
57
57
|
}
|
|
58
58
|
if (!routeNode.component && Object.keys(routeNode).length > 0) {
|
|
59
|
-
console.warn(`β οΈ
|
|
59
|
+
console.warn(`β οΈ Route "${currentRoute}" has no component but contains other data.`);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|