This extension for Visual Studio Code provides tools for NodeJs developers working with Azure SDKs.
Перейти к файлу
Balaji Krishnan baa23b7f62 add package-browsing gif illustrating how to use
the feature.
2017-03-09 17:42:28 -08:00
.vscode Commiting all latest code from 2017-02-10 16:13:15 -08:00
resources add package-browsing gif illustrating how to use 2017-03-09 17:42:28 -08:00
src Add first version of package browsing experience 2017-03-09 17:32:24 -08:00
test Commiting all latest code from 2017-02-10 16:13:15 -08:00
.eslintrc.json Commiting all latest code from 2017-02-10 16:13:15 -08:00
.gitignore Commiting all latest code from 2017-02-10 16:13:15 -08:00
.vscodeignore Commiting all latest code from 2017-02-10 16:13:15 -08:00
LICENSE Initial commit 2017-02-09 12:10:23 -08:00
README.md update formatting in readme 2017-02-10 22:21:49 -08:00
changelog.md prepare for release 0.2.4 2017-02-11 00:28:48 -08:00
jsconfig.json Commiting all latest code from 2017-02-10 16:13:15 -08:00
package.json Add first version of package browsing experience 2017-03-09 17:32:24 -08:00
vsc-extension-quickstart.md Commiting all latest code from 2017-02-10 16:13:15 -08:00

README.md

Azure Node Essentials

This extension provides tools for NodeJs developers working with Azure SDKs.

Feature List

  1. Project and file scaffolding
    • yo azure-node to create
      • Javascript or Typescript project with package.json set up to target Azure SDKs
      • Empty .js or .ts files
      • pre populated .tsconfig or .jsconfig files
      • create a service principal
  2. Snippets for some common operations such as authentication, creating a service principal.
    • loginInt : generate code for interactive login
    • loginPwd : generate code for logging in with username and password
    • loginSp : generate code for logging in with a service principal
    • spCreate : generate code to create a service principal
  3. Code generation scenarios
    • command Azure-Node: Generate code for template deployment : generate code for template deployment

Demo

Project Scaffolding

Project Scaffolding

Snippets

Snippets

Code generation

1. template deployment

Code gen for template deployment

Sample workflow

  1. Open VS code with an empty workspace (empty folder)
  2. Bring up VS code command palette, invoke yo
  3. Choose azure-node generator and invoke it.
  4. Choose * app to invoke the main generator (the sub generators for files are listed at the root level)
  5. Choose a Javascript project and proceed.
  6. This should initialize your project and install npm dependencies
  7. Meanwhile, open the folder in VSCode and navigate to index.js
  8. Notice that package.json has been set up and index.js has boiler plate code for authentication.
  9. Place caret on the line after // TODO: Write your application logic here.
  10. From VS Code's command palette, invoke >Azure-Node: Generate code for template deployment
  11. The extension generates code for template deployment in the file currently active in the vscode editor and adds required dependencies to package.json.

Dependencies

The following package/extension dependencies are auto installed when you install this extension.

  1. vscode yo
  2. generator-azure-node

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.