@storm-software/workspace-tools
Version:
Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.
102 lines (95 loc) • 3.61 kB
TypeScript
import { S as StormWorkspaceConfig } from './types-C3URiht7.js';
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,
}
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 BuildOptions as B, type Entry as E, ProjectTagVariant as P, type TsupContext as T, type WorkspaceToolHooks as W, type BaseWorkspaceToolOptions as a, type BaseExecutorOptions as b, type BaseExecutorResult as c, type BaseGeneratorOptions as d, type BaseGeneratorResult as e, ProjectTagLanguageValue as f, ProjectTagTypeValue as g, ProjectTagDistStyleValue as h, ProjectTagPlatformValue as i, ProjectTagRegistryValue as j, type BaseExecutorSchema as k, type BaseGeneratorSchema as l };