rtgl 0.0.11-rc12 → 0.0.11-rc14

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.
Files changed (2) hide show
  1. package/cli.js +6 -8
  2. package/package.json +4 -4
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 { copyPagesToSite } from "@rettangoli/sites/cli";
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, --resources <path>", "Path to resources directory", "./sitic")
238
- .option("-p, --pages <path>", "Path to pages directory", "./pages")
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
- await copyPagesToSite({
243
- resourcesPath: options.resources,
244
- pagesPath: options.pages,
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-rc12",
3
+ "version": "0.0.11-rc14",
4
4
  "description": "CLI tool for Rettangoli - A frontend framework and development toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -47,9 +47,9 @@
47
47
  "dependencies": {
48
48
  "commander": "^14.0.0",
49
49
  "js-yaml": "^4.1.0",
50
- "@rettangoli/fe": "0.0.7-rc12",
51
- "@rettangoli/sites": "0.1.1",
50
+ "@rettangoli/fe": "0.0.7-rc13",
51
+ "@rettangoli/sites": "0.2.0-rc1",
52
52
  "@rettangoli/vt": "0.0.2-rc3",
53
- "@rettangoli/ui": "0.1.2-rc22"
53
+ "@rettangoli/ui": "0.1.2-rc23"
54
54
  }
55
55
  }