Sébastien Lorber
d268a20a6f
fix(core): bundler should not minimize static assets ( #10658 )
2024-11-08 18:26:37 +01:00
Chongyi Zheng
45f1a669b5
feat(core): support TypeScript + ESM configuration ( #9317 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-14 02:46:03 +02:00
Sébastien Lorber
b3c8f5c929
feat: Docusaurus v3 upgrades and require TypeScript 5 ( #9258 )
2023-08-25 10:54:58 +02:00
Sébastien Lorber
012b285805
feat: create official TypeScript base config @docusaurus/tsconfig ( #9050 )
2023-06-09 15:21:46 +02:00
Sébastien Lorber
187e5aa218
feat: React 18 + automatic JSX runtime + build --dev ( #8961 )
2023-06-08 19:40:15 +02:00
Joshua Chen
b4d93b9bd0
chore: upgrade to TS 4.7, compile with NodeNext ( #7586 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-15 19:15:11 +02:00
Joshua Chen
2d94d575a1
refactor: make entire project typecheck with root tsconfig ( #7466 )
2022-05-23 12:54:25 +08:00
Joshua Chen
f4ab7c65ac
feat(preset-classic, content-docs/client): JSDoc ( #7148 )
...
* refactor: add JSDoc for preset-classic, content-docs/client
* fix
2022-04-11 09:36:30 +08:00
Joshua Chen
25ba91fd4d
fix(website): remove skipLibCheck ( #7147 )
2022-04-11 07:43:30 +08:00
Joshua Chen
2a7820582c
chore: upgrade dependencies ( #7138 )
...
* chore: upgrade dependencies
* reorg
* update comment
2022-04-09 12:36:10 +08:00
Joshua Chen
3334bfb4fa
chore(website): enable strict compiler option ( #6012 )
2021-11-26 18:14:35 +08:00
Sébastien Lorber
668f3c2506
refactor(website): polish on Showcase page ( #5969 )
2021-11-20 18:31:20 +01:00
Joshua Chen
7a6607cfa1
refactor: remove a few Lodash usages & ESLint enforcement ( #5807 )
...
* refactor: remove some lodash usage
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Enforce ESLint
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* More forbids
* Fixup
* Fix
* Fix website
2021-10-28 12:48:58 +08:00
Joshua Chen
df3752cc71
fix: fix a few TS errors ( #5437 )
...
* fix errors
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Fix website
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Revert adding lib
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Fix tsconfig
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Restore previous ordering
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* exclude sw.js from typechecking
* Tests: include typechecking of website
* cleanup @site/ alias in TS config
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-08-30 13:06:00 +02:00
Joshua Chen
6c21061e34
refactor(website): convert website to TypeScript ( #5328 )
...
* Initial work
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Minor changes
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Fix error
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* This looks better
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Address suggestions
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Better style
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Better style
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Better context typing
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Update edit URL
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Minor refactor
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
2021-08-11 11:38:33 +02:00
Sam Zhou
ec3c281952
docs(v2): Document TypeScript support ( #2997 )
2020-06-26 12:09:21 +02:00
Sam Zhou
5ccd24cc1f
feat(v2): Support swizzling TypeScript components ( #2671 )
...
* feat(v2): Support swizzling TypeScript components
* Add tsc --noEmit to tsc script in theme-classic
Now everything can pass the type checker! (although still a lot of any)
* Add tsconfig and types.d.ts to website
Improve developer experience.
As an example, I converted NotFound to tsx
* Apply type annotation suggestions
* Do not fallback to `getThemePath` if getTypeScriptThemePath is undefined
* Fix tsc
* Add module declaration for @theme-original/*
* Move babel cli to root package.json
2020-06-25 16:07:30 +02:00