@hed-hog/cli 0.0.84 → 0.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/src/modules/developer/developer.service.js +24 -0
- package/dist/src/modules/developer/developer.service.js.map +1 -1
- package/dist/src/modules/hedhog/hedhog.service.js +9 -0
- package/dist/src/modules/hedhog/hedhog.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -2680,6 +2680,11 @@ temp
|
|
|
2680
2680
|
await this.fileSystem.remove(frontendPublicLibrariesPath);
|
|
2681
2681
|
this.log(chalk.blue(`Removed directory: ${frontendPublicLibrariesPath}`));
|
|
2682
2682
|
}
|
|
2683
|
+
const frontendWidgetsPath = pathModule.join(cwd, 'apps', 'admin', 'src', 'app', '(app)', '(libraries)', 'core', 'dashboard', 'components', 'widgets');
|
|
2684
|
+
if ((0, fs_1.existsSync)(frontendWidgetsPath)) {
|
|
2685
|
+
await this.fileSystem.remove(frontendWidgetsPath);
|
|
2686
|
+
this.log(chalk.blue(`Removed directory: ${frontendWidgetsPath}`));
|
|
2687
|
+
}
|
|
2683
2688
|
spinner.succeed('Frontend files reset completed.');
|
|
2684
2689
|
}
|
|
2685
2690
|
async resetDevelopmentEnvironment(cwd, verbose = false) {
|
|
@@ -3396,6 +3401,25 @@ temp
|
|
|
3396
3401
|
else {
|
|
3397
3402
|
this.log(chalk.yellow(`Frontend public assets folder not found at ${publicSourcePath}`));
|
|
3398
3403
|
}
|
|
3404
|
+
// Copy dashboard widgets folder if it exists
|
|
3405
|
+
const widgetsSourcePath = pathModule.join(cwd, 'apps', 'admin', 'src', 'app', '(app)', '(libraries)', 'core', 'dashboard', 'components', 'widgets');
|
|
3406
|
+
const widgetsDestPath = pathModule.join(cwd, 'libraries', name, 'hedhog', 'widgets');
|
|
3407
|
+
if (await this.fileSystem.exists(widgetsSourcePath)) {
|
|
3408
|
+
this.log(`Found widgets at ${widgetsSourcePath}, copying with .ejs extension...`);
|
|
3409
|
+
try {
|
|
3410
|
+
spinner.text = `Copying widgets for ${name}...`;
|
|
3411
|
+
await this.fileSystem.createDirectory(widgetsDestPath);
|
|
3412
|
+
await this.fileSystem.copyDirectoryAddingEjsExtension(widgetsSourcePath, widgetsDestPath);
|
|
3413
|
+
this.log(chalk.green(`Widgets copied successfully to ${widgetsDestPath}`));
|
|
3414
|
+
}
|
|
3415
|
+
catch (error) {
|
|
3416
|
+
this.log(chalk.red(`Error copying widgets: ${error.message}`));
|
|
3417
|
+
throw error;
|
|
3418
|
+
}
|
|
3419
|
+
}
|
|
3420
|
+
else {
|
|
3421
|
+
this.log(chalk.yellow(`Widgets folder not found at ${widgetsSourcePath}`));
|
|
3422
|
+
}
|
|
3399
3423
|
this.log(chalk.green(`Assets copied successfully for library ${name}`));
|
|
3400
3424
|
}
|
|
3401
3425
|
};
|