UNPKG

@tsdi/pack

Version:

@tsdi/pack is simple build tasks, base on AOP, Ioc container, via @tsdi. dev build pack activities.

42 lines (40 loc) 1.03 kB
import { __awaiter, __decorate, __metadata } from "tslib"; import { Input } from '@tsdi/components'; import { Task } from '@tsdi/activities'; import { NodeActivity } from '../NodeActivity'; /** * Serve activity. * * @export * @class ServeActivity * @extends {BuildActivity} */ let ServeActivity = class ServeActivity extends NodeActivity { /** * before run sequence. * * @protected * @returns {Promise<void>} * @memberof ServeActivity */ execute() { return __awaiter(this, void 0, void 0, function* () { }); } static ρAnn() { return { "name": "ServeActivity", "params": {} }; } }; __decorate([ Input(), __metadata("design:type", Number) ], ServeActivity.prototype, "port", void 0); __decorate([ Input(), __metadata("design:type", Object) ], ServeActivity.prototype, "dirs", void 0); ServeActivity = __decorate([ Task('serve') ], ServeActivity); export { ServeActivity }; //# sourceMappingURL=../sourcemaps/tasks/ServeActivity.js.map