Skip to main content

Posts

Showing posts from November, 2023

Commands used during PCF Control development

Common commands used These are some common commands list which are used while developing a code component or PCF control. Creating a new component project Use this command to create new code component project. For Standard Control pac pcf init --namespace <specify your namespace here> --name <name of the code component> --template <component type> --run-npm-install For React Based Control pac pcf init --namespace <specify your namespace here> --name <name of the code component> --template <component type> --framework react --run-npm-install Build your component Use this command to build your code component project. npm run build npm run build --buildMode production Debugging using the browser test harness Use npm start or npm start watch  to build the code component and open the local test harness in a new browser window. Watch mode enables you to quickly see the changes in action. npm start npm start watch Ctrl + C to stop the debugging Package a c