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

25 Коммитов

Автор SHA1 Сообщение Дата
Timothee Guerin 5698be15fe
Make the sync label logic reusable for typespec-azure repo (#3425)
To allow this https://github.com/Azure/typespec-azure/pull/903
2024-05-23 17:01:14 +00:00
m-nash 87f210ce4b
Connect emitter to generator and use that path during generate.ps1 (#3320)
Fixes https://github.com/Azure/autorest.csharp/issues/4464

---------

Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
2024-05-10 22:20:10 +00:00
Timothee Guerin afd377242e
Include tmlanguage computed file in repo as we'll need it for github linguist (#2872)
To register a tm language on github linguist we need to publish our
grammar.
Instructions
https://github.com/github-linguist/linguist/blob/master/CONTRIBUTING.md#adding-a-language
2024-02-09 04:07:46 +00:00
Timothee Guerin 7452fe9a57
Update dependencies - feb 2024 (#2900)
General dependency updates, notable:
- typescript 5.3
- chronus 0.6.0 (BREAKING  THE CHANGELOG FORMAT)
2024-02-08 15:14:01 -08:00
Timothee Guerin 842405e8d1
Get rid of rush and move to pnpm (#2775)
Remove the opinionated (wrongly so most of the time) middleman that
brings more config pain than value.

Things to check:
- [x] Parallel build performance vs rush
- [ ] Publishing with submodule
- [x] Changesets
2024-01-24 13:37:34 -08:00
Timothee Guerin 5af94f0762
Website public beta (#2418)
This is a feature branch containing the progress for the website

URL: https://tspwebsitepr.z22.web.core.windows.net/prs/2418/
2024-01-19 09:42:25 -08:00
Timothee Guerin 55e232d553
Add a new init template to setup a library (#2766)
Add a new library template with:
- `@alernateName` decorator with some custom diagnostics and tests for
it.
- a linter rule and 2 rulesets(`recommended` and `all`)
2024-01-04 12:22:21 -08:00
Timothee Guerin 9aa57063d9
Template for setting up an emitter (#2736)
## Add a new template for scaffolding an emitter

`emitter-ts` template setup the following:
- basic emitter files
- typescript
- test with node test runner with basic test and test host setup
- prettier
- linting with eslint 

## Change to the init area

- Added a new `--template` cli option to allow selecting the template
without a prompt.
- Refactor to make it easier to test. **Note that none of the API is
exposed yet so its just for internal use.**

## Added e2e test for templates

Scafold the template and then run commands like `npm install`, `npm run
build`, `npm run test`, etc. to make sure everything is done correctly.

This is quite costly so might be worth separating in a different step
2023-12-19 16:13:49 -08:00
Mark Cowlishaw e52a32c76a
Prepare Publish for December release (#2740) 2023-12-06 12:43:01 -08:00
Travis Prescott a5fc253410
Core documentation - generate data type docs programmatically (#2467)
Fixes #2297.
2023-09-25 09:50:32 -07:00
Timothee Guerin 31fd5abf97
Samples as tests (#2215)
fix [#3017](https://github.com/Azure/typespec-azure/issues/3017)

Run the samples as test which allows all of them to run without crashing
on the first one, lets us run it in the test explorer.

This also make the sample regeneration much faster(typespec azure repo):
- Before `~90s`
- Now `~12s`


![image](https://github.com/microsoft/typespec/assets/1031227/a3356a90-7847-43cf-a473-4ecda0c53330)

## New `resolveCompilerOptions` utils
This also include the addition of a new util `resolveCompilerOptions`
that resolve the compiler options programtically in the same way that
the cli would have for a given entrypoint.

I can move this into a dedicated PR if people prefer.

---------

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
2023-08-04 10:19:02 -07:00
Nick Guerrera cbf6186c65
Prepare publish of April release (#1813) 2023-04-11 15:17:57 -05:00
Timothee Guerin 2c6edb4f80
Better integrate compiler auto generation of docs (#1759) 2023-03-31 19:40:47 +00:00
Allen Zhang 37bc188bb5
fixing helper.js file extensions (#1678) 2023-02-27 16:24:19 -08:00
Allen Zhang ec21edc669
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
2023-02-17 13:35:12 -08:00
Allen Zhang 064161d827 1/3 TypeSpec: Find/Replace Content 2023-02-16 13:07:22 -08:00
Allen Zhang 27ad454852
Update cadl init Azure template (#1515)
* initial template checkin

* Updating Azure DP cadl template

* Adding '/' to work for both local path and url path

* remove unused properties.

* CR Comments

* Adding 'azure' command line template url shortcut

* Updating template with sample cadl and examples

* Adding a flag to skip adding compiler package
2023-01-10 10:04:33 -08:00
Timothee Guerin e0e4394bb0
Versioned docs (Latest and Next) (#1469) 2023-01-03 19:02:22 +00:00
Timothee Guerin 9b6a32d8f4
Reference doc generation (#1415) 2022-12-15 08:48:16 -08:00
Timothee Guerin 054cf45a49
Migrate website to use docusaurus (#1266) 2022-11-14 12:44:38 -08:00
Timothee Guerin 961b73b5eb
Augment decorator (#1036) 2022-10-03 22:07:36 +00:00
Timothee Guerin 47a7851d9e
Plug in code coverage collection into tests and upload to ADO (#208) 2022-01-28 17:44:56 +00:00
Nick Guerrera 53cbecc69c
Use prettier for markdown too (#72) 2021-11-19 15:52:17 +00:00
Timothee Guerin 8c9f62faca
Setup cadl prettier plugin to format samples and libraries (#26) 2021-10-28 16:51:44 +00:00
Nick Guerrera 2c5454dc1a Port build process to new OSS repo 2021-10-19 15:21:39 -05:00