rtgl 0.0.11-rc21 → 0.0.11-rc22

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 +10 -3
  2. package/package.json +3 -3
package/cli.js CHANGED
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env node
2
-
3
1
  import { build, scaffold, watch, examples } from "@rettangoli/fe/cli";
4
2
  import { generate, report, accept } from "@rettangoli/vt/cli";
5
3
  import { buildSite, watchSite, screenshotCommand } from "@rettangoli/sites/cli";
@@ -244,13 +242,22 @@ sitesCommand
244
242
  .description("Build the site")
245
243
  .option("-r, --rootDir <path>", "Path to root directory", "./")
246
244
  .option("-o, --outputPath <path>", "Path to destination directory", "./_site")
245
+ .option("-s, --screenshots", "Capture screenshots after build", false)
247
246
  .action(async (options) => {
248
247
  console.log("Building site with options:", options);
249
- buildSite({
248
+ await buildSite({
250
249
  rootDir: options.rootDir,
251
250
  outputPath: options.outputPath,
252
251
  });
253
252
  console.log("Build completed successfully!");
253
+
254
+ // If screenshots option is enabled, run screenshot command
255
+ if (options.screenshots) {
256
+ console.log("Capturing screenshots...");
257
+ await screenshotCommand({
258
+ rootDir: options.rootDir,
259
+ });
260
+ }
254
261
  });
255
262
 
256
263
  sitesCommand
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtgl",
3
- "version": "0.0.11-rc21",
3
+ "version": "0.0.11-rc22",
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-rc14",
51
- "@rettangoli/sites": "0.2.0-rc6",
51
+ "@rettangoli/sites": "0.2.0-rc7",
52
52
  "@rettangoli/vt": "0.0.2-rc3",
53
- "@rettangoli/ui": "0.1.2-rc32"
53
+ "@rettangoli/ui": "0.1.2-rc33"
54
54
  }
55
55
  }