Skip to content

tywalk/pcf-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCF Helper 🚀

npm version License: MIT

Command-line tools for Power Platform Component Framework (PCF) development, providing streamlined utilities to initialize, build, deploy, and manage your PCF controls in Dataverse environments.

📋 Table of Contents

Overview

PCF Helper simplifies the PCF development workflow by automating common tasks such as project initialization, building, importing, and deploying PCF controls.

✨ Features

  • 🏗️ Project Initialization: Scaffold new PCF projects with proper structure
  • ⚡ Fast Build Process: Build PCF controls with TypeScript compilation
  • 🚀 Automated Deployment: Deploy controls to your Dataverse environment (runs upgrade + build + import)
  • 📦 Solution Management: Import PCF controls into your solutions
  • 🔄 Upgrade Automation: Keep your PCF projects up-to-date with latest dependencies
  • 🎯 Session Management: Handle development sessions with live reloading capabilities

📦 Packages

This monorepo contains two complementary packages:

Package Description NPM Link
@tywalk/pcf-helper Core library with individual CLI commands npm
@tywalk/pcf-helper-run Unified CLI interface npm

Package Comparison

  • Use @tywalk/pcf-helper for individual commands or integration into scripts
  • Use @tywalk/pcf-helper-run for a unified CLI experience

🔧 Requirements

Verify Installation

# Check Node.js version
node --version

# Verify PAC CLI installation
pac --version

# Check .NET SDK
dotnet --version

🚀 Quick Start

1. Install a Package

Individual Commands

npm install -g @tywalk/pcf-helper

Unified Interface

npm install -g @tywalk/pcf-helper-run

2. Initialize a New PCF Project

# Using individual commands
pcf-helper-init -n MyControl --publisher-name "My Publisher" --publisher-prefix myprefix

# Using unified interface
pcf-helper-run init -n MyControl --publisher-name "My Publisher" --publisher-prefix myprefix

3. Build Your Control

# Navigate to your solution folder
cd path/to/your/solution

# Build the control
pcf-helper-build -p . 
# or
pcf-helper-run build -p .

📖 Documentation

External Resources

🧪 Testing

The project uses Jest for testing:

# Run all tests
npm test

# Run tests for specific package
cd packages/pcf-helper && npm test
cd packages/pcf-helper-run && npm test

Made with ❤️ for the Power Platform community

For questions, issues, or feature requests, please visit our GitHub Issues page.

About

Command-line tools to streamline PCF development and management in Dataverse environments.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors