UNPKG

sv

Version:

A command line interface (CLI) for creating and maintaining Svelte applications

30 lines (29 loc) 2.15 kB
import { A as StringQuestion, C as BooleanQuestion, D as OptionValues, E as OptionDefinition, O as Question, S as BaseQuestion, T as NumberQuestion, _ as SvApi, a as Addon, b as Workspace, c as AddonReference, d as ConditionDefinition, f as ConfiguredAddon, g as SetupResult, h as PreparedAddon, i as add, j as officialAddons, k as SelectQuestion, l as AddonResult, m as OptionBuilder, n as InstallOptions, o as AddonDefinition, p as LoadedAddon, r as OptionMap, s as AddonInput, t as AddonMap, u as AddonSource, v as defineAddon, w as MultiSelectQuestion, x as WorkspaceOptions, y as defineAddonOptions } from "../engine-DcLtEbd7.mjs"; //#region src/create/index.d.ts type TemplateType = (typeof templateTypes)[number]; type LanguageType = (typeof languageTypes)[number]; declare const templateTypes: readonly ["minimal", "demo", "library", "addon", "svelte"]; declare const languageTypes: readonly ["typescript", "checkjs", "none"]; type Options = { cwd: string; name: string; template: TemplateType; types: LanguageType; }; //#endregion //#region src/core/processors.d.ts type FileEditor = Workspace & { content: string; }; type FileType = { name: (options: Workspace) => string; condition?: ConditionDefinition; content: (editor: FileEditor) => string; }; //#endregion //#region src/index.d.ts declare function create(options: Options): void; /** @deprecated use `create({ cwd, ...options })` instead. */ declare function create(cwd: string, options: Omit<Options, "cwd">): void; //#endregion export { type Addon, type AddonDefinition, type AddonInput, type AddonMap, type AddonReference, type AddonResult, type AddonSource, type BaseQuestion, type BooleanQuestion, type ConfiguredAddon, type FileEditor, type FileType, type InstallOptions, type LanguageType, type LoadedAddon, type MultiSelectQuestion, type NumberQuestion, type OptionBuilder, type OptionDefinition, type OptionMap, type OptionValues, type PreparedAddon, type Question, type SelectQuestion, type SetupResult, type StringQuestion, type SvApi, type TemplateType, type Workspace, type WorkspaceOptions, add, create, defineAddon, defineAddonOptions, officialAddons };