rtgl 0.0.11-rc11 → 0.0.11-rc13
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 +9 -8
- 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 {
|
|
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";
|
|
@@ -55,6 +55,7 @@ feCommand
|
|
|
55
55
|
.command("build")
|
|
56
56
|
.description("Build UI components")
|
|
57
57
|
.option("-o, --outfile <path>", "The output file")
|
|
58
|
+
.option("-d, --development", "Development mode (no minification, no source maps)")
|
|
58
59
|
.addHelpText(
|
|
59
60
|
"after",
|
|
60
61
|
`
|
|
@@ -63,6 +64,8 @@ Examples:
|
|
|
63
64
|
$ rettangoli fe build
|
|
64
65
|
$ rettangoli fe build --outfile ./dist/bundle.js
|
|
65
66
|
$ rettangoli fe build -o ./public/js/main.js
|
|
67
|
+
$ rettangoli fe build --development
|
|
68
|
+
$ rettangoli fe build -d -o ./dist/dev.js
|
|
66
69
|
`,
|
|
67
70
|
)
|
|
68
71
|
.action((options) => {
|
|
@@ -231,15 +234,13 @@ const sitesCommand = program.command("sites").description("Rettangoli Sites");
|
|
|
231
234
|
sitesCommand
|
|
232
235
|
.command("build")
|
|
233
236
|
.description("Build the site")
|
|
234
|
-
.option("-r, --
|
|
235
|
-
.option("-
|
|
236
|
-
.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")
|
|
237
239
|
.action(async (options) => {
|
|
238
240
|
console.log("Building site with options:", options);
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
outputPath: options.output,
|
|
241
|
+
buildSite({
|
|
242
|
+
rootDir: options.rootDir,
|
|
243
|
+
outputPath: options.outputPath,
|
|
243
244
|
});
|
|
244
245
|
console.log("Build completed successfully!");
|
|
245
246
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rtgl",
|
|
3
|
-
"version": "0.0.11-
|
|
3
|
+
"version": "0.0.11-rc13",
|
|
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-
|
|
51
|
-
"@rettangoli/sites": "0.
|
|
50
|
+
"@rettangoli/fe": "0.0.7-rc12",
|
|
51
|
+
"@rettangoli/sites": "0.2.0-rc1",
|
|
52
52
|
"@rettangoli/vt": "0.0.2-rc3",
|
|
53
|
-
"@rettangoli/ui": "0.1.2-
|
|
53
|
+
"@rettangoli/ui": "0.1.2-rc23"
|
|
54
54
|
}
|
|
55
55
|
}
|