{"_id":"@astrocoders/gatsby-plugin-netlify-cms","_rev":"5-d90399c2c32480b4141494bda4b7b927","name":"@astrocoders/gatsby-plugin-netlify-cms","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@astrocoders/gatsby-plugin-netlify-cms","description":"[Make NetlifyCMS Monolith Again] A Gatsby plugin which generates the Netlify CMS single page app","version":"1.0.0","author":{"name":"Astrocoders","email":"guilherme.decampo@astrocoders.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dependencies":{"friendly-errors-webpack-plugin":"^1.7.0","html-webpack-exclude-assets-plugin":"^0.0.7","html-webpack-plugin":"^3.2.0","lodash":"^4.17.10","mini-css-extract-plugin":"^0.4.1","netlify-identity-widget":"^1.4.11","webpack":"^4.16.0"},"devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.1.0","@babel/plugin-proposal-optional-chaining":"^7.0.0","@babel/plugin-transform-runtime":"^7.1.0","@babel/preset-env":"^7.1.0","@babel/preset-flow":"^7.0.0","@babel/preset-react":"^7.0.0","cross-env":"^5.1.4","react":"^16.4.1","react-dom":"^16.4.1"},"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-netlify-cms#readme","keywords":["gatsby","gatsby-plugin","netlify","netlify-cms","cms"],"license":"MIT","main":"index.js","peerDependencies":{"@astrocoders/netlify-cms":"^1.0.0","gatsby":"^2.0.19"},"repository":{"type":"git","url":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-netlify-cms"},"scripts":{"build":"babel src --out-dir . --ignore **/__tests__","prepare":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore **/__tests__"},"_id":"@astrocoders/gatsby-plugin-netlify-cms@1.0.0","dist":{"shasum":"804cd6a7a11ed5a379f12675f0c19f549d8dd7f5","integrity":"sha512-KkLYLlD92ntTlW9iyh1ZP8SFXYqOtJDTjbX+khu2yW0ii+N7ysrEfQme9HrYyxOJg3Qo2IjtrDTu2e4++gMY5A==","tarball":"https://registry.npmjs.org/@astrocoders/gatsby-plugin-netlify-cms/-/gatsby-plugin-netlify-cms-1.0.0.tgz","fileCount":18,"unpackedSize":28070,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvMcrCRA9TVsSAnZWagAAQ50P/15y6vfJmP7akMx9P7kW\nuMn8PRQ67U2D/2ehCpf8XX7A42elwQkuZ+v2KGDRgfznsdpqEZ7rU32NCJzA\nt+btEJylg+Ae/zqTnUvn4QVsUhLW31y/L7qQ7oEvUqVhc1ASV2Blh25gQNiF\nl4RJ/5WZwEuGwLwnl4TQwxej1oI/lt37Dvvk4Rq3PQUjJoU6c9y/NIywUXQF\nsQdR1MJ/XUauw63HeigF/13lybjfGnOI54zD7TpwkOn4htM5loROJnoOUzIT\nUI34z67US+STYmu0RSuEUCwJNx/wyDAHS/QBWnOWG474EgiaH85sQiRJam5X\n5JHfutBm0AMTHKehO7ftnDM5HBWJLYfTn1VD0QQiDGbJR6Rfiu9Lp5XyR4qj\nWzlbfn3hcmWP3zeXqY1VaNmwfZ+/QJ9dPaPbSA1CVOpYV1rJB66ummLtN9F7\nWhQUdTbL9bXiNKOcDoCXSFmb10oKBIBNOz6tpimM1A56RZmnwpxJIAEi/X6T\n130PmZ+z90M1gZkZqANd+vzqELoAGw8VTW4kpOjIK8i7QTQ3q+AyqOvCXa00\nNCiIwkGT55C20a9jqK71hrWzQff1FmRyqPAZMILAHjxLIPTI/mYm0O7giZ8d\nJ/4FgnzsuvmRtz6zZhlmdpNUR9tq2PTNu/34nIFIeBtJbyZveda5ZRTogrXU\nPtia\r\n=Cf86\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDw/IzENLMofgBXntrHALstX00jzAkhdbwHZqJb5xqpVgIgbpeHN/c2iC92ZtDOY4H3/Vhy9Plf3ZvLrP5PpuA9rX0="}]},"maintainers":[{"name":"gabrielrubens","email":"grsabreu@gmail.com"},{"name":"georgelima","email":"georgelima11@hotmail.com"},{"name":"guilhermedecampo","email":"guilherme.decampo@astrocoders.com"},{"name":"medson10","email":"medsonoliveira@outlook.com.br"}],"_npmUser":{"name":"guilhermedecampo","email":"guilherme.decampo@astrocoders.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-netlify-cms_1.0.0_1539098411050_0.2657728673373869"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-09T15:20:10.898Z","1.0.0":"2018-10-09T15:20:11.178Z","modified":"2022-04-04T15:54:36.530Z"},"maintainers":[{"email":"gameplayteam12@gmail.com","name":"luizmoratelli"},{"email":"yuri.fabris@gmail.com","name":"yurijean"},{"email":"lucassilvabesen@gmail.com","name":"lucasbesen"},{"email":"eliabesajunior@gmail.com","name":"eliabejr"},{"email":"medsonoliveira@outlook.com.br","name":"medson10"},{"email":"grsabreu@gmail.com","name":"gabrielrubens"},{"email":"georgelima11@hotmail.com","name":"georgelima"},{"email":"guilherme.decampo@astrocoders.com","name":"guilhermedecampo"}],"description":"[Make NetlifyCMS Monolith Again] A Gatsby plugin which generates the Netlify CMS single page app","homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-netlify-cms#readme","keywords":["gatsby","gatsby-plugin","netlify","netlify-cms","cms"],"repository":{"type":"git","url":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-netlify-cms"},"author":{"name":"Astrocoders","email":"guilherme.decampo@astrocoders.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"license":"MIT","readme":"# gatsby-plugin-netlify-cms [Make NetlifyCMS monolith again]\n\n## Overview\n\nAutomatically generates an `admin/index.html` with a default Netlify CMS implementation.\n\nNetlify CMS is a React single page app for editing git based content via API.\nIts built for non-technical and technical editors alike, and its super easy to\ninstall and configure. For more details, check out the [docs\nsite](https://netlifycms.org).\n\n## Install\n\n```shell\nnpm install --save netlify-cms gatsby-plugin-netlify-cms\n```\n\n## How to use\n\nAdd the Netlify CMS plugin in your `gatsby-config.js`:\n\n```javascript\nplugins: [`gatsby-plugin-netlify-cms`]\n```\n\nThen add your Netlify CMS [configuration\nfile](https://www.netlifycms.org/docs/add-to-your-site/#configuration) in\n`static/admin/config.yml`.\n\n## Options\n\nNetlify CMS can be configured via the plugin options below. You can learn\nabout how to pass options to plugins in the [Gatsby\ndocs](https://www.gatsbyjs.org/docs/plugins/#how-to-use-gatsby-plugins).\n\n### `modulePath`\n\n(_optional_, default: `undefined`)\n\nIf you need to customize Netlify CMS, e.g. registering [custom\nwidgets](https://www.netlifycms.org/docs/custom-widgets/#registerwidget) or\nstyling the [preview\npane](https://www.netlifycms.org/docs/customization/#registerpreviewstyle),\nyou'll need to do so in a JavaScript module and provide Gatsby with the path to\nyour module via the `modulePath` option. Any styles imported by this module (or\nby the modules that it imports, all the way down the chain) are automatically\napplied to the editor preview pane by the plugin.\n\n```javascript\nplugins: [\n  {\n    resolve: `gatsby-plugin-netlify-cms`,\n    options: {\n      /**\n       * One convention is to place your Netlify CMS customization code in a\n       * `src/cms` directory.\n       */\n      modulePath: `${__dirname}/src/cms/cms.js`,\n    },\n  },\n]\n```\n\nThe js module might look like this:\n\n```javascript\n/**\n * The default export of `netlify-cms` is an object with all of the Netlify CMS\n * extension registration methods, such as `registerWidget` and\n * `registerPreviewTemplate`.\n */\nimport CMS from `netlify-cms`\n\n/**\n * Any imported styles will automatically be applied to the editor preview\n * pane, there is no need to use `registerPreviewStyle` for imported styles.\n * All of the example imports below would result in styles being applied to the\n * preview pane.\n */\nimport `module-that-imports-styles.js`\nimport `styles.scss`\nimport `../other-styles.css`\n\n/**\n * Let's say you've created widget and preview components for a custom image\n * gallery widget in separate files:\n */\nimport ImageGalleryWidget from `./image-gallery-widget.js`\nimport ImageGalleryPreview from `./image-gallery-preview.js`\n\n/**\n * Register the imported widget:\n */\nCMS.registerWidget(`image-gallery`, ImageGalleryWidget, ImageGalleryPreview)\n```\n\n### `manualInit`\n\n(_optional_, default: `false`)\n\nSet this to `true` If you need to [manually initialize](https://www.netlifycms.org/docs/beta-features/#manual-initialization) Netlify CMS. The plugin will take care of setting `window.CMS_MANUAL_INIT` to `true`:\n\n```javascript\nplugins: [\n  {\n    resolve: `gatsby-plugin-netlify-cms`,\n    options: {\n      manualInit: true,\n    },\n  },\n]\n```\n\nThe js module might look like this:\n\n```javascript\nimport CMS, { init } from `netlify-cms`\n\n/**\n * Optionally pass in a config object. This object will be merged into `config.yml` if it exists\n */\n\ninit({\n  config: {\n    backend: {\n      name: 'git-gateway',\n    },\n  },\n})\n```\n\n### `enableIdentityWidget`\n\n(_optional_, default: `true`)\n\n`enableIdentityWidget` is `true` by default, allowing [Netlify\nIdentity](https://www.netlify.com/docs/identity/) to be used without\nconfiguration, but you may need to disable it in some cases, such as when using\na Netlify CMS backend that conflicts. This is currently known to be the case\nwhen using the GitLab backend, but only when using implicit OAuth.\n\n```javascript\nplugins: [\n  {\n    resolve: `gatsby-plugin-netlify-cms`,\n    options: {\n      enableIdentityWidget: true,\n    },\n  },\n]\n```\n\n### `publicPath`\n\n(_optional_, default: `\"admin\"`)\n\nCustomize the path to Netlify CMS on your Gatsby site.\n\n### `htmlTitle`\n\n(_optional_, default: `Content Manager`)\n\nCustomize the value of the `title` tag in your CMS HTML (shows in the browser\nbar).\n\n## Example\n\nHere is the plugin with example values for all options (note that no option is\nrequired):\n\n```javascript\nplugins: [\n  {\n    resolve: `gatsby-plugin-netlify-cms`,\n    options: {\n      modulePath: `path/to/custom/script.js`, // default: undefined\n      stylesPath: `path/to/styles.sass`, // default: undefined\n      enableIdentityWidget: `true`,\n      publicPath: `admin`,\n      htmlTitle: `Content Manager`,\n    },\n  },\n]\n```\n\n## Support\n\nFor help with integrating Netlify CMS with Gatsby, check out the community\n[Gitter](https://gitter.im/netlify/netlifycms).\n","readmeFilename":"README.md"}