Criando uma pokedéx utilizando GatsbyJS e GraphQL
JSON com os dados: https://github.com/brunomoreirazup/kanto-pokedex-json
npm install -g gatsby-cli
gatsby new project_name
yarn add gatsby-source-filesystem
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: `${__dirname}/src/data`,
},
},
yarn add gatsby-transformer-json
gatsby-plugin-styled-components,
yarn add gatsby-plugin-react-svg
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /assets/,
},
},
},
yarn add gatsby-plugin-styled-components styled-components babel-plugin-styled-components
gatsby-plugin-styled-components,
yarn add lodash