rtgl 0.0.11-rc15 → 0.0.11-rc17

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 -2
  2. package/package.json +3 -3
package/cli.js CHANGED
@@ -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("-s, --setup-path <path>", "Custom setup file path")
58
59
  .option("-d, --development", "Development mode (no minification, no source maps)")
59
60
  .addHelpText(
60
61
  "after",
@@ -66,6 +67,8 @@ Examples:
66
67
  $ rettangoli fe build -o ./public/js/main.js
67
68
  $ rettangoli fe build --development
68
69
  $ rettangoli fe build -d -o ./dist/dev.js
70
+ $ rettangoli fe build -s src/setup.tauri.js
71
+ $ rettangoli fe build --setup-path src/setup.web.js
69
72
  `,
70
73
  )
71
74
  .action((options) => {
@@ -89,7 +92,8 @@ Examples:
89
92
 
90
93
  // Pass dirs, setup, and outfile from config
91
94
  options.dirs = config.fe.dirs;
92
- options.setup = config.fe.setup || "setup.js";
95
+ // Use setup-path if provided, otherwise use config setup
96
+ options.setup = options.setupPath || config.fe.setup || "setup.js";
93
97
 
94
98
  // Use config outfile if not specified via CLI option
95
99
  if (!options.outfile && config.fe.outfile) {
@@ -128,6 +132,7 @@ feCommand
128
132
  .command("watch")
129
133
  .description("Watch for changes")
130
134
  .option("-p, --port <port>", "The port to use", parseInt, 3001)
135
+ .option("-s, --setup-path <path>", "Custom setup file path")
131
136
  .addHelpText(
132
137
  "after",
133
138
  `
@@ -136,6 +141,8 @@ Examples:
136
141
  $ rettangoli fe watch
137
142
  $ rettangoli fe watch --port 8080
138
143
  $ rettangoli fe watch -p 4000
144
+ $ rettangoli fe watch -s src/setup.tauri.js
145
+ $ rettangoli fe watch --setup-path src/setup.web.js
139
146
  `,
140
147
  )
141
148
  .action((options) => {
@@ -159,7 +166,8 @@ Examples:
159
166
 
160
167
  // Pass dirs, setup, and outfile from config
161
168
  options.dirs = config.fe.dirs;
162
- options.setup = config.fe.setup || "setup.js";
169
+ // Use setup-path if provided, otherwise use config setup
170
+ options.setup = options.setupPath || config.fe.setup || "setup.js";
163
171
 
164
172
  // Use config outfile if not specified via CLI option
165
173
  if (!options.outfile && config.fe.outfile) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtgl",
3
- "version": "0.0.11-rc15",
3
+ "version": "0.0.11-rc17",
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-rc1",
51
+ "@rettangoli/sites": "0.2.0-rc2",
52
52
  "@rettangoli/vt": "0.0.2-rc3",
53
- "@rettangoli/ui": "0.1.2-rc27"
53
+ "@rettangoli/ui": "0.1.2-rc30"
54
54
  }
55
55
  }