/** * Color palette template based around TailwindCSS colors. */ type BaseScoreColor = { '50': string; '100': string; '200': string; '300': string; '400': string; '500': string; '600': string; '700': string; '800': string; '900': string; '950': string; }; type BaseScoreCommand = string | { /** Whether the command should be run inside the package path. */ package?: boolean; /** The npm command to run. */ npm: string; } | { /** Whether the command should be run inside the package path. */ package?: boolean; /** The shell command to run. */ shell: string; } | { fn: (() => Promise); }; type BaseScoreConfig = { port?: number; packages: Record dev("app") // Runs a function. * * // Object usage * "command": {shell: "cd ./apps/example-app && pnpm run dev"} // Runs a shell command inside the root. * "command": {npm: "example-app:dev"} // Runs an npm command inside the root. * "command": {package: true, shell: "pnpm run dev"} // Runs a shell command inside the package path. * "command": {package: true, npm: "dev"} // Runs an npm command inside the package path. * ``` */ command: BaseScoreCommand; /** An iconify icon to display on the script button. */ icon?: string; }[]; }>; }; type CommandOptions = /** @deprecated Use `{dynamic: ...}` instead. */ { script: BaseScoreConfig['packages'][string]['scripts'][number]; } /** @deprecated Use `{dynamic: ...}` instead. */ | { command: BaseScoreCommand | undefined; } | { dynamic: BaseScoreCommand | BaseScoreConfig['packages'][string]['scripts'][number] | undefined; }; /** * Receives a user-friendly name for the command. */ declare const getCommandDisplayName: (options: CommandOptions) => string; /** * Receives a command object and returns a shell command to run it. */ declare const getCommandShellScript: (options: CommandOptions, packagePath: string) => string; export { getCommandShellScript as c, getCommandDisplayName as g }; export type { BaseScoreConfig as B, BaseScoreColor as a, BaseScoreCommand as b };