UNPKG

@storm-software/workspace-tools

Version:

Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.

117 lines (110 loc) 4.17 kB
import { S as StormWorkspaceConfig } from './types-B0erLKyc.mjs'; import { Options } from 'tsup'; // Generated by @storm-software/untyped // Do not edit this file directly interface BaseExecutorSchema { /** * Output Path * * The output path for the build * * @default "dist/{projectRoot}" * * @format path */ outputPath?: string, } // Generated by @storm-software/untyped // Do not edit this file directly interface BaseGeneratorSchema { /** * Directory * * The directory to create the library in * */ directory?: string, } declare enum TypescriptProjectLinkingType { ALIAS = "alias", REFERENCE = "reference" } interface BaseTypescriptPluginOptions { /** * The project linking type to use for TypeScript projects. * * @see https://nx.dev/docs/concepts/typescript-project-linking * @see https://nx.dev/docs/technologies/typescript/guides/switch-to-workspaces-project-references * * @defaultValue "reference" */ projectLinks?: TypescriptProjectLinkingType; } interface TsupContext { projectRoot: string; sourceRoot: string; projectName: string; main: string; } type BuildOptions = Options; type Entry = string | string[] | Record<string, string>; interface WorkspaceToolHooks<TSchema = any> { applyDefaultOptions?: (options: Partial<TSchema>, config?: StormWorkspaceConfig) => Promise<TSchema> | TSchema; preProcess?: (options: TSchema, config?: StormWorkspaceConfig) => Promise<void> | void; postProcess?: (config?: StormWorkspaceConfig) => Promise<void> | void; } interface BaseWorkspaceToolOptions<TSchema = any> { skipReadingConfig?: boolean; hooks?: WorkspaceToolHooks<TSchema>; } type BaseExecutorOptions<TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = BaseWorkspaceToolOptions<TExecutorSchema>; interface BaseExecutorResult { error?: Error; success?: boolean; } type BaseGeneratorOptions<TGeneratorSchema extends BaseGeneratorSchema = BaseGeneratorSchema> = BaseWorkspaceToolOptions<TGeneratorSchema>; interface BaseGeneratorResult extends Record<string, any> { error?: Error; success?: boolean; data?: any; } type ProjectTagVariant = "language" | "type" | "dist-style" | "provider" | "platform" | "registry" | "plugin"; declare const ProjectTagVariant: { LANGUAGE: ProjectTagVariant; TYPE: ProjectTagVariant; DIST_STYLE: ProjectTagVariant; PROVIDER: ProjectTagVariant; PLATFORM: ProjectTagVariant; REGISTRY: ProjectTagVariant; PLUGIN: ProjectTagVariant; }; type ProjectTagLanguageValue = "typescript" | "rust"; declare const ProjectTagLanguageValue: { TYPESCRIPT: ProjectTagLanguageValue; RUST: ProjectTagLanguageValue; }; type ProjectTagTypeValue = "library" | "application"; declare const ProjectTagTypeValue: { LIBRARY: ProjectTagTypeValue; APPLICATION: ProjectTagTypeValue; }; type ProjectTagDistStyleValue = "normal" | "clean"; declare const ProjectTagDistStyleValue: { NORMAL: ProjectTagDistStyleValue; CLEAN: ProjectTagDistStyleValue; }; type ProjectTagPlatformValue = "node" | "browser" | "neutral" | "worker"; declare const ProjectTagPlatformValue: { NODE: ProjectTagPlatformValue; BROWSER: ProjectTagPlatformValue; NEUTRAL: ProjectTagPlatformValue; WORKER: ProjectTagPlatformValue; }; type ProjectTagRegistryValue = "cargo" | "npm" | "container" | "cyclone"; declare const ProjectTagRegistryValue: { CARGO: ProjectTagRegistryValue; NPM: ProjectTagRegistryValue; CONTAINER: ProjectTagRegistryValue; CYCLONE: ProjectTagRegistryValue; }; export { type BaseExecutorOptions as B, type Entry as E, ProjectTagDistStyleValue as P, type TsupContext as T, type WorkspaceToolHooks as W, type BaseExecutorResult as a, type BaseGeneratorOptions as b, type BaseGeneratorResult as c, type BaseTypescriptPluginOptions as d, type BaseWorkspaceToolOptions as e, type BuildOptions as f, ProjectTagLanguageValue as g, ProjectTagPlatformValue as h, ProjectTagRegistryValue as i, ProjectTagTypeValue as j, ProjectTagVariant as k, TypescriptProjectLinkingType as l, type BaseExecutorSchema as m, type BaseGeneratorSchema as n };