Type spec rename follow-up items (#1660)

* minor rename followup

* update compiler homepage link in package.json

* Revert playground host name for a later fix.

* add changelog
This commit is contained in:
Allen Zhang 2023-02-17 13:35:12 -08:00 коммит произвёл GitHub
Родитель 20c7b4249a
Коммит ec21edc669
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
12 изменённых файлов: 33 добавлений и 13 удалений

2
.github/workflows/tryit-comment.yml поставляемый
Просмотреть файл

@ -28,7 +28,7 @@ jobs:
repo: context.repo.repo,
body: [
`Changes in this PR will be published to the following url to try(check status of TypeSpec Pull Request Try It pipeline for publish status):`,
`Playground: https://typespecplayground.z22.web.core.windows.net/prs/${prNumber}/`,
`Playground: https://cadlplayground.z22.web.core.windows.net/prs/${prNumber}/`,
"",
`Website: https://typespecwebsite.z1.web.core.windows.net/prs/${prNumber}/`,

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

@ -24,7 +24,7 @@ CODE_OF_CONDUCT.md
packages/compiler/test/formatter/**/*.tsp
# That is an example with error and can't be formatted
packages/samples/local.tsp/test.tsp
packages/samples/local.typespec/test.tsp
packages/website/build/
packages/website/versioned_sidebars/
packages/website/versions.json

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

@ -18,8 +18,8 @@ using the preview.
You can try TypeSpec on the web without installing anything.
- [TypeSpec playground](https://typespecplayground.z22.web.core.windows.net)
- [TypeSpec playground for Azure services](https://typespecplayground.z22.web.core.windows.net/typespec-azure/)
- [TypeSpec playground](https://cadlplayground.z22.web.core.windows.net)
- [TypeSpec playground for Azure services](https://cadlplayground.z22.web.core.windows.net/typespec-azure/)
## Getting Started

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

@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/compiler",
"comment": "Fixing cli help message, package homepage link",
"type": "none"
}
],
"packageName": "@typespec/compiler"
}

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

@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/rest",
"comment": "Readme.md update",
"type": "none"
}
],
"packageName": "@typespec/rest"
}

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

@ -12,5 +12,5 @@ TypeSpec is a language for describing cloud service APIs and generating other AP
You can try TypeSpec on the web without installing anything.
- [TypeSpec playground](https://typespecplayground.z22.web.core.windows.net)
- [TypeSpec playground for Azure services](https://typespecplayground.z22.web.core.windows.net/typespec-azure/)
- [TypeSpec playground](https://cadlplayground.z22.web.core.windows.net)
- [TypeSpec playground for Azure services](https://cadlplayground.z22.web.core.windows.net/typespec-azure/)

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

@ -11,7 +11,7 @@ See full usage documentation by typing `tsp --help`:
>tsp --help
TypeSpec compiler v0.36.1
typespec <command>
tsp <command>
Commands:
tsp compile <path> Compile TypeSpec source.

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

@ -32,7 +32,7 @@ async function main() {
console.log(`TypeSpec compiler v${typespecVersion}\n`);
await yargs(process.argv.slice(2))
.scriptName("typespec")
.scriptName("tsp")
.help()
.strict()
.parserConfiguration({

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

@ -1473,7 +1473,7 @@ export interface Diagnostic {
}
/**
* Return type of accessor functions in TYPESPEC.
* Return type of accessor functions in TypeSpec.
* Tuple composed of:
* - 0: Actual result of an accessor function
* - 1: List of diagnostics that were emitted while retrieving the data.

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

@ -4,7 +4,7 @@
"description": "TypeSpec Compiler Preview",
"author": "Microsoft Corporation",
"license": "MIT",
"homepage": "https://github.com/Microsoft/typespec",
"homepage": "https://microsoft.github.io/typespec",
"readme": "https://github.com/Microsoft/typespec/blob/master/README.md",
"repository": {
"type": "git",

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

@ -196,8 +196,8 @@ op getPng(@header contentType: "application/png", @body _: bytes): void;
## See also
- [HTTP example](https://typespecplayground.z22.web.core.windows.net/?c=aW1wb3J0ICJAY2FkbC1sYW5nL3Jlc3QiOwoKQHNlcnZpY2VUaXRsZSgiV2lkZ2V0IFPGFSIpCm5hbWVzcGFjZSBEZW1vxxg7CnVzaW5nIENhZGwuSHR0cDsKCm1vZGVsIMdAewogIEBrZXkgaWQ6IHN0cmluZzsKICB3ZWlnaHQ6IGludDMyxBFjb2xvcjogInJlZCIgfCAiYmx1ZSI7Cn0KCkBlcnJvcsdWRcQMxVVjb2Rly0BtZXNzYWdlymR9CgppbnRlcmbkALLmAI3nALTFP0DkAJ1saXN0KCk6xx9bXSB8xmHEUUByb3V0ZSgid8Uccy97aWR9IinGOHJlYWQoQHBhdGjrANfJSM1GcG9zdCBjcmVhdGUoQGJvZHkgxAXIK9Y0x3pjdXN0b21HZXTId8kR6gC0yjh9Cg%3D%3D):
- [REST example](https://typespecplayground.z22.web.core.windows.net/?c=aW1wb3J0ICJAY2FkbC1sYW5nL3Jlc3QiOwoKQHNlcnZpY2VUaXRsZSgiV2lkZ2V0IFPGFSIpCm5hbWVzcGFjZSBEZW1vxxg7Cgp1c2luZyBDYWRsLkh0dHA7zBFSZXN0OwoKbW9kZWwgx1J7CiAgQGtleSBpZDogc3RyaW5nOwogIHdlaWdodDogaW50MzLEEWNvbG9yOiAicmVkIiB8ICJibHVlIjsKfQoKQGVycm9yx1ZFxAzFVWNvZGXLQG1lc3NhZ2XKZH0KCmludGVyZuQAxOYAjecAxiBleHRlbmRzIFJlc291cmNl5AC5xQlPcGVyYXRpb25zPMYyLMZxPsVyQOQA0EByb3V0ZSgiY3VzdG9tR2V0IikgyQwoKTrHa%2BQAgA%3D%3D):
- [HTTP example](https://cadlplayground.z22.web.core.windows.net/?c=aW1wb3J0ICJAY2FkbC1sYW5nL3Jlc3QiOwoKQHNlcnZpY2VUaXRsZSgiV2lkZ2V0IFPGFSIpCm5hbWVzcGFjZSBEZW1vxxg7CnVzaW5nIENhZGwuSHR0cDsKCm1vZGVsIMdAewogIEBrZXkgaWQ6IHN0cmluZzsKICB3ZWlnaHQ6IGludDMyxBFjb2xvcjogInJlZCIgfCAiYmx1ZSI7Cn0KCkBlcnJvcsdWRcQMxVVjb2Rly0BtZXNzYWdlymR9CgppbnRlcmbkALLmAI3nALTFP0DkAJ1saXN0KCk6xx9bXSB8xmHEUUByb3V0ZSgid8Uccy97aWR9IinGOHJlYWQoQHBhdGjrANfJSM1GcG9zdCBjcmVhdGUoQGJvZHkgxAXIK9Y0x3pjdXN0b21HZXTId8kR6gC0yjh9Cg%3D%3D):
- [REST example](https://cadlplayground.z22.web.core.windows.net/?c=aW1wb3J0ICJAY2FkbC1sYW5nL3Jlc3QiOwoKQHNlcnZpY2VUaXRsZSgiV2lkZ2V0IFPGFSIpCm5hbWVzcGFjZSBEZW1vxxg7Cgp1c2luZyBDYWRsLkh0dHA7zBFSZXN0OwoKbW9kZWwgx1J7CiAgQGtleSBpZDogc3RyaW5nOwogIHdlaWdodDogaW50MzLEEWNvbG9yOiAicmVkIiB8ICJibHVlIjsKfQoKQGVycm9yx1ZFxAzFVWNvZGXLQG1lc3NhZ2XKZH0KCmludGVyZuQAxOYAjecAxiBleHRlbmRzIFJlc291cmNl5AC5xQlPcGVyYXRpb25zPMYyLMZxPsVyQOQA0EByb3V0ZSgiY3VzdG9tR2V0IikgyQwoKTrHa%2BQAgA%3D%3D):
- [TypeSpec Getting Started](https://github.com/microsoft/typespec#getting-started)
- [TypeSpec Website](https://microsoft.github.io/typespec)

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

@ -15,7 +15,7 @@ export default function Playground() {
{
<iframe
title="TypeSpec Playground"
src="https://typespecplayground.z22.web.core.windows.net"
src="https://cadlplayground.z22.web.core.windows.net"
style={{
height: "100%",
width: "100%",