1.0.1 • Published 6 years ago

@campj/json v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

@campj/json

  • Quickly setup JSON integration

Plugins this package provides:

  • gatsby-transformer-json
  • gatsby-source-filesystem

Options

KeyTypeDefault ValueDetails
langsArray'en'A blank .json file will be created for each language
dataPathString'src/data'Path of the directory where your .json files should live
imagePathString'src/img'Path of the directory where your image files should live
useDataBooleantrueSet to false if you don't want a data folder to be created
useImageBooleantrueSet to false if you don't want a image folder to be created

gatsby-config reference

{
    resolve: `gatsby-source-filesystem`,
    options: {
        name: `data`,
        path: dataPath (see OPTIONS),
        ignore: [`**/\.*`] // ignore files starting with a dot
    }
},
{
    resolve: `gatsby-source-filesystem`,
    options: {
        name: `image`,
        path: imagePath (see OPTIONS),
        ignore: [`**/\.*`] // ignore files starting with a dot
    }
}