开发者社区> 镜像站> NPM> @adobe/aem-cs-source-migration-commons
@adobe/aem-cs-source-migration-commons
Common helper utilities used by AEM as a Cloud Service code refactoring tools
Last updated 2 months ago by manasmaji .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adobe/aem-cs-source-migration-commons 
SYNC missed versions from official npm registry.

Version Downloads/week License Codecov Coverage

@adobe/aem-cs-source-migration-commons

aem-cs-source-migration-commons library provides common functionalities and helper utilities used by AEM as a Cloud Service Code Refactoring Tools (packages).

Introduction

While the Code Refactoring tools (modules) are created for different purposes, they each end up defining a set of utility methods and functionalities that are similar. To avoid duplicate code or functionalities, common utilities are extracted out into its own module, which can then be included by the tools and used.

This project offers a set of functionalities that can be shared among different code refactoring tool modules:

  • Logging Functionality
  • Summary Report Generation Functionality
  • Common Utility Methods and Constants

Usage

Installing the Utilities

This project uses node and npm. Check your system if you already have these utilities installed.

It can be installed like any other Node.js module.

$ npm install @adobe/aem-cs-source-migration-commons

Adding the Module Requirement

Follow the steps below to add the module to your Node.js project:

  1. Install the module in your project.
  2. Add the require function in the module in the javascript file where it will be consumed:
const Commons = require('@adobe/aem-cs-source-migration-commons');

or by destructuring assignment syntax (as per requirement)

const {    
    logger,
    constants,
    util,
    ConversionStep,
    ConversionOperation,
    SummaryReportWriter} = require('@adobe/aem-cs-source-migration-commons');

Contributing

Contributions are welcomed! Refer to Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. Refer to LICENSE for more information.

Current Tags

  • 0.0.2                                ...           latest (2 months ago)

2 Versions

  • 0.0.2                                ...           2 months ago
  • 0.0.1                                ...           3 months ago