AutoRest is developed primarily in TypeScript but generates code for multiple languages. To build and test AutoRest requires a few things be installed locally.
At a bare minimum, to compile (and run) autorest and run it you will need at least:
NodeJS 7.10.0 or greater
OS | Instructions |
---|---|
Windows | You can install the Node Version Manager for Windows Install the latest release of the Node Version Manager and then run the following commands: nvm install 7.10.0 nvm use 7.10.0 |
Linux | You can install the Node Version Manager: Run the following commands: `curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh |
OS X | You can install the Node Version Manager. Run the following commands: touch ~/.bash_profile `curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh |
Gulp and more
To install all remaining tools required for compilation (including gulp
), run npm install
in your clone of the AutoRest repo.
To actually run all the tests for all currently supported languages, you'll also need all the following tools and languages installed:
- Visual Studio Code
- Git
- JDK 8
- Maven
- Gulp
- Ruby 2.3
- Ruby Devkit (Windows - also need missing CA Roots for Ruby)
- Python 2.7
- Python 3.5
- Tox
- Go
- Glide
In Cortana, search for
developer settings
click "Developer Mode", answer "yes"
scroll down, and click apply, apply, apply
Close Settings.
Reboot (win-rshutdown -r -t 0
)After Reboot, login then:
Win-x ,cmd prompt (admin)
-- (ELEVATED!)
start Powershell and run this command:
# download the install script and run it.
iwr https://raw.githubusercontent.com/Azure/autorest/master/Tools/setup-developerworkstation.ps1 -OutFile c:\install-software.ps1 ; c:\install-software.ps1
See the actual script at: https://github.com/Azure/autorest/blob/master/Tools/setup-developerworkstation.ps1