import { Src, ExpressionToken, ConfigureType, IActivity, CtxType } from '@ts-ioc/activities'; import { ObjectMap, Token } from '@ts-ioc/core'; import { BuildConfigure, TestConfigure, CleanConfigure, CleanActivity, TestActivity, BuildConfigures } from '@ts-ioc/build'; import { ServeActivity, ServeConfigure } from '../serves'; /** * pack configure. */ export declare type PackConfigures = PackConfigure | BuildConfigures | Token; /** * pack activity type, configy. */ export declare type PackActivityType = Token | PackConfigures; /** * pack activity type. */ export declare type PackActive = PackActivityType; /** * pack configure. * * @export * @interface PackConfigure * @extends {ActivityConfigure} */ export interface PackConfigure extends BuildConfigure { /** * src root path. * * @type {CtxType} * @memberof PackageConfigure */ src?: CtxType; /** * clean task config. * * @type {(ExpressionToken | ConfigureType)} * @memberof PackConfigure */ clean?: ExpressionToken | ConfigureType; /** * assets. * * @type {ObjectMap | PackConfigures>} * @memberof PackConfigure */ assets?: ObjectMap | PackConfigures>; /** * test config. * * @type {(ExpressionToken | ConfigureType)} * @memberof PackConfigure */ test?: ExpressionToken | ConfigureType; /** * serve task config. * * @type {(ExpressionToken | ConfigureType)} * @memberof PackConfigure */ serve?: ExpressionToken | ConfigureType; /** * before build activity. * * @type {PackConfigures} * @memberof BuildConfigure */ before?: PackConfigures; /** * do sth, after build completed. * * @type {PackConfigures} * @memberof BuildConfigure */ after?: PackConfigures; }