1.0.2 • Published 1 year ago

d365-plugin-generator v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago