kaddidlehopper 0.1.0 → 0.1.1
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/dist/cli.js +4 -3
- package/package.json +1 -1
- package/src/cli.ts +7 -3
package/dist/cli.js
CHANGED
|
@@ -90,7 +90,8 @@ export function cli({ name, appName, defaultFramework, forcedMode, forcedAddOns
|
|
|
90
90
|
.option('--no-git', 'do not create a git repository')
|
|
91
91
|
.option('--target-dir <path>', 'the target directory for the application root')
|
|
92
92
|
.option('-f, --force', 'force project creation even if the target directory is not empty', false)
|
|
93
|
-
.option('--bare-bones', 'create minimal scaffolding for LLM modification',
|
|
93
|
+
.option('--bare-bones', 'create minimal scaffolding for LLM modification', true)
|
|
94
|
+
.option('--no-bare-bones', 'create full scaffolding (not minimal)');
|
|
94
95
|
program.action(async (projectName, options) => {
|
|
95
96
|
const framework = getFrameworkByName(defaultFramework);
|
|
96
97
|
if (!framework) {
|
|
@@ -224,13 +225,13 @@ export function cli({ name, appName, defaultFramework, forcedMode, forcedAddOns
|
|
|
224
225
|
chosenAddOns,
|
|
225
226
|
addOnOptions: {
|
|
226
227
|
...populateAddOnOptionsDefaults(chosenAddOns),
|
|
227
|
-
project: { bareBones: options.bareBones ??
|
|
228
|
+
project: { bareBones: options.bareBones ?? true },
|
|
228
229
|
},
|
|
229
230
|
};
|
|
230
231
|
environment.intro(`Creating a new ${appName} app in ${resolvedProjectName}...`);
|
|
231
232
|
await createApp(environment, finalOptions);
|
|
232
233
|
// Delete files specified in bareBones.deleteFiles for each add-on when in bare-bones mode
|
|
233
|
-
if (options.bareBones) {
|
|
234
|
+
if (options.bareBones !== false) {
|
|
234
235
|
for (const addOn of chosenAddOns) {
|
|
235
236
|
const addOnWithBareBones = addOn;
|
|
236
237
|
if (addOnWithBareBones.bareBones?.deleteFiles) {
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -153,7 +153,11 @@ export function cli({
|
|
|
153
153
|
.option(
|
|
154
154
|
'--bare-bones',
|
|
155
155
|
'create minimal scaffolding for LLM modification',
|
|
156
|
-
|
|
156
|
+
true,
|
|
157
|
+
)
|
|
158
|
+
.option(
|
|
159
|
+
'--no-bare-bones',
|
|
160
|
+
'create full scaffolding (not minimal)',
|
|
157
161
|
)
|
|
158
162
|
|
|
159
163
|
program.action(async (projectName: string, options: CliOptions) => {
|
|
@@ -312,7 +316,7 @@ export function cli({
|
|
|
312
316
|
chosenAddOns,
|
|
313
317
|
addOnOptions: {
|
|
314
318
|
...populateAddOnOptionsDefaults(chosenAddOns),
|
|
315
|
-
project: { bareBones: options.bareBones ??
|
|
319
|
+
project: { bareBones: options.bareBones ?? true },
|
|
316
320
|
},
|
|
317
321
|
}
|
|
318
322
|
|
|
@@ -320,7 +324,7 @@ export function cli({
|
|
|
320
324
|
await createApp(environment, finalOptions)
|
|
321
325
|
|
|
322
326
|
// Delete files specified in bareBones.deleteFiles for each add-on when in bare-bones mode
|
|
323
|
-
if (options.bareBones) {
|
|
327
|
+
if (options.bareBones !== false) {
|
|
324
328
|
for (const addOn of chosenAddOns) {
|
|
325
329
|
const addOnWithBareBones = addOn as typeof addOn & {
|
|
326
330
|
bareBones?: { deleteFiles?: Array<string> }
|