rtgl 0.0.11-rc12 → 0.0.11-rc13
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/cli.js +6 -8
- package/package.json +3 -3
package/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { build, scaffold, watch, examples } from "@rettangoli/fe/cli";
|
|
4
4
|
import { generate, report, accept } from "@rettangoli/vt/cli";
|
|
5
|
-
import {
|
|
5
|
+
import { buildSite } from "@rettangoli/sites/cli";
|
|
6
6
|
import { buildSvg } from "@rettangoli/ui/cli";
|
|
7
7
|
import { Command } from "commander";
|
|
8
8
|
import { readFileSync, existsSync } from "fs";
|
|
@@ -234,15 +234,13 @@ const sitesCommand = program.command("sites").description("Rettangoli Sites");
|
|
|
234
234
|
sitesCommand
|
|
235
235
|
.command("build")
|
|
236
236
|
.description("Build the site")
|
|
237
|
-
.option("-r, --
|
|
238
|
-
.option("-
|
|
239
|
-
.option("-o, --output <path>", "Path to destination directory", "./_site")
|
|
237
|
+
.option("-r, --rootDir <path>", "Path to root directory", "./")
|
|
238
|
+
.option("-o, --outputPath <path>", "Path to destination directory", "./_site")
|
|
240
239
|
.action(async (options) => {
|
|
241
240
|
console.log("Building site with options:", options);
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
outputPath: options.output,
|
|
241
|
+
buildSite({
|
|
242
|
+
rootDir: options.rootDir,
|
|
243
|
+
outputPath: options.outputPath,
|
|
246
244
|
});
|
|
247
245
|
console.log("Build completed successfully!");
|
|
248
246
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rtgl",
|
|
3
|
-
"version": "0.0.11-
|
|
3
|
+
"version": "0.0.11-rc13",
|
|
4
4
|
"description": "CLI tool for Rettangoli - A frontend framework and development toolkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"commander": "^14.0.0",
|
|
49
49
|
"js-yaml": "^4.1.0",
|
|
50
50
|
"@rettangoli/fe": "0.0.7-rc12",
|
|
51
|
-
"@rettangoli/sites": "0.
|
|
51
|
+
"@rettangoli/sites": "0.2.0-rc1",
|
|
52
52
|
"@rettangoli/vt": "0.0.2-rc3",
|
|
53
|
-
"@rettangoli/ui": "0.1.2-
|
|
53
|
+
"@rettangoli/ui": "0.1.2-rc23"
|
|
54
54
|
}
|
|
55
55
|
}
|