{"id":15538910,"url":"https://github.com/jmsv/gatsby-plugin-prettier-build","last_synced_at":"2025-06-25T13:06:43.937Z","repository":{"id":57244727,"uuid":"254158143","full_name":"jmsv/gatsby-plugin-prettier-build","owner":"jmsv","description":"prettify gatsby build output","archived":false,"fork":false,"pushed_at":"2021-04-05T20:23:08.000Z","size":31,"stargazers_count":30,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T18:01:54.246Z","etag":null,"topics":["gatsby","gatsby-plugin","gatsbyjs","hacktoberfest","javascript","prettier"],"latest_commit_sha":null,"homepage":"https://npm.im/gatsby-plugin-prettier-build","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmsv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-08T17:39:05.000Z","updated_at":"2023-05-12T16:58:23.000Z","dependencies_parsed_at":"2022-09-01T04:20:11.521Z","dependency_job_id":null,"html_url":"https://github.com/jmsv/gatsby-plugin-prettier-build","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jmsv/gatsby-plugin-prettier-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmsv%2Fgatsby-plugin-prettier-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmsv%2Fgatsby-plugin-prettier-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmsv%2Fgatsby-plugin-prettier-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmsv%2Fgatsby-plugin-prettier-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmsv","download_url":"https://codeload.github.com/jmsv/gatsby-plugin-prettier-build/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmsv%2Fgatsby-plugin-prettier-build/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261721227,"owners_count":23199637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gatsby","gatsby-plugin","gatsbyjs","hacktoberfest","javascript","prettier"],"created_at":"2024-10-02T12:07:47.781Z","updated_at":"2025-06-25T13:06:43.916Z","avatar_url":"https://github.com/jmsv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-plugin-prettier-build\n\nprettify gatsby build output\n\n[![npm version](https://badge.fury.io/js/gatsby-plugin-prettier-build.svg)](https://badge.fury.io/js/gatsby-plugin-prettier-build)\n\n## Why?\n\n[![wesbos-tweet](https://user-images.githubusercontent.com/14852491/78827410-02ccdb00-79db-11ea-9369-74c0ada99cf4.png)](https://twitter.com/wesbos/status/1247903517051768839)\n\n## Install\n\n```bash\nnpm install --save gatsby-plugin-prettier-build\n# or\nyarn add gatsby-plugin-prettier-build\n```\n\n## Usage\n\nIn `gatsby-config.js` plugins array:\n\nTo stick to default options (see defaults below) add:\n\n\u003c!-- prettier-ignore --\u003e\n```js\n`gatsby-plugin-prettier-build`\n```\n\nOr to provide custom options:\n\n```js\n{\n  resolve: `gatsby-plugin-prettier-build`,\n  options: {\n    // default values\n    types: ['html'],\n    concurrency: 20,\n    verbose: true\n  }\n}\n```\n\n### Options\n\n#### `types`\n\n\u003e default: `['html']`\n\nArray of filetypes to be prettified after build. Currently supports:\n\n- `js`\n- `html`\n- `css`\n\nFor example, to prettify all supported types: `['html', 'js', 'css']`\n\n#### `verbose`\n\n\u003e default: `true`\n\nWhether or not to log progress to the console\n\n#### `concurrency`\n\n\u003e default: `20`\n\nHow many files to prettify at once\n\nYou can remove the concurrency limit with `concurrency: Infinity` although this isn't recommended\n\n## Changelog\n\n#### `0.4.4`\n\n- Stop plugin from breaking on prettier failure\n\n#### `0.4.3`\n\n- Add `gatsby-plugin` to package keywords [#2](https://github.com/jmsv/gatsby-plugin-prettier-build/pull/2) (thanks [@KyleAMathews](https://github.com/KyleAMathews))\n- Minor docs fix\n\n#### `0.4.2`\n\n- Fix bug where undefined `types` option throws error on `onPreInit` options validation\n\n#### `0.4.1`\n\n- Docs fix\n\n#### `0.4.0`\n\n- Limit prettify concurrency with new `concurrency` option (defaults to `20`)\n- Fix issue with counting number of prettified files\n\n#### `0.3.0`\n\n- Prettify files asynchronously with `Promise.all`\n\n#### `0.2.0`\n\n- Replace `glob` with `tiny-glob` (smaller and faster)\n- Validate options on `onPreInit` to avoid hitting config problems post-build (saves time if there's a predictable problem)\n- `fs.stat` filepaths to make sure they're files - avoids trying to read directories (`page-data` etc.) as files\n\n#### `0.1.0`\n\nInitial version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmsv%2Fgatsby-plugin-prettier-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmsv%2Fgatsby-plugin-prettier-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmsv%2Fgatsby-plugin-prettier-build/lists"}