mock-service-plugin
Version:
35 lines (30 loc) • 701 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var server = require('./server.js');
/*
* @Description: mock service plugin
* @Author: Gleason
* @Date: 2021-04-11 14:26:23
* @LastEditors: Gleason
* @LastEditTime: 2022-03-20 00:11:27
*/
/**
* @file plugin entry point
* @author gleason
*/
/**
* @class mockServicePlugin
*
* @param {Object} param data that plugin needs
*/
class MockServicePlugin {
constructor({ path, port = 3000 }) {
this.path = path;
this.port = port;
}
apply() {
server.startServer({ path: this.path, port: this.port });
}
}
exports.default = MockServicePlugin;
//# sourceMappingURL=index.js.map