update-rlc-quickstart-with-latest-cadl (#24317)

This commit is contained in:
Qiaoqiao Zhang 2022-12-22 10:24:30 +08:00 коммит произвёл GitHub
Родитель b79fd438a0
Коммит a69b44fd80
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -32,7 +32,7 @@ We are working on to automatically generate everything right now, but currently
```json
"dependencies": {
...
"@azure-tools/cadl-typescript": "1.0.0-beta.6"
"@azure-tools/cadl-typescript": "1.0.0-beta.7"
},
```
@ -48,15 +48,19 @@ We are working on to automatically generate everything right now, but currently
In Cadl project, modify (or create) `cadl-project.yaml` and configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`
```yaml
emitters:
emit:
- "@azure-tools/cadl-typescript"
options:
"@azure-tools/cadl-typescript":
title: Farmbeats
generateMetadata: true
generateTest: true
"emitter-output-dir": "{output-dir}"
packageDetails:
name: "@azure-rest/agrifood-farming"
description: "Farmbeats Client"
version: "1.0.0-beta.1"
```
Here, we need to replace the value in `name`,`description`, `version` in `packageDetails` to **your own service's** package details. Also we have some other options, you could refer to [the link](https://github.com/Azure/autorest.typescript/tree/main/packages/cadl-typescript#emitter-options) for more details.