rtgl 0.0.11-rc21 → 0.0.11-rc23

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 -1
  2. package/package.json +3 -3
package/cli.js CHANGED
@@ -244,13 +244,22 @@ sitesCommand
244
244
  .description("Build the site")
245
245
  .option("-r, --rootDir <path>", "Path to root directory", "./")
246
246
  .option("-o, --outputPath <path>", "Path to destination directory", "./_site")
247
+ .option("-s, --screenshots", "Capture screenshots after build", false)
247
248
  .action(async (options) => {
248
249
  console.log("Building site with options:", options);
249
- buildSite({
250
+ await buildSite({
250
251
  rootDir: options.rootDir,
251
252
  outputPath: options.outputPath,
252
253
  });
253
254
  console.log("Build completed successfully!");
255
+
256
+ // If screenshots option is enabled, run screenshot command
257
+ if (options.screenshots) {
258
+ console.log("Capturing screenshots...");
259
+ await screenshotCommand({
260
+ rootDir: options.rootDir,
261
+ });
262
+ }
254
263
  });
255
264
 
256
265
  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-rc23",
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
  }