1.0.5 • Published 7 months ago

aem-clientlib-report-plugin v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

AEM Clientlib Details Plugin

This plugin analyzes client libraries in an AEM project and exports the details into a report.

Installation

npm install aem-clientlib-report-plugin --save-dev

How to Use

// Import plugin in webpack configuration file (e.g. webpack.common.js)
const AEMClientlibDetailsPlugin = require('aem-clientlib-report-plugin');

// Define plugin configuration in plugin array
new AEMClientlibDetailsPlugin({
  uiAppsPath: path.resolve(__dirname, '../ui.apps/'), //<define directory which need to scan>
  additionalData: ['categories', 'dependencies', 'embed'],
  exportToExcel: true,
  outputFilePath: 'clientlib-report.xlsx',
  excludeDirectories: ['target'],
  sortBy: 'size',         // or 'clientname'
  sortOrder: 'descending', // or 'ascending'
  hidePath: false,          // Hide the clientlib Path column
  logger: true,             // Enable logging to see generated files
})

// Note: uiAppsPath is path for ui.apps directory path

Options

OptionTypeDefault ValueDescription
uiAppsPathstring-Path to the ui.apps folder in your AEM project.
additionalDataarray[]Additional data fields to include in the report.
exportToExcelbooleanfalseWhether to export the report to an Excel file.
outputFilePathstringclientlib-report.xlsxPath for the output report file.
hidePathbooleanfalseWhether to hide the clientlib path in the report.
excludeDirectoriesarray[]Directories to exclude from the analysis.
sortBystringsizeField to sort the report by (e.g., size, name).
sortOrderstringascendingSort order (ascending or descending).
loggerbooleanfalseEnable or disable logging for the plugin.

Recommendations

  1. Use --legacy-peer-deps if Webpack version is lower then 5 for your current setup.
1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago