Add support to analyze and package studio projects #135
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Integrated uipathcli with UiPath Studio to build, package and analyze studio projects.
Added two new plugin commands:
uipath studio package analyze
uipath studio package pack
Implementation:
Created infrastructure to download external plugins like the uipcli. The studio commands download the uipcli to the user cache dir and use it for packaging any studio project. Depending on the targetFramework the uipathcli either downloads the tool chain for building and packaging cross-platform or windows Studio projects.
Added
ExecCmd
abstraction which is used to start processes and can easily be faked in unit tests in order to validate the behavior with different exit codesRefactored the existing browser launcher to use the
ExecCmd
abstractionExtended the progress bar rendering to allow displaying a simple bar without any percentage or bytes indicator so that the build process can be visualized without knowing the total time in advance.
Increment the uipathcli version to 2.0. There are no backwards-incompatible changes. The major version increase only indicates that an important new feature has been added.
Examples:
uipath studio package analyze --source plugin/studio/projects/crossplatform
uipath studio package pack --source plugin/studio/projects/crossplatform --destination . --debug
The following snippet allows users to package a local UiPath studio project, upload the package, create a release and run a job: