From 3ac2c27edcee3186a1f03a54d4e28aa7d82b43ac Mon Sep 17 00:00:00 2001 From: Tianen <347142915@qq.com> Date: Fri, 8 Mar 2024 13:55:24 +0800 Subject: [PATCH 1/2] update script.sh Create automation_init.sh --- .scripts/automation_init.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .scripts/automation_init.sh diff --git a/.scripts/automation_init.sh b/.scripts/automation_init.sh new file mode 100644 index 000000000000..d0a033346472 --- /dev/null +++ b/.scripts/automation_init.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +nvm install v18.15.0 +nvm alias default node +npm install -g @microsoft/rush@5.92.0 +npm install -g @azure-tools/js-sdk-release-tools From bfea6e7d663fb536ef03a623660bdb0317de1e87 Mon Sep 17 00:00:00 2001 From: Tianen <347142915@qq.com> Date: Fri, 8 Mar 2024 13:56:22 +0800 Subject: [PATCH 2/2] Create automation_generate.sh --- .scripts/automation_generate.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .scripts/automation_generate.sh diff --git a/.scripts/automation_generate.sh b/.scripts/automation_generate.sh new file mode 100644 index 000000000000..0be1257431b3 --- /dev/null +++ b/.scripts/automation_generate.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +nvm use default +code-gen-pipeline --inputJsonPath=$1 --outputJsonPath=$2 --use=@autorest/typescript@^6.0.12 --typespecEmitter=@azure-tools/typespec-ts