@tsdi/pack
Version:
@tsdi/pack is simple build tasks, base on AOP, Ioc container, via @tsdi. dev build pack activities.
58 lines (57 loc) • 1.07 kB
TypeScript
import { Binding } from '@tsdi/components';
import { Src, TemplateOption } from '@tsdi/activities';
import { NodeActivity } from '../NodeActivity';
/**
* ServeConfigure
*
* @export
* @interface ServeConfigure
*/
export interface ServeConfigure extends TemplateOption {
/**
* serve port.
*
* @type {number}
* @memberof ServeConfigure
*/
port?: number;
/**
* dirs.
*
* @type {CtxType<Src>}
* @memberof ServeConfigure
*/
dirs: Binding<Src>;
}
/**
* Serve activity.
*
* @export
* @class ServeActivity
* @extends {BuildActivity}
*/
export declare class ServeActivity extends NodeActivity<void> {
/**
* serve port.
*
* @type {number}
* @memberof ServeActivity
*/
port: number;
/**
* dirs.
*
* @type {Src}
* @memberof ServeActivity
*/
dirs: Src;
/**
* before run sequence.
*
* @protected
* @returns {Promise<void>}
* @memberof ServeActivity
*/
execute(): Promise<void>;
static ρAnn(): any;
}