UNPKG

@schemifyjs/core

Version:

Core module of the SchemifyJS CLI. Provides reusable functions such as scaffolding, template handling, and general utilities.

16 lines (15 loc) 648 B
import { askApplicationOptions } from '../prompts/application/application.prompt.js'; import { ApplicationScaffolder } from '@schemifyjs/schematics'; export async function runNewCommand(newSchemify) { // Ask the rest options from the user const applicationOptions = await askApplicationOptions(); // Merge the options with the newSchemify object const schemify = { name: newSchemify.name, framework: applicationOptions.framework, packageManager: applicationOptions.packageManager }; // execute scaffolder const scaffolder = new ApplicationScaffolder(); await scaffolder.scaffold(schemify); }