Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tools/apiview/emitters/typespec-apiview/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
5 changes: 0 additions & 5 deletions tools/apiview/emitters/typespec-apiview/.mocharc.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions tools/apiview/emitters/typespec-apiview/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release History

## Version 0.5.0 (01-08-2025)
Support new internal APIView tree-structure.

## Version 0.4.9 (07-09-2024)
Fix issue where "unknown" was rendered as "any".
Support value syntax for objects and arrays.
Expand Down
5,325 changes: 3,270 additions & 2,055 deletions tools/apiview/emitters/typespec-apiview/package-lock.json

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions tools/apiview/emitters/typespec-apiview/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-apiview",
"version": "0.4.9",
"version": "0.5.0",
"author": "Microsoft Corporation",
"description": "Library for emitting APIView token files from TypeSpec",
"homepage": "https://github.com/Azure/azure-sdk-tools",
Expand Down Expand Up @@ -38,15 +38,16 @@
"node": ">=16.0.0"
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"clean": "rimraf ./dist ./temp ./tsp-output",
"prebuild": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
"build": "npm run prebuild && tsc -p . && npm run lint-typespec-library",
"purge": "rimraf ./node_modules ./package-lock.json",
"build": "npm run clean && npm run prebuild && tsc -p . && npm run lint-typespec-library",
"watch": "tsc -p . --watch",
"lint-typespec-library": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
"test": "mocha",
"test-official": "c8 mocha --forbid-only --reporter mocha-multi-reporters",
"test": "vitest",
"lint": "eslint . --ext .ts --max-warnings=0",
"lint:fix": "eslint . --fix --ext .ts"
"lint:fix": "eslint . --fix --ext .ts",
"api-view": "node ./node_modules/@typespec/compiler/entrypoints/cli.js compile main.tsp --emit=@azure-tools/typespec-apiview"
},
"files": [
"lib/*.tsp",
Expand All @@ -59,24 +60,23 @@
},
"devDependencies": {
"@azure-tools/typespec-azure-core": ">=0.43 <1.0",
"@typespec/http": ">=0.57 <1.0",
"@typespec/rest": ">=0.57 <1.0",
"@types/node": "~18.11.19",
"@typespec/eslint-plugin": ">=0.57 <1.0",
"@typespec/http": ">=0.57 <1.0",
"@typespec/library-linter": ">=0.57 <1.0",
"@typespec/prettier-plugin-typespec": ">=0.57 <1.0",
"@types/mocha": "~9.1.0",
"@types/node": "~18.11.19",
"@typespec/rest": ">=0.57 <1.0",
"@vitest/coverage-v8": "^2.1.0",
"c8": "^9.1.0",
"cspell": "^8.8.1",
"eslint": "^8.57.0",
"eslint": "^9.11.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unicorn": "^53.0.0",
"eslint-plugin-vitest": "^0.5.4",
"prettier": "~3.2.5",
"rimraf": "~5.0.7",
"source-map-support": "^0.5.19",
"typescript": "~5.4.5",
"mocha": "~9.2.0",
"mocha-junit-reporter": "~2.0.2",
"mocha-multi-reporters": "~1.5.1",
"source-map-support": "^0.5.19"
"vitest": "^2.1.3"
}
}
Loading
Loading