d365-plugin-generator

1.0.2 • Public • Published

plugin-generator-cli

CLI Tool for generating C# Plugin Files based on Templates. Currently only generates Late Bound Plugins.

This tool is a work in progress.

Index

Installation

# Using npm, installing to local project
npm i --save d365-plugin-generator

# Using npm, installing globally for global cli usage
npm i -g d365-plugin-generator

# Using yarn
yarn add d365-plugin-generator

Options

  • File Path: Determines the File Path for the Selected Template Folder

  • Project Templates:

    • Simple Plugin: Early Bound Plugin. All Stages and Messages selected will be generated in a single file. Requires the Helper File (included).
  • Namespace: The Namespace of the Plugin

  • Class Name: The Class Name of the Plugin

  • Entity: The Logical Name of the entity

  • Configuration (Messages and Stages):

    • Create
      • Pre-Validation
      • Pre-Operation
      • Post-Operation
    • Update
      • Pre-Validation
      • Pre-Operation
      • Post-Operation
    • Delete
      • Pre-Validation
      • Pre-Operation
      • Post-Operation

Templates

Simple Plugin

Generates the following files

  • helper.cs: A helper file that contains Message and Stage constants.
  • simplePlugin.cs: A Plugin Class File based on the configuration setting specified in the CLI.
  • simplePluginFull.cs: A Plugin Class File with all Messages and Stages populated.

Readme

Keywords

Package Sidebar

Install

npm i d365-plugin-generator

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

35.3 kB

Total Files

11

Last publish

Collaborators

  • maichopra