SuperAPI AI 工具集

power-apps-code-app-scaffold

通用与其它

查看项目

更新于 10-15 21:52

技能介绍

用途:按微软最佳实践搭建完整的 Power Apps Code App(预览版)项目,采用代码优先方式构建可接入 Power Platform 能力的自定义 Web 应用。

主要能力:初始化 Vite + React + TypeScript 项目并运行在 3000 端口;安装配置 Power Apps SDK(@microsoft/power-apps ^0.3.1);用 PAC CLI 初始化(pac code init);生成 vite.config.ts、power.config.json、PowerProvider.tsx、tsconfig.json、package.json 等配置文件;建立 components、services、models、hooks、utils、types 目录结构;配置 dev、build、preview、lint 脚本;提供连接器集成示例(推荐 Office 365 Users)及错误处理、加载状态、Fluent UI 响应式界面;生成 README 文档。

使用方式:需 VS Code 与 Power Platform Tools 扩展、Node.js LTS、Git、最新 PAC CLI、已启用 Code Apps 的 Power Platform 环境及相应许可。常用命令:pac auth create --environment {environment-id}、pac env select --environment {environment-url}、pac code init --displayName "App Name"、pac connection list、pac code add-data-source -a {api-name} -c {connection-id}、pac code push。

适用场景:需要以代码方式构建并部署到 Power Platform、访问 1500+ 连接器并使用 Microsoft Entra 认证的项目。

限制:CSP 暂不支持、Storage SAS IP 限制不支持、无 Power Platform Git 集成、无 Dataverse 解决方案支持、无原生 Azure Application Insights 集成。具体收费与价格暂未提供。