novalogica-pcf-control
v1.5.3
Published
[](https://www.npmjs.com/package/novalogica-pcf-control)
Readme
novalogica PCF Starter
A CLI tool to generate a new PowerApps Component Framework (PCF) project from a base template with customizable options.
Features
- Quickly scaffold a new PCF control using
npx - Supports field and dataset component types
- Automatically renames files, updates manifest, and installs dependencies
- Works seamlessly with React, Fluent UI, Web API, and other libraries
Installation
You can use the generator without installing globally:
npx novalogica-pcf-control my-pcf-component -n novalogica -c ControlName -t fieldOr install globally:
npm install -g novalogica-pcfThen run:
novalogica-pcf my-pcf-component -n novalogica -c ControlName -t datasetUsage
npx novalogica-pcf-control <component-name> [options]Options
| Option | Alias | Description | Default |
|--------------------|-------|------------------------------------------------------|-------------|
| -n, --namespace | | Control namespace | novalogica |
| -c, --control | | Control class name | BaseControl |
| -t, --type | | Component type (field or dataset) | field |
This will:
- Create a new PCF control in the
MyCustomControlfolder - Rename the base control to
MyControl - Modify
ControlManifest.Input.xmlbased on the type (fieldordataset) - Update related files (
index.ts,.resx,.pcfproj, etc.) - Install dependencies automatically
Development
To contribute or modify the tool:
Clone the repo:
git clone https://github.com/your-repo/novalogica-pcf.git cd novalogica-pcfInstall dependencies:
npm installLink the CLI locally for testing:
npm linkRun the tool locally:
novalogica-pcf test-control -c TestControl -t field
License
This project is licensed under the MIT License.
