All Projects → jmsv → gatsby-plugin-prettier-build

jmsv / gatsby-plugin-prettier-build

Licence: MIT license
prettify gatsby build output

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gatsby-plugin-prettier-build

gatsby-graphcms-example
Example of Gatsby source plugin for GraphCMS
Stars: ✭ 32 (+6.67%)
Mutual labels:  gatsby, gatsbyjs, gatsby-plugin
gatsby-attila-theme-ghost
A Gatsby theme plugin for creating blogs from headless Ghost CMS.
Stars: ✭ 16 (-46.67%)
Mutual labels:  gatsby, gatsbyjs, gatsby-plugin
gatsby-source-stripe
Gatsby source plugin for building websites using Stripe as a data source
Stars: ✭ 71 (+136.67%)
Mutual labels:  gatsby, gatsbyjs, gatsby-plugin
gatsby-plugin-disqus
💬 A plugin for adding Disqus comments to GatsbyJS
Stars: ✭ 40 (+33.33%)
Mutual labels:  gatsby, gatsbyjs, gatsby-plugin
gatsby-plugin-dynamic-routes
Creating dynamic routes based on your environment and/or renaming existing routes
Stars: ✭ 14 (-53.33%)
Mutual labels:  gatsby, gatsbyjs, gatsby-plugin
gatsby-starter-antoine
My opinionated Gatsby.js starter
Stars: ✭ 17 (-43.33%)
Mutual labels:  gatsby, prettier, gatsbyjs
gatsby-plugin-apollo-client
📡Inject a Shopify Apollo Client into the browser.
Stars: ✭ 20 (-33.33%)
Mutual labels:  gatsby, gatsbyjs, gatsby-plugin
gatsby-theme-deck-n-blog
Create a deck (with mdx-deck) and a blog post from the same MDX
Stars: ✭ 17 (-43.33%)
Mutual labels:  gatsby, gatsbyjs, gatsby-plugin
gatsby-plugin-lunr
Gatsby plugin for full text search implementation based on lunr client-side index. Supports multilanguage search.
Stars: ✭ 69 (+130%)
Mutual labels:  gatsby, gatsbyjs, gatsby-plugin
gatsby-portfolio
Portfolio / Personal Website - Built with Gatsby.js and Published at konstantin.digital
Stars: ✭ 23 (-23.33%)
Mutual labels:  gatsby, gatsbyjs
remotefrontend
Fully remote jobs for front end developers.
Stars: ✭ 18 (-40%)
Mutual labels:  gatsby, gatsbyjs
gatsby-starter-typescript
Typescript version of the default Gatsby starter. Uses Gatsby v1.x
Stars: ✭ 58 (+93.33%)
Mutual labels:  gatsby, gatsbyjs
gatsby-starter-devto
A GatsbyJS starter template that leverages the Dev.to API
Stars: ✭ 13 (-56.67%)
Mutual labels:  gatsby, gatsbyjs
gatsby-source-directus7
Source plugin for pulling data into GatsbyJS from Directus CMS (https://directus.io)
Stars: ✭ 17 (-43.33%)
Mutual labels:  gatsby, gatsby-plugin
gatsby-plugin-asset-path
Move all of your JS and CSS build files, as well as the static folder into a subdirectory of your choice
Stars: ✭ 14 (-53.33%)
Mutual labels:  gatsby, gatsby-plugin
gatsby-starter-fractal
Gatsby.js V2 starter template based on Fractal by HTML5 UP
Stars: ✭ 19 (-36.67%)
Mutual labels:  gatsby, gatsbyjs
lofi
VHS music machine from the 80's
Stars: ✭ 24 (-20%)
Mutual labels:  gatsby, gatsbyjs
gatsby-source-printful
Printful store data for your Gatsby projects
Stars: ✭ 19 (-36.67%)
Mutual labels:  gatsby, gatsby-plugin
gatsby-starter-breeze
A Gatsby starter for graceful blogging in Chinese.
Stars: ✭ 44 (+46.67%)
Mutual labels:  gatsby, gatsbyjs
gatsby-plugin-tailwindcss
Plug Tailwind CSS to your Gatsby website
Stars: ✭ 46 (+53.33%)
Mutual labels:  gatsby, gatsby-plugin

gatsby-plugin-prettier-build

prettify gatsby build output

npm version

Why?

wesbos-tweet

Install

npm install --save gatsby-plugin-prettier-build
# or
yarn add gatsby-plugin-prettier-build

Usage

In gatsby-config.js plugins array:

To stick to default options (see defaults below) add:

`gatsby-plugin-prettier-build`

Or to provide custom options:

{
  resolve: `gatsby-plugin-prettier-build`,
  options: {
    // default values
    types: ['html'],
    concurrency: 20,
    verbose: true
  }
}

Options

types

default: ['html']

Array of filetypes to be prettified after build. Currently supports:

  • js
  • html
  • css

For example, to prettify all supported types: ['html', 'js', 'css']

verbose

default: true

Whether or not to log progress to the console

concurrency

default: 20

How many files to prettify at once

You can remove the concurrency limit with concurrency: Infinity although this isn't recommended

Changelog

0.4.4

  • Stop plugin from breaking on prettier failure

0.4.3

  • Add gatsby-plugin to package keywords #2 (thanks @KyleAMathews)
  • Minor docs fix

0.4.2

  • Fix bug where undefined types option throws error on onPreInit options validation

0.4.1

  • Docs fix

0.4.0

  • Limit prettify concurrency with new concurrency option (defaults to 20)
  • Fix issue with counting number of prettified files

0.3.0

  • Prettify files asynchronously with Promise.all

0.2.0

  • Replace glob with tiny-glob (smaller and faster)
  • Validate options on onPreInit to avoid hitting config problems post-build (saves time if there's a predictable problem)
  • fs.stat filepaths to make sure they're files - avoids trying to read directories (page-data etc.) as files

0.1.0

Initial version

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].