{"_id":"@dres.co/gatsby-source-strapi","_rev":"1-9b6c80b004663c0c79c97b283d67a1ef","name":"@dres.co/gatsby-source-strapi","dist-tags":{"latest":"1.0.0-alpha.0"},"versions":{"1.0.0-alpha.0":{"name":"@dres.co/gatsby-source-strapi","version":"1.0.0-alpha.0","description":"Gatsby source plugin for building websites using Strapi as a data source with custom cloudinary","author":{"name":"Andres Cardenas","email":"andres@dres.co","url":"https://dres.co"},"maintainers":[{"name":"dres.co","email":"andres@dres.co"}],"directories":{"lib":"lib"},"repository":{"type":"git","url":"git://github.com/dres90/gatsby-source-strapi.git"},"bugs":{"url":"https://github.com/dres90/gatsby-source-strapi/issues"},"license":"MIT","scripts":{"prepublishOnly":"npm run build","build":"babel src --out-dir lib","watch":"babel -w src --out-dir lib","test":"echo \"Error: no test specified\" && exit 1","format":"prettier --write 'src/**/*.js'","lint":"eslint src"},"keywords":["gatsby","gatsby-plugin","gatsby-source-plugin","strapi"],"dependencies":{"@babel/plugin-transform-runtime":"7.12.1","axios":"0.21.1","gatsby-node-helpers":"^0.3.0","gatsby-source-filesystem":"2.5.0","lodash":"4.17.20","pluralize":"8.0.0"},"devDependencies":{"@babel/cli":"7.12.1","@babel/core":"7.12.3","@babel/preset-env":"7.12.1","eslint":"7.13.0","husky":"4.3.0","lint-staged":"10.5.1","prettier":"2.1.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --cache --fix","prettier --write"]},"gitHead":"922b459072a221fe3fec7612f3046a29109f53e9","homepage":"https://github.com/dres90/gatsby-source-strapi#readme","_id":"@dres.co/gatsby-source-strapi@1.0.0-alpha.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Nicw9ztANMqAETl/mOIi1yeqiViLJRzYBpCGeNrBXiH/XPLBwlA7OGDynVqsBPtZhpQGBcuuyq9fR/F2PuE/3w==","shasum":"b377e5d7378382d2f611095011eb1fd856a71e6c","tarball":"https://registry.npmjs.org/@dres.co/gatsby-source-strapi/-/gatsby-source-strapi-1.0.0-alpha.0.tgz","fileCount":13,"unpackedSize":14624,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdxQUCRA9TVsSAnZWagAAmMoP/1yVYmVm1wM3wg28GNT3\n961nA2MDr31LxNKDuPJbY+c1ixEJMGoJoo4RORAbvAPXmm7phD7y5zxA2bdb\nieOj5Lf8tYM7cvjvuf1gdXL2ifSEKXk+ZeVC1Ok7V2P8bHOw2IgeV9Uhcog8\nPTNLMpCcKnAMwUYnTKgngf48l4O5NuS/G01pTjehlQ/4OOQ+1NAoUzvCuWV/\nacE1jT7YpW93phxk9oiV/pGc73iWsbJJc44yJqWQ/r2OaNBT0kJuwMrwPp1P\nXCM2/yF7+sH/OdqiChQaSmly4ko/iQziDKFgIWJVBrTNly3swlG+5GoMsJXS\nWSVI7lyGf8XvABlNh4Q+Njgu4RgWAf7MG14I7Uo/G+et8oSCTXvp4AOYclO1\nJ0jzDZXqN8Fpy2k3W3gKkuFWFgqMeQ/sHsCyoOFDY4lpxVohePUWTdOYTzbd\nvgB1JVOzj8GpvcQS/TVQVckpHb/sVfsfC4mm1yhZXLksYyUU6hGXjhOBtxbk\n3MHoTJkkuBTcFnVlJlmeZFxv1oxDU825lMo1FqcDp1yKPDwoVrD3tI14e+Gq\nwDrTfRjJJ0b3dGUTmHWWx0ZQ4W+blxIiixZxetPaa1uj+r4yEisDsE26faED\nrR9crcsde+3nquF6hG6oMmySzG7PhNLjXcNyHyzFg3h5znZjarjzCuRTeBSn\n6OOg\r\n=dIP9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBr2L6reHFT3/+dAWcrwyesGXtF7WYyJug9dJ42T2K51AiEA2REf3/YNic3loN2jodeJEUE1L7wHaii3RzjDnezqZLw="}]},"_npmUser":{"name":"dres.co","email":"andres@dres.co"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-source-strapi_1.0.0-alpha.0_1618416659858_0.5082075910647388"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-14T16:10:59.817Z","1.0.0-alpha.0":"2021-04-14T16:11:00.022Z","modified":"2022-04-05T05:38:38.993Z"},"maintainers":[{"name":"dres.co","email":"andres@dres.co"}],"description":"Gatsby source plugin for building websites using Strapi as a data source with custom cloudinary","homepage":"https://github.com/dres90/gatsby-source-strapi#readme","keywords":["gatsby","gatsby-plugin","gatsby-source-plugin","strapi"],"repository":{"type":"git","url":"git://github.com/dres90/gatsby-source-strapi.git"},"author":{"name":"Andres Cardenas","email":"andres@dres.co","url":"https://dres.co"},"bugs":{"url":"https://github.com/dres90/gatsby-source-strapi/issues"},"license":"MIT","readme":"# gatsby-source-strapi\n\nSource plugin for pulling documents into Gatsby from a Strapi API.\n\n\n> **WARNING**: This is the README for v1.0.0-alpha.0 make sure to install it with @alpha to try it out\n\n## Install\n\n`npm install --save gatsby-source-strapi@alpha`\n\n## How to use\n\n```javascript\n// In your gatsby-config.js\nplugins: [\n  {\n    resolve: `gatsby-source-strapi`,\n    options: {\n      apiURL: `http://localhost:1337`,\n      queryLimit: 1000, // Default to 100\n      contentTypes: [\n        `article`,\n        `user`,\n        // if you don't want to leave the definition of an api endpoint to the pluralize module\n        {\n          name: `collection-name`,\n          endpoint: `custom-endpoint`,\n        },\n      ],\n      //If using single types place them in this array.\n      singleTypes: [`home-page`, `contact`],\n      // Possibility to login with a strapi user, when content types are not publically available (optional).\n      loginData: {\n        identifier: '',\n        password: '',\n      },\n    },\n  },\n];\n```\n\n## How to query\n\nYou can query Document nodes created from your Strapi API like the following:\n\n```graphql\n{\n  allStrapiArticle {\n    edges {\n      node {\n        id\n        title\n        content\n      }\n    }\n  }\n}\n```\n\nTo query images you can do the following:\n\n```graphql\n{\n  allStrapiArticle {\n    edges {\n      node {\n        id\n        singleImage {\n          localFile {\n            publicURL\n          }\n        }\n        multipleImages {\n          localFile {\n            publicURL\n          }\n        }\n      }\n    }\n  }\n}\n```\n","readmeFilename":"README.md"}