Commit Graph
101 Commits
Author SHA1 Message Date
fisker Cheung 6c9ba400fa Bundle printers in plugins (#14354) 2023-03-13 09:20:12 +08:00
fisker Cheung 18baca62c9 Build: Auto generate types files for plugins (#14462) 2023-03-13 09:17:24 +08:00
fisker Cheung 134f6078e1 Add document/public.js to export public apis, remove internal utils (#14456) 2023-03-07 08:54:11 +08:00
fisker Cheung 758dfcac67 Build: add utility to get package files (#14430) 2023-03-01 15:34:30 +08:00
SUZUKI Sosukeandfisker Cheung 813df18df6 Moves @types/prettier to this repository (#14212)
* Rename `types` to `thirs-party-types`

* Copy `index.d.ts` from `@types/prettier`

* Make public APIs async

* Add missing `formatAST`

* Fix `CustomParser`

* Fix `Parser.parse` signature

* Add comment

* Add `standalonw.d.ts`

* first implement

* Fix path

* Add missing parser `.d.ts`

* Fix

* Fix path

* Introduce valid tests

* Add unit tests for dts files

* Add unit tests

* Simplify unit testing

* Tweaks structures

* Revert needless change

* Fix types path

* Introduce `ts-expect`

* Fix doc utils api

* Add AstPath API

* Fix API

* Fix tests

* Fix changelog

* Move dts

* Update module specifiers

* Remove generate dts config file

* Update build scripts

* Fix type errors

* Refactor with namespace imports

* Update comments

* Fix build script

* Improve build script

* `typing` -> `types`

* Clean up

* Minor tweak

* Minor tweak

* Modify `exports` field

* Fix paths in builder

* Refactor

* Refactor

* Address review

* Update changelog

* Address reviews

* Remove `since` from tests

* Improve utils type def

* Mark deprecated methods

* Address review

* Move docs types

* Address review

* Update c8 config

* Minor tweak

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-02-23 22:15:18 +09:00
fisker Cheung 0d6c8f681d Update typescript-eslint to v5.52 (#14358) 2023-02-19 11:15:06 +08:00
fisker Cheung 5ea9a8f81f Reduce bundle size (#14370) 2023-02-16 15:02:41 +08:00
fisker Cheung 3102686278 Update build script (#14362) 2023-02-15 12:35:14 +08:00
renovate[bot]andfisker 04ac860123 Update typescript-eslint to v5.51.0 (#14346)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-02-12 20:09:37 +08:00
fisker Cheung bd402ab67e Reduce size of meriyah parser (#14278) 2023-02-03 11:10:00 +08:00
fisker Cheung 3e49250841 Update flow-parser to v0.194.0 (#13928) 2022-12-05 10:11:01 +08:00
renovate[bot]andfisker 824aff897b Update typescript-eslint to v5.42.0 (#13806)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2022-11-06 21:46:46 +08:00
fisker Cheung 4f13d715c7 Reduce size of postcss plugin (#13745) 2022-10-29 16:28:20 +08:00
fisker Cheung 76068c4f8c Reduce size of typescript plugin (#13697) 2022-10-23 11:19:57 +08:00
fisker Cheung 36460d5fd6 Reduce size of glimmer plugin (#13698) 2022-10-22 23:35:19 +08:00
fisker Cheung 791bcb4e72 Update typescript plugin build script (#13637) 2022-10-16 13:36:22 +08:00
fisker Cheung 2d0041cad5 Reduce size of index.mjs (#13636) 2022-10-16 12:13:19 +08:00
fisker Cheung 3ca842d81c Update @angular/compiler to v14 (#13609) 2022-10-11 11:26:30 +08:00
renovate[bot]andfisker Cheung f4f36b94ec Update dependency angular-estree-parser to v3 (#13603)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-10-10 10:01:13 +08:00
fisker CheungandSosuke Suzuki 31a796d32c Restructure package files, add exports (#13530)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-10-06 15:20:19 +08:00
fisker Cheung 81a4d455f3 Build: Refactor build script (#13513) 2022-09-25 11:50:59 +08:00
fisker Cheung 1569db783b Rename bin-prettier.js bundle to bin-prettier.cjs (#13511) 2022-09-23 19:25:16 +08:00
fisker Cheung 5465517f4b Bundle third-party.js in ESM (#13509) 2022-09-23 19:24:54 +08:00
fisker Cheung 16c9d8bafe Bundle files in ESM (#13266) 2022-09-23 09:46:18 +08:00
fisker Cheung 6082e3ec9e Remove outdated hack for flow parser (#13442) 2022-09-08 09:43:47 +08:00
fisker Cheung a6d6c9c3a2 Merge remote-tracking branch 'remotes/upstream/main' into next
# Conflicts:
#	scripts/build/config.mjs
2022-09-06 20:43:52 +08:00
fisker Cheung cd3e530c2e Reduce size of parser-typescript.js (#13431) 2022-09-06 20:38:50 +08:00
Sosuke Suzuki 503045c050 Use import() for postcss parsers (#13277)
* Import core parsers

* Import media parser

* Import selector parser

* Import value parser

* Remove require

* Improve imports

* Fix bundle config
2022-08-15 22:30:46 +09:00
fisker Cheung 2052ce5cb8 Bundle CLI as ES Module (#13091) 2022-08-11 14:08:08 +08:00
fisker Cheung a6661e850c Use import() in parsers (#13261) 2022-08-10 19:32:44 +08:00
fisker CheungandGeorgii Dolzhykov 0b9cb96f58 Remove support for custom parser api (#13250)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-08-08 01:09:10 +08:00
fisker Cheung 29f6bc2c6d Migrate third-party.js to ES Module (#13092) 2022-07-12 10:20:11 +08:00
renovate[bot]andfisker Cheung ba2192a134 Update dependency esbuild to v0.14.46 (#12999)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-06-19 19:12:51 +08:00
fisker Cheung 83ec3c36e3 Build: stricter warning check (#12956) 2022-06-01 19:23:13 +08:00
fisker Cheung 567e4d9e79 Test: Use worker to run CLI test (#12705) 2022-05-10 15:42:11 +08:00
fisker Cheung ff98159873 Use named export in doc.js (#12789) 2022-05-07 01:37:40 +08:00
fisker Cheung fcc8c484c3 Use yarn 3 (#12599) 2022-05-06 20:27:33 +08:00
fisker Cheung cabc9e13b5 Fix some esbuild warnings (#12798) 2022-05-06 18:52:40 +08:00
fisker Cheung c1f6d021e5 Use named export instead of default export (#12740) 2022-05-05 15:03:08 +08:00
fisker Cheung 3cbee742a7 Add please-upgrade-node back to CLI (#12448) 2022-04-03 00:04:45 +08:00
fisker Cheung 21c68e36ae Build: migrate scripts/shims/* to ESM (#12371) 2022-03-25 16:37:34 +08:00
fisker Cheung ad566ad2f4 Linting 2022-03-24 16:50:23 +08:00
fisker Cheung 916cae5a1d Fix build script 2022-03-24 15:17:26 +08:00
fisker Cheung a21dfbfa21 Merge branch 'main' into next-rebase
# Conflicts:
#	.eslintrc.cjs
#	package.json
#	scripts/build/bundler.mjs
#	scripts/build/config.mjs
#	scripts/build/esbuild-plugins/replace-module.mjs
#	src/cli/file-info.js
#	src/cli/find-config-path.js
#	src/cli/index.js
2022-03-24 15:02:29 +08:00
fisker Cheung 6664253b9e Fix error when bundle prettier with webpack (#12511) 2022-03-24 11:20:55 +08:00
fisker Cheung 4250812682 Remove require from UMD bundles (#12485) 2022-03-23 10:21:02 +08:00
fisker Cheung e67aa193ef Build: Dedupe semver package (#12468) 2022-03-21 10:37:57 +08:00
fisker Cheung 0d668bcc0d Reduce size of parser-postcss.js (#12488) 2022-03-20 21:56:09 +08:00
fisker Cheung 7544c32c53 Build: Combine replace-module and replace-text plugin (#12489) 2022-03-20 14:04:30 +08:00
fisker Cheung 9b2dc0e4e6 Build: Fix build script for next branch (#12483) 2022-03-17 21:22:52 +08:00