Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gatsby-source-pokedex

zsobral4MIT1.0.3

Gatsby source plugin for building website using pokemons from the first gen

gatsby, gatsby-plugin, gatsby-source-plugin, pokemon

readme

gatsby-source-pokedex

First gen pokedex source plugin

Install

npm i --save gatsby-source-pokedex

How to use

// gatsby-config.js

module.exports = {
  plugins: [
    `gatsby-source-pokedex`
  ]
}
query {
  allPokemon {
    nodes {
      number
      name
      type
      base {
        HP
        Attack
        Defense
        Sp__Attack
        Sp__Defense
        Speed
      }
      image {
        childImageSharp {
          fixed(width: 125, height: 125, quality: 100) {
            ...GatsbyImageSharpFixed_withWebp
          }
        }
      }
    }
  }
}