criticalmanufacturing / cli

Critical Manufacturing Projects Command Line Tool
https://criticalmanufacturing.github.io/cli/
BSD 3-Clause "New" or "Revised" License
12 stars 27 forks source link

feat(): Add ConnectIoT deployment steps to IoT Package #204

Closed migafgarcia closed 2 years ago

migafgarcia commented 2 years ago

This PR adds the steps DeployRepositoryFiles and GenerateRepositoryIndex to allow the envmanager to deploy the runtime packages and update the index.

These are the resulting steps:

  <steps>
    <step type="DeployFiles" contentPath="runtimePackages/**" />
    <step type="DeployFiles" contentPath="*.ps1" />
    <step type="DeployFiles" contentPath="*.bat" />
    <step type="Generic" onExecute="$(Package[Cmf.FEC.IoT.Packages].TargetDirectory)/runtimePackages/ValidateIoTInstall.ps1" />
    <step type="Generic" onExecute="$(Package[Cmf.FEC.IoT.Packages].TargetDirectory)/runtimePackages/PublishToRepository.ps1" />
    <step type="Generic" onExecute="$(Package[Cmf.FEC.IoT.Packages].TargetDirectory)/runtimePackages/PublishToDirectory.ps1" />
    <step type="DeployRepositoryFiles" contentPath="runtimePackages/**" />
    <step type="GenerateRepositoryIndex" />
    <step type="DeployFiles" contentPath="node_modules/**" />
    <step type="TransformFile" file="config.json" tagFile="true" />
  </steps>