Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
Timothee Guerin 9c7bf80187
Migrate test framework to vitest (#2769)
Get rid of mocha and upgrade to vitest which is a more modern
alternative providing, watch, direct typescript compilation out of the
box, expect library and more.

Advantage over mocha:
- Much better cli
  -  watch mode
  - better diff
- Better extension:
  -  tree organization for files too (not everything flattened)
- update in real time the test(no more need to refresh manually to
discover where are the tests)
  - just a little buggy
- Compiles typescript directly
- provides more expectation apis(like jest)

Cons over mocha: 
- Slower(about 2x) but that means we don't need to build the test as
part of build which would speed up that part(not as much as is lost)

Todo: 
- typespec-azure migration
2024-01-02 11:40:29 -08:00
Timothee Guerin 204083faa0
Fix forgot to remove removed packages from tsconfig (#2770) 2023-12-22 11:11:01 -08:00
Timothee Guerin 216d28ebe4
VSCode extension: Use rollup for dev build too (#2730)
Problem is vscode still doesn't allow loading es modules so we had all
those hacks to make it work but loading es modules from comon js is
always problematic. Using rollup to generate a commonjs output solve the
problem and we are using that for the published version just not in dev.
Issue with this new approach is `rush watch` won't build the extension
but that's also not something you often need to touch.
2023-12-14 10:04:01 -08:00
Timothee Guerin 043ab92925
Use rollup in playground (#2584)
Use rollup to bundle the playground UI library package.

This allows to bundle the css with watch.
2023-11-01 16:52:45 +00:00
Timothee Guerin 7d2ec8ba70
Playground bundle storage (#2587)
progress for [#2044](https://github.com/microsoft/typespec/issues/2044)

Bundle every package and upload it to a referencable endpoint.

Also add the ability for the playground to manage it owns importmap or
bundle local libraries automatically.
2023-10-31 15:04:48 -07:00
Timothee Guerin adbb1559cd
Rename `ref-doc` package to `tspd` and provide a cli that can be used by each package (#2225)
Progress towards providing the ref doc generation as a usable tool by
any typespec library.

Detach the generation from the website, instead each package define
where they want their doc and we generate it.

This adds a new `tspd` package and CLI tool that is meant to be used by
library authors. It will have the following functionalities
- generate docs
- generate TS signatures
- lint library?

---------

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2023-08-01 22:34:18 +00:00
Timothee Guerin 62eb0c5336
Feature: Built-in linter engine (#2066)
Fix #1996

Implementation for the linter engine
2023-06-26 09:38:07 -07:00
Brian Terlson 6259a65cb0
Implement Json Schema emitter (#1601) 2023-06-02 15:45:03 -07:00
Timothee Guerin 6733c5b0a8
Feature: `valueof` for string, numeric and boolean literals (#1877) 2023-06-02 13:35:00 -07:00
Timothee Guerin d6160d9b61
Split playground package (#1965) 2023-05-31 08:49:16 -07:00
Timothee Guerin 829e1b6d50
`@header` and `@query` no longer default the `format` to `csv` and `multi` respectively (#1735) 2023-03-22 13:35:31 -07:00
Allen Zhang 064161d827 1/3 TypeSpec: Find/Replace Content 2023-02-16 13:07:22 -08:00
Nick Guerrera 8af108ddeb
Add emitter metadata handling end-to-end sample and doc (#1575)
Also allow --option=path/to/emitter.js.option=value in cli args
2023-01-31 21:17:46 +00:00
Timothee Guerin 9b6a32d8f4
Reference doc generation (#1415) 2022-12-15 08:48:16 -08:00
Timothee Guerin 616d9831b3
Migration tool (#1310) 2022-11-29 14:22:51 -08:00
Timothee Guerin ed47957570
Linter system (#1030) 2022-09-26 17:03:58 -07:00
Timothee Guerin ede4b4efb7
Eslint plugin for linting Cadl Typescript code (#569) 2022-05-31 09:19:03 -07:00
Timothee Guerin 1d01647168
Add library linter package (#424) 2022-05-19 08:20:12 -07:00
Timothee Guerin 3fdd7fc561
Basic html program viewer (#392) 2022-05-18 21:20:18 -07:00
Timothee Guerin 2834d0f27c
Bundler: New tool to bundle Cadl libraries for browser usage (#510) 2022-05-10 11:57:15 -07:00
Timothee Guerin e966efd30e
New `@cadl-lang/internal-build-utils` package for build helpers shared across pkgs (#465) 2022-04-21 08:16:10 -07:00
Brian Terlson 4bdf8938ca
Add a playground (#302) 2022-03-11 10:52:58 -08:00
Timothee Guerin ba68290633
Seperate openapi decorators into own library (#205) 2022-02-02 14:55:10 -08:00
Brian Terlson b8c461526f
Implement projections and versioning (#16)
Adds support for projections, an experimental language feature that lets users write code to modify types dynamically, and a package for implementing versioning on top of this functionality.
2022-02-01 14:18:15 -08:00
Nick Guerrera c9c7e11583
Add missing package to tsconfig.json for watch build (#204) 2022-01-26 14:29:16 -06:00
Nick Guerrera 2c5454dc1a Port build process to new OSS repo 2021-10-19 15:21:39 -05:00