Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions bdd-agent-v2/.demo/01-prerequisites.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ║ 01: Prerequisites Check ║
# ╚════════════════════════════════════════════════════════════════════════════════════════╝
#
# Checks: dotnet CLI, TALXIS Dataverse templates, git availability.
# Checks: dotnet CLI, TALXIS DevKit CLI (txc), git availability.
# Expects: $SkipGitInit from parent scope.
#
# ──────────────────────────────────────────────────────────────────────────────────────────
Expand All @@ -18,14 +18,15 @@ if ($LASTEXITCODE -ne 0) {
}
Write-Host " ✓ dotnet CLI: $dotnetVersion" -ForegroundColor Green

# Check TALXIS templates
$templateList = & dotnet new list pp-solution 2>&1 | Out-String
if ($templateList -notmatch "pp-solution") {
Write-Host " ✗ TALXIS Dataverse templates not found." -ForegroundColor Red
Write-Host " Install with: dotnet new install TALXIS.DevKit.Templates.Dataverse" -ForegroundColor Yellow
# Check TALXIS DevKit CLI (txc). It scaffolds the components and fetches the
# templates itself, so no separate template install is needed.
$txcTypes = & txc workspace component type list 2>&1 | Out-String
if ($LASTEXITCODE -ne 0) {
Write-Host " ✗ TALXIS DevKit CLI (txc) not found." -ForegroundColor Red
Write-Host " Install with: dotnet tool install --global TALXIS.CLI" -ForegroundColor Yellow
exit 1
}
Write-Host " ✓ TALXIS Dataverse templates installed" -ForegroundColor Green
Write-Host " ✓ TALXIS DevKit CLI (txc) available" -ForegroundColor Green

# Check git
if (-not $SkipGitInit) {
Expand Down
5 changes: 2 additions & 3 deletions bdd-agent-v2/.demo/03a-package-deployer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

Write-Host "`n── Package Deployer ──" -ForegroundColor Cyan

dotnet new pp-package `
--output "src/Packages.Main" `
--allow-scripts yes
txc workspace component create pp-package `
--output "src/Packages.Main"

# Add the package project to the Visual Studio solution file
cd "src/Packages.Main"
Expand Down
58 changes: 27 additions & 31 deletions bdd-agent-v2/.demo/03b-data-model.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@

Write-Host "`n── Solutions.DataModel ──" -ForegroundColor Cyan

dotnet new pp-solution `
txc workspace component create pp-solution `
--output "src/Solutions.DataModel" `
--PublisherName $PublisherName `
--PublisherPrefix $PublisherPrefix `
--allow-scripts yes
--param "PublisherName=$PublisherName" `
--param "PublisherPrefix=$PublisherPrefix"

Write-Host " ✓ Solutions.DataModel" -ForegroundColor Green

Expand All @@ -34,43 +33,40 @@ Write-Host " ✓ ProjectReference: DataModel → Packages.Main" -ForegroundColo
Write-Host "`n── Entities (DataModel) ──" -ForegroundColor Cyan

# Warehouse Location
dotnet new pp-entity `
txc workspace component create pp-entity `
--output "src/Solutions.DataModel" `
--EntityType "Standard" `
--Behavior "New" `
--PublisherPrefix $PublisherPrefix `
--LogicalName "warehouselocation" `
--LogicalNamePlural "warehouselocations" `
--DisplayName "Warehouse Location" `
--DisplayNamePlural "Warehouse Locations" `
--allow-scripts yes
--param "EntityType=Standard" `
--param "Behavior=New" `
--param "PublisherPrefix=$PublisherPrefix" `
--param "LogicalName=warehouselocation" `
--param "LogicalNamePlural=warehouselocations" `
--param "DisplayName=Warehouse Location" `
--param "DisplayNamePlural=Warehouse Locations"

Write-Host " ✓ Entity: Warehouse Location" -ForegroundColor Green

# Warehouse Item
dotnet new pp-entity `
txc workspace component create pp-entity `
--output "src/Solutions.DataModel" `
--EntityType "Standard" `
--Behavior "New" `
--PublisherPrefix $PublisherPrefix `
--LogicalName "warehouseitem" `
--LogicalNamePlural "warehouseitems" `
--DisplayName "Warehouse Item" `
--DisplayNamePlural "Warehouse Items" `
--allow-scripts yes
--param "EntityType=Standard" `
--param "Behavior=New" `
--param "PublisherPrefix=$PublisherPrefix" `
--param "LogicalName=warehouseitem" `
--param "LogicalNamePlural=warehouseitems" `
--param "DisplayName=Warehouse Item" `
--param "DisplayNamePlural=Warehouse Items"

Write-Host " ✓ Entity: Warehouse Item" -ForegroundColor Green

# Warehouse Transaction
dotnet new pp-entity `
txc workspace component create pp-entity `
--output "src/Solutions.DataModel" `
--EntityType "Standard" `
--Behavior "New" `
--PublisherPrefix $PublisherPrefix `
--LogicalName "warehousetransaction" `
--LogicalNamePlural "warehousetransactions" `
--DisplayName "Warehouse Transaction" `
--DisplayNamePlural "Warehouse Transactions" `
--allow-scripts yes
--param "EntityType=Standard" `
--param "Behavior=New" `
--param "PublisherPrefix=$PublisherPrefix" `
--param "LogicalName=warehousetransaction" `
--param "LogicalNamePlural=warehousetransactions" `
--param "DisplayName=Warehouse Transaction" `
--param "DisplayNamePlural=Warehouse Transactions"

Write-Host " ✓ Entity: Warehouse Transaction" -ForegroundColor Green
Loading