rtgl 0.0.36 → 0.0.38
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 +13 -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 { buildSite, watchSite, screenshotCommand } from "@rettangoli/sites/cli";
|
|
5
|
+
import { buildSite, watchSite, screenshotCommand, initSite } 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";
|
|
@@ -197,7 +197,7 @@ vtCommand
|
|
|
197
197
|
.option("--skip-screenshots", "Skip screenshot generation")
|
|
198
198
|
.option("--screenshot-wait-time <time>", "Wait time between screenshots", parseInt, 0)
|
|
199
199
|
.option("--concurrency <number>", "Number of concurrent screenshots", parseInt, 12)
|
|
200
|
-
.option("--
|
|
200
|
+
.option("--wait-event <name>", "Custom event name to wait for instead of networkidle (e.g., vt:ready)")
|
|
201
201
|
.action((options) => {
|
|
202
202
|
console.log(`rtgl v${packageJson.version}`);
|
|
203
203
|
const config = readConfig();
|
|
@@ -250,6 +250,17 @@ vtCommand
|
|
|
250
250
|
|
|
251
251
|
const sitesCommand = program.command("sites").description("Rettangoli Sites");
|
|
252
252
|
|
|
253
|
+
sitesCommand
|
|
254
|
+
.command("init <project-name>")
|
|
255
|
+
.description("Initialize a new site from template")
|
|
256
|
+
.option("-t, --template <name>", "Template to use", "default")
|
|
257
|
+
.action((projectName, options) => {
|
|
258
|
+
initSite({
|
|
259
|
+
projectName,
|
|
260
|
+
template: options.template,
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
|
|
253
264
|
sitesCommand
|
|
254
265
|
.command("build")
|
|
255
266
|
.description("Build the site")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rtgl",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
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.14",
|
|
51
|
-
"@rettangoli/sites": "0.2.
|
|
52
|
-
"@rettangoli/vt": "0.0.
|
|
53
|
-
"@rettangoli/ui": "0.1.
|
|
51
|
+
"@rettangoli/sites": "0.2.7",
|
|
52
|
+
"@rettangoli/vt": "0.0.14",
|
|
53
|
+
"@rettangoli/ui": "0.1.31"
|
|
54
54
|
}
|
|
55
55
|
}
|