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

12 Коммитов

Автор SHA1 Сообщение Дата
Timothee Guerin 3d14d7c2c9
Bump dependencies - Sep 2024 (#4424)
Notable: 
- Typescript 5.6: iterator functions  and more
- typescript-eslint 8: new rules, breaking change to some other, found a
few bugs/test not actually testing
- eslint 9: new rules
- removed deprecation/deprecation plugin as typescript eslint has rule
for it now(and updated) many places where it wasn't reporting correctly
2024-09-13 15:50:22 +00:00
Timothee Guerin 42e72b813d
Add storybook for playground library (#3412)
Don't include it anwhere but this will help showcasing all the
components available in the playground.


![image](https://github.com/microsoft/typespec/assets/1031227/8a7e130f-2e3f-4149-9f33-ed8991950ea2)
2024-05-24 02:37:11 +00:00
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 fb7de9c832
More UI changes to the playground (#2683)
Changes:
## Get rid of emotion and use pure css modules

## Better UI for errors  and warnings
Errors and warnings are now an expandable banner at the bottom of the
UI, it is completely resizable in the same way as the left and right
pane are.

<img width="363" alt="image"
src="https://github.com/microsoft/typespec/assets/1031227/3c126340-10e4-4dca-9ba2-a76fa9393119">

<img width="336" alt="image"
src="https://github.com/microsoft/typespec/assets/1031227/0cef33df-df5e-4017-8d42-d7a8fbcb053f">

<img width="730" alt="image"
src="https://github.com/microsoft/typespec/assets/1031227/baab69fe-5ea5-497d-8377-110a809e467a">

## Output tabs align with the command bar and use fluentui tabs(Makes
the tabs accessible)

<img width="627" alt="image"
src="https://github.com/microsoft/typespec/assets/1031227/90f9ac54-3c02-48f1-a7ed-f85b57e360fd">
2023-11-22 08:43:13 -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 99d80f82da
Fix playground usage from external package (#2540)
Playground usage was completely broken when used as a package. Local
reference seems to make it work but hwne the package is in node_modules
vite doesn't allow certain things
2023-10-05 12:59:06 -07:00
Timothee Guerin d6160d9b61
Split playground package (#1965) 2023-05-31 08:49:16 -07:00
Timothee Guerin c3d9af2064
Reusability: Use css in JS for playground and export a Playground component (#1146) 2022-10-19 16:55:05 +00: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 d2fbbb717f
Use react for playground (#457) 2022-04-21 08:55:04 -07:00
Timothee Guerin 1312ef7672
Basic E2E ui test for the playground (#412) 2022-04-06 14:19:26 -07:00
Brian Terlson 4bdf8938ca
Add a playground (#302) 2022-03-11 10:52:58 -08:00