-
Notifications
You must be signed in to change notification settings - Fork 218
Support scaffolding for JavaScript based extensions. #5121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
azd x init
to scaffold JavaScript based extensions.
Supplement about azd X context![]() azd X listenNotes: Currently, this function is limited to sending simulated events for testing purposes. However, in the JavaScript environment, the azd CLI does not handle event propagation in the same manner. We attempted to manually emit lifecycle events using a lifecycleRunner utility, but this approach required establishing a new gRPC connection, which is isolated from the listener’s active event stream. Consequently, even though the event was successfully pushed, the listener was unable to receive the corresponding Invoke message due to the separation between the gRPC streams. azd X prompt@rajeshkamal5050 and @wbreza please review this PR, thanks. |
@wbreza The PR for scaffolding regarding JavaScript is ready, please review. Thanks. |
I'm getting the following error when attempt to run either the
From looking at the code it looks like its using Regarding the lifecycle events - not sure i understand the issue. It's all gRPC.
|
...azd/extensions/microsoft.azd.extensions/internal/resources/languages/javascript/azdClient.js
Outdated
Show resolved
Hide resolved
Since the Docs have recently been updated. The # Add a new extension source name 'dev' to your `azd` configuration.
azd extension source add -n dev -t url -l "https://aka.ms/azd/extensions/registry/dev" |
We have fixed this issue. Please retry it. |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash:
pwsh:
WindowsPowerShell install
MSI install
Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - there are some issue with the event manager implementation but I can fix them after merged.
azd x init
command based on JavaScript extension.The scaffolding initialized by
azd x init
already includes support for theazd x build
andazd x package
commands, and also supports theazd x watch
command.proto
folder out ofdotnet
and place it at the same level as thelanguages
directory, making it a shared resource.Create a JavaScript extension
Run
azd x init
This will create a new JavaScript based extension from a template, create a local

azd
extension source, build, package and install the extension for use in local development.Build your extension
Run

azd x build
from within your extension folder.Package your extension
Run

azd x package
from within your extension folderThis will package a new version and publish it to your local extensions source.
Iterate on your extension
Run

azd x watch
to start watching for local changes. Changes are automatically detected and a new version of your extension will be rebuilt and installed locally.@rajeshkamal5050 and @wbreza for notification.