mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-09 23:48:36 +01:00
add email service
This commit is contained in:
@@ -10,58 +10,14 @@ helper.clear();
|
||||
// TODO: Email service as external repo
|
||||
|
||||
helper.create('services');
|
||||
helper.copy('services/DateService.ts');
|
||||
|
||||
|
||||
// // ---------------- Services ----------------
|
||||
// const dashServicesPath = path.join(dashboardPath, 'shared/services');
|
||||
// const sharedServicesPath = path.join(sharedPath, 'services');
|
||||
helper.create('data');
|
||||
helper.copy('data/PREMIUM.ts');
|
||||
helper.copy('data/ADMINS.ts');
|
||||
|
||||
// if (fs.existsSync(dashServicesPath)) {
|
||||
// fs.rmSync(dashServicesPath, { force: true, recursive: true });
|
||||
// fs.mkdirSync(dashServicesPath);
|
||||
// }
|
||||
helper.create('data/broker');
|
||||
helper.copy('data/broker/Limits.ts');
|
||||
|
||||
// // DateService
|
||||
// const dashDateServicePath = path.join(dashServicesPath, 'DateService.ts');
|
||||
// const sharedDateServicePath = path.join(sharedServicesPath, 'DateService.ts');
|
||||
// fs.cpSync(sharedDateServicePath, dashDateServicePath);
|
||||
|
||||
|
||||
// // ---------------- Data ----------------
|
||||
|
||||
// const dashDataPath = path.join(dashboardPath, 'shared/data');
|
||||
// const sharedDataPath = path.join(sharedPath, 'data');
|
||||
|
||||
// if (fs.existsSync(dashDataPath)) {
|
||||
// fs.rmSync(dashDataPath, { force: true, recursive: true });
|
||||
// fs.mkdirSync(dashDataPath);
|
||||
// }
|
||||
|
||||
// // Premium
|
||||
// const dashPremiumDataPath = path.join(dashDataPath, 'PREMIUM.ts');
|
||||
// const sharedPremiumDataPath = path.join(sharedDataPath, 'PREMIUM.ts');
|
||||
// fs.cpSync(sharedPremiumDataPath, dashPremiumDataPath);
|
||||
|
||||
// // Admins
|
||||
// const dashAdminsDataPath = path.join(dashDataPath, 'ADMINS.ts');
|
||||
// const sharedAdminsDataPath = path.join(sharedDataPath, 'ADMINS.ts');
|
||||
// fs.cpSync(sharedAdminsDataPath, dashAdminsDataPath);
|
||||
|
||||
// // BrokerLimits
|
||||
// const dashBrokerLimitsDataPath = path.join(dashDataPath, 'broker/Limits.ts');
|
||||
// const sharedBrokerLimitsDataPath = path.join(sharedDataPath, 'broker/Limits.ts');
|
||||
// fs.cpSync(sharedBrokerLimitsDataPath, dashBrokerLimitsDataPath);
|
||||
|
||||
|
||||
|
||||
// // ---------------- Schema ----------------
|
||||
|
||||
// const dashSchemaPath = path.join(dashboardPath, 'shared/schema');
|
||||
// const sharedSchemaPath = path.join(sharedPath, 'schema');
|
||||
|
||||
// if (fs.existsSync(dashSchemaPath)) {
|
||||
// fs.rmSync(dashSchemaPath, { force: true, recursive: true });
|
||||
// fs.mkdirSync(dashSchemaPath);
|
||||
// }
|
||||
|
||||
// fs.cpSync(sharedSchemaPath, dashSchemaPath, { recursive: true });
|
||||
helper.copyFolder('schema');
|
||||
@@ -27,7 +27,14 @@ class SharedHelper {
|
||||
|
||||
copy(name) {
|
||||
const localSharedFile = path.join(this.localSharedPath, name);
|
||||
fs.cpSync(SharedHelper.getSharedPath(), localSharedFile);
|
||||
const sharedFile = path.join(SharedHelper.getSharedPath(), name);
|
||||
fs.cpSync(sharedFile, localSharedFile);
|
||||
}
|
||||
|
||||
copyFolder(name) {
|
||||
const localFolder = path.join(this.localSharedPath, name);
|
||||
const sharedFolder = path.join(SharedHelper.getSharedPath(), name);
|
||||
fs.cpSync(sharedFolder, localFolder, { force: true, recursive: true });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user