import { ModelsEnvinronment } from './models-environment'; import { ConfigModels } from 'tnp-config'; export declare namespace ModelsDev { type InitArgOptions = { skipNodeModules?: boolean; recrusive?: boolean; branding?: boolean; skipSmartContainerDistInit?: boolean; /** * init without installing node modules */ struct?: boolean; websql?: boolean; env: ConfigModels.EnvironmentName; }; interface ProjectForAutoBuild { cwd: string; command: string; commandWatch: string; args?: string[]; } interface ProjectForAutoRelease { cwd: string; command: string; args?: string[]; } interface AutoActionsUser { builds?: ProjectForAutoBuild[]; autoreleases?: ProjectForAutoRelease[]; } interface ReleaseOptions { prod?: boolean; useTempFolder?: boolean; uglify?: boolean; obscure?: boolean; includeNodeModules?: boolean; nodts?: boolean; args?: string; /** * quick automatic release of lib */ automaticRelease?: boolean; /** * quick automatic release of docs app(s) */ automaticReleaseDocs?: boolean; bumbVersionIn?: string[]; /** * Force relase all project (ommit release cache) */ all?: boolean; /** * release only trusted packages for current framework version */ trusted?: boolean; shouldReleaseLibrary?: boolean; releaseType: 'major' | 'minor' | 'patch'; } interface TscCompileOptions { cwd: string; watch?: boolean; outDir?: BuildDir; generateDeclarations?: boolean; tsExe?: string; diagnostics?: boolean; hideErrors?: boolean; debug?: boolean; } interface BuildServeArgsServe { port: string; baseUrl: string; outDir: string; } type BuildDir = 'dist'; type BuildDirBrowser = 'browser' | 'websql'; type ReplacementString = '@backend' | '@backendFunc' | '@cutCodeIfTrue' | '@cutCodeIfFalse' | '@notForNpm'; const ReplacementStringArr: ReplacementString[]; type Replacement = (ReplacementString | [ReplacementString, string] | [ReplacementString, (expression: any, env: ModelsEnvinronment.EnvConfig) => () => boolean]); interface ReplaceOptionsExtended { replacements: Replacement[]; env?: ModelsEnvinronment.EnvConfig; } interface StartForOptions { progressCallback?: (fractionValue: number) => any; prod?: boolean; watch?: boolean; nodts?: boolean; uglify?: boolean; websql?: boolean; obscure?: boolean; includeNodeModules?: boolean; watchOnly?: boolean; outDir?: BuildDir; appBuild?: boolean; args?: string; staticBuildAllowed?: boolean; } }