rtgl 2.0.1 → 2.0.2
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 +8 -0
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -417,6 +417,10 @@ feCommand
|
|
|
417
417
|
.description("Watch for changes")
|
|
418
418
|
.option("-p, --port <port>", "The port to use", parsePortOption, 3001)
|
|
419
419
|
.option("-s, --setup-path <path>", "Custom setup file path")
|
|
420
|
+
.option(
|
|
421
|
+
"--public-dir <path>",
|
|
422
|
+
"Directory to serve as untransformed static assets",
|
|
423
|
+
)
|
|
420
424
|
.addHelpText(
|
|
421
425
|
"after",
|
|
422
426
|
`
|
|
@@ -427,6 +431,7 @@ Examples:
|
|
|
427
431
|
$ rettangoli fe watch -p 4000
|
|
428
432
|
$ rettangoli fe watch -s src/setup.tauri.js
|
|
429
433
|
$ rettangoli fe watch --setup-path src/setup.web.js
|
|
434
|
+
$ rettangoli fe watch --public-dir static
|
|
430
435
|
`,
|
|
431
436
|
)
|
|
432
437
|
.action(async (options) => {
|
|
@@ -458,6 +463,9 @@ Examples:
|
|
|
458
463
|
if (!options.outfile && config.fe.outfile) {
|
|
459
464
|
options.outfile = config.fe.outfile;
|
|
460
465
|
}
|
|
466
|
+
if (options.publicDir === undefined && config.fe.publicDir !== undefined) {
|
|
467
|
+
options.publicDir = config.fe.publicDir;
|
|
468
|
+
}
|
|
461
469
|
|
|
462
470
|
await watch(options);
|
|
463
471
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rtgl",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "CLI tool for Rettangoli - A frontend framework and development toolkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"js-yaml": "^4.1.0",
|
|
50
50
|
"@rettangoli/check": "0.1.2",
|
|
51
51
|
"@rettangoli/be": "2.0.0",
|
|
52
|
-
"@rettangoli/fe": "1.2.
|
|
52
|
+
"@rettangoli/fe": "1.2.2",
|
|
53
53
|
"@rettangoli/sites": "1.2.0",
|
|
54
54
|
"@rettangoli/vt": "1.0.5",
|
|
55
55
|
"@rettangoli/ui": "1.4.2"
|