Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.18k stars 730 forks source link

Javascript/Typescript SDK #7453

Open itpropro opened 2 years ago

itpropro commented 2 years ago

Is your feature request related to a problem? Please describe. It would be great to have a native Typescript library to natively interact with bicep templates. As the vscode extension is already written in TypeScript, are there any plans to publish a JavaScript/TypeScript SDK?

Describe the solution you'd like A Azure SDK package to interact with bicep templates in the browser and in node.js (maybe deno later?).Published for example as @azure/bicep and integrated with the @azure/identity package for deployment authentication. Some feature examples would be

I would like to hear your thoughts on this!

alex-frankel commented 2 years ago

FWIW, the language server is all written in C#. The extension itself is written in typescript, but it's a very think client for communicating with the language server, which is what is parsing the bicep code and doing all the analysis.

Regardless, it would still be good to provide parsing functionality in TS/JS, in addition to .NET and other language where there is enough demand.

anthony-c-martin commented 2 years ago

Doesn't appear that support is really there yet in dotnet, but in the future it might be possible to package Bicep into a node module with WASM - that way we wouldn't have to re-implement logic natively in TS/JS.