cea
Version:
cea cli application (with built-in plugins)
20 lines • 531 B
JavaScript
export { attendanceCheckIn } from '@ceajs/attendance-plugin';
export { checkIn } from '@ceajs/sign-plugin';
import { sstore } from '@ceajs/core';
import { confSet } from './conf-set.js';
export default class Cea {
constructor() {
this.plugins = new Set();
}
addPlugin(plugin) {
this.plugins.add(plugin);
}
async start() {
await confSet();
for (const plugin of this.plugins) {
await plugin();
}
sstore.close();
}
}
//# sourceMappingURL=index.js.map