97 Commits
Author SHA1 Message Date
fisker Cheung a42e063d5c Enable unicorn/no-useless-template-literals rule (#19383) 2026-06-16 09:05:58 +08:00
fisker Cheung f6bd3cbd8a Rewrite build script (#18427) 2025-12-05 04:53:15 +08:00
fisker Cheung e240f15e75 Major refactor (#18381) 2025-12-01 07:25:25 +08:00
fisker Cheungandautofix-ci[bot] ca5c11e95d Enable @prettier/plugin-oxc in playground (#18315)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-25 02:13:03 +08:00
fisker Cheung 3c469a820e Update node-style-text to v2 (#18073) 2025-10-14 19:30:07 +08:00
fisker Cheung 4df0a871ca Add hermes parser (#17520) 2025-05-29 15:30:45 +08:00
fisker Cheungandautofix-ci[bot] c26d23c955 Add oxc parser (#17472)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-27 09:35:31 +08:00
fisker Cheung 377b231a5d Bundle package into dist/prettier/ (#15825) 2025-04-09 08:38:46 +08:00
fisker Cheung 14fd0f6caf Use ESM version in playground (#17125) 2025-02-25 08:29:09 +08:00
fisker Cheung 701d2a7136 Use node-text-style in script files (#17034) 2025-01-23 14:26:54 +08:00
fisker Cheung 07b468917e Remove blank lines between imports (#16450) 2024-09-29 17:56:37 +08:00
fisker Cheung 092b9f72a5 Build: Improve license creation (#16435) 2024-07-02 10:01:15 +08:00
Alexander Kachkaev 1ea2fd059a Add eslint-plugin-simple-import-sort (#15817) 2023-12-18 03:34:12 +08:00
fisker Cheung 999c2c2750 Build: Use node:util to parse arguments (#15253)
* Build: Use `node:util` to parse arguments

* Fix

* Update parse-arguments.js
2023-08-23 16:15:25 +09:00
Sosuke Suzuki fa48415617 Bump Prettier dependency to 3.0.0 2023-07-05 21:50:05 +09:00
fisker Cheung 186a177017 Rename .mjs files to .js (#14605) 2023-03-28 16:18:53 +08:00
fisker Cheung f4a6232848 Switch some scripts to ESM (#10867) 2021-05-15 20:09:52 +08:00
fisker Cheung 2eb2df6ed2 Update babel config (#10855) 2021-05-12 08:11:43 +08:00
fisker Cheung 98abb990cc Use Object.fromEntries(), Array#flat() and Array#flatMap() (#10853) 2021-05-12 01:05:29 +08:00
fisker Cheung b7983971ce Drop Node.js 10 support for development "build" (#10842) 2021-05-11 08:52:38 +08:00
fisker Cheung 64a3906571 Enable unicorn/prefer-optional-catch-binding (#9464) 2021-02-25 18:28:55 +08:00
fisker Cheung ce26805e84 Enable unicorn/prefer-spread (#10129) 2021-01-26 09:46:14 +08:00
Sosuke Suzuki e2c84527e7 Use fs.promises in build script (#10025) 2021-01-09 02:09:40 +09:00
Sosuke Suzuki de882505f0 Fix params mistaking at #9900 (#9912) 2020-12-16 18:46:56 +09:00
Sosuke Suzuki cb6a977733 Prints bundle sizes in build script log (#9900)
* Prints bundle size with flags

* Add "gzipped" to cspell.json

* Print esm bundle size

* Remove gzipped size from log
2020-12-16 08:45:29 +09:00
fisker Cheung fb07399ac5 Playground: only build needed files (#9480) 2020-10-26 09:44:09 +08:00
fisker Cheung e32cd5d284 Fix missing esm files in dist/package.json (#9491) 2020-10-26 09:07:44 +08:00
dependabot[bot]andfisker 5af5fa7a66 Build(deps-dev): Bump webpack from 4.44.2 to 5.1.0 (#9373)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-10-22 13:32:50 +08:00
Yuku Kotaniandfisker 549090a5ba Add ESM distributions for browser (#8983)
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-17 00:08:44 +08:00
fisker Cheung e8b299d164 Rename native shims to .mjs (#9079) 2020-08-28 10:03:36 +08:00
fisker Cheung 5223b78dcd Build: Quick fix for #8639 (#9035)
* Quick fix for #8639

* style

* style (prettier)
2020-08-24 19:19:13 +09:00
fisker Cheung 038d1642b2 Build: remove --max-old-space-size (#8994) 2020-08-18 21:52:02 +08:00
fisker Cheung b8a3f84c19 Build: Avoid PREFER_NAMED_EXPORTS warning (#8814) 2020-07-24 13:01:43 +08:00
fisker Cheung f8e6c215ce Refactor: Move parsers to language index (#8765) 2020-07-17 09:06:00 +08:00
fisker Cheung 0c2b918078 ESLint: enable import/order (#8635) 2020-06-26 20:30:21 +08:00
b3ea679958 Fix encoding in postcss-parser build (#8534)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-06-12 09:12:42 +08:00
fisker Cheung 23567c4e43 Switch rollup-plugin-babel to @rollup/plugin-babel (#8282)
* Switch `rollup-plugin-babel` to `@rollup/plugin-babel`

* Add `babelHelpers: "bundled"`

* Update cache version

* Remove `babelHelpers` for webpack

* Move `babelHelpers` to rollup only
2020-05-11 21:27:54 +03:00
fisker Cheung 01c2015f72 Update CI cache key (#8236)
* Update CI  cache  key

* Update build script, expect missing cache
2020-05-07 03:51:25 +08:00
fisker Cheung 207d5245c5 Build: exclude index.js from bin-prettier (#8119) 2020-05-06 18:43:04 +08:00
fisker Cheung ea2169a97f Build: Fix cache logic (#8128) 2020-04-24 11:00:06 +08:00
Georgii Dolzhykov 9dad95b35f Bump Prettier dependency to 2.0.0 2020-03-21 22:09:54 +02:00
fisker Cheung 23079c461e Update babel target (#7418) 2020-01-29 09:03:36 +09:00
fisker Cheung afd3e5d101 Fix some String#repeat (#7335) 2020-01-19 00:48:04 +02:00
fisker Cheung eac6fba2c3 Fix new usage for builtin objects (#6968) 2019-11-17 11:36:21 +01:00
fisker Cheung e44c360c62 Update build scripts to target Node.js 10 (#6908) 2019-11-13 18:08:40 +01:00
fisker Cheung 1d1a90144f Fix bin permissions (#6902) 2019-11-09 17:42:52 +01:00
fisker Cheung b5a201b0ae Prevent webpack generate .LICENSE file when minify (#6737)
* check build result

* list dist file

* Update build script

* restore ci script [skip ci]
2019-10-30 14:33:52 +02:00
fisker Cheung b5cc13a5df Remove usage of require.extensions in parser-glimmer.js (#6658)
* Fix usage of `require.extensions`

* try cjs build

* update comment
2019-10-15 18:00:32 +02:00
fisker Cheung f86a5bfae3 Update webpack to v4.41.0 (#6560)
* Update `webpack` to v4.41.0

* update cache version
2019-09-28 15:40:28 +02:00
fisker Cheung 71d9a08488 Minify postcss parser (#6395)
* Update webpack to v4

* add todo

* add link

* Minify postcss parser

* update yarn.lock

* chore: update yarn.lock
2019-09-16 12:13:32 +03:00