Concurrent prettier runner
Перейти к файлу
Connor Peet c7d50c8e29
fix: handle error gracefully
Fixes #5
2021-01-21 23:04:02 -08:00
.vscode fix: handle error gracefully 2021-01-21 23:04:02 -08:00
src fix: handle error gracefully 2021-01-21 23:04:02 -08:00
.eslintrc.js chore: update to prettier@2 2020-04-07 09:30:48 -07:00
.gitignore init 2019-05-08 13:06:47 -07:00
.npmignore init 2019-05-08 13:06:47 -07:00
LICENSE init 2019-05-08 13:06:47 -07:00
package-lock.json 2.0.0 2020-04-07 09:34:37 -07:00
package.json fix: event listener warning on large workspaces 2021-01-21 22:38:16 -08:00
readme.md init 2019-05-08 13:06:47 -07:00
tsconfig.json fix: handle error gracefully 2021-01-21 23:04:02 -08:00

readme.md

@mixer/parallel-prettier

A wrapper around prettier that formats files in parallel to speed up large projects.

npm install -g @mixer/parallel-prettier

After installing the CLI, the pprettier command will be available to you.

Ad-hoc Performance

# 300 file project:

prettier --write "src/**/*.{ts,tsx,json,scss}"  6.57s user 0.55s system 131% cpu 5.405 total
pprettier --write "src/**/*.{ts,tsx,json,scss}"  0.41s user 0.08s system 14% cpu 3.455 total

# 1200 file project:

prettier --write "src/**/*.{ts,tsx,json,scss}"  27.09s user 3.26s system 123% cpu 24.496 total
pprettier --write "src/**/*.{ts,tsx,json,scss}"  1.21s user 0.27s system 14% cpu 10.580 total