Open bdovaz opened 2 years ago
Hi,
Thank you so much for your PR, i will check it!
First thing i can see that iIn the task.json need to change the execution
from PS to TS:
"execution": {
"Node10": {
"target": "index.js"
}
}
Replaced!
Great! need to change the pipeline to convert .ts to .js file, can you push the .js file just for the tests?
It's git ignored because it's automatically generated with "npm run build" (with tsc) command.
@shayki5 any news? Have you been able to take the time to check it?
Not yet ๐ need to change the pipeline also for support the ts.. i have already an example from my other extensions: https://github.com/shayki5/azure-devops-print-all-variables/blob/master/azure-pipelines.yml Just need to time to make it work also in this pr...
How is this progressing? It would really like to be able to run this on other platforms other than windows.
@DaleMckeown Unfortunately I haven't had time to delve into it yet, the pipeline needs to be updated also to support it. In the meantime, you can run a dedicated Windows job for this step.
Not yet ๐ need to change the pipeline also for support the ts.. i have already an example from my other extensions: https://github.com/shayki5/azure-devops-print-all-variables/blob/master/azure-pipelines.yml Just need to time to make it work also in this pr...
@shayki5 can you describe more specifically what needs to happen for this PR to be able to be completed? I and others may be willing to contribute if the acceptance criteria were specified (and if possible the specific files that need to be updated). Thanks!
Hi @steveruddell, thank you for your comment! First of all need to update the azure pipeline to build the extension from the ts files, you can see an example here: https://github.com/shayki5/azure-devops-print-all-variables/blob/master/azure-pipelines.yml After that it will be possible to check the other files. I just don't have any experience with wrapping PS extension with TS, you can see here some guidness: https://blogs.blackmarble.co.uk/rfennell/a-technique-for-porting-powershell-based-azure-devops-extensions-to-node-so-they-can-be-run-cross-platform-without-a-complete-re-write/
Any progress on this? Having this work on Linux is a much wanted feature.
@nbaju1 Unfortunately I haven't gotten to it yet ๐, want to try contributing?
I created the index.ts file following the blog post where it explains how to make the wrapper:
Remaining tasks:
As I said, I have no experience with TypeScript or developing tasks for Azure Pipelines.... I see that there is no test so I'm afraid that creating a regression is very easy.
I need you to lend me a hand in what you can to speed up this PR. Otherwise, I don't think I will be able to do it on my own.