{"_id":"@emanueleperuffo/gatsby-plugin-netlify-cms","_rev":"2-c6f9dd65a1431a3b014eade5a1d315f1","name":"@emanueleperuffo/gatsby-plugin-netlify-cms","dist-tags":{"latest":"2.0.0-beta.2"},"versions":{"2.0.0-beta.1":{"name":"@emanueleperuffo/gatsby-plugin-netlify-cms","description":"A Gatsby plugin which generates the Netlify CMS single page app","version":"2.0.0-beta.1","author":{"name":"Shawn Erquhart","email":"shawn@erquh.art"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dependencies":{"@babel/runtime":"7.0.0-beta.51","html-webpack-plugin":"^3.2.0","netlify-cms":"^1.3.5","netlify-identity-widget":"^1.4.11"},"devDependencies":{"@babel/cli":"7.0.0-beta.51","@babel/core":"7.0.0-beta.51","cross-env":"^5.1.4"},"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":{"gatsby":">2.0.0-alpha","netlify-cms":"^1.0.0"},"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":"@emanueleperuffo/gatsby-plugin-netlify-cms@2.0.0-beta.1","_npmVersion":"6.1.0","_nodeVersion":"9.11.2","_npmUser":{"name":"emanuele.peruffo","email":"info@emanueleperuffo.com"},"dist":{"integrity":"sha512-0nmTBXzVNMKPthvcKsBS4VyiTjRZqkt5dqyF+8qn5N4wKWcQ084B2aIl641zaLXW4FC1Uz2sYVKYdDiL7V9wnw==","shasum":"82c931066cd748bcb3c35a886a1bcddaaa0f0e5a","tarball":"https://registry.npmjs.org/@emanueleperuffo/gatsby-plugin-netlify-cms/-/gatsby-plugin-netlify-cms-2.0.0-beta.1.tgz","fileCount":8,"unpackedSize":10326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSKFuCRA9TVsSAnZWagAAC6wP/0G/ARNcW6exkat2B2R2\nizArjPEJhkKe7pYO1b1ZDDs4TjWGIk40MgDWBjL8Dv0FJsIawdgIlwdpDJKp\n2GBSVBW9TZlLPnRRL04LLhHOFXEtEWWT/r2hpMlc5rJTqkGn5qs72GLi5dQq\n5EmcMQ+W4F5JsA9J+Zj9zUfHATobJ1il5/1awB86EDtCEst2XcLp47D6lEPe\nigic131VVyD9/qib2bzJJI1gp7OWQKgY/m49VEe7Bo9TAgfDTV9xrRsaE0so\nDey9BpEyWJqDgg+w2Nk3h6otxjAVSoXMtCCpYMK/jVpiBVF7qX7Be9SdO+ro\nW0L6S4VmCNP3lo0qjrJq2ugaZaY6u08BvEbDzv08TGygqJcQ3wq2etno2PbG\nS5BROT8hMPwU2Zl3VjNVLl0StAKD412i05PmkQQU+PbH8kt99fAjP3unKhqP\nstlnC5/SpU+NVg1BZmgvPDvZWWyIELb7HFGU3XoPzeB2deQGepIuGT8FpLwX\nQczwy/ABF2H0BM6rPf0/525xgxYT7nqx1Fe+jrpNquPNew7eraGjaVHaSK2Y\nnX5lyag7ZOWThh6krrKtV7fqhx9pyEyAW+FbhA7X5KIMpVFC4Sllje83DKb7\nsLwr0Pbt+igNrvE+5ueiOsEQatNR3ODP4Si1cS4UmSTKy6UPj7jZ2QlB1koe\nURXB\r\n=IBnl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICWOxBOZ8Mzh9j49nHrzKTajy+uZf5zbKDuQIUgP34yPAiBh4oe8ZEt7cJ8AepffJcuSL9X6Czv8bhNxzE9W21DElg=="}]},"maintainers":[{"name":"emanuele.peruffo","email":"info@emanueleperuffo.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-netlify-cms_2.0.0-beta.1_1531486574616_0.3214717337351134"},"_hasShrinkwrap":false},"2.0.0-beta.2":{"name":"@emanueleperuffo/gatsby-plugin-netlify-cms","description":"A Gatsby plugin which generates the Netlify CMS single page app","version":"2.0.0-beta.2","author":{"name":"Shawn Erquhart","email":"shawn@erquh.art"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dependencies":{"friendly-errors-webpack-plugin":"^1.7.0","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-beta.53","@babel/core":"^7.0.0-beta.53","cross-env":"^5.1.3","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":{"gatsby":"^2.0.0-beta.29","netlify-cms":"^1.9.3"},"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":"@emanueleperuffo/gatsby-plugin-netlify-cms@2.0.0-beta.2","_npmVersion":"6.1.0","_nodeVersion":"9.11.2","_npmUser":{"name":"emanuele.peruffo","email":"info@emanueleperuffo.com"},"dist":{"integrity":"sha512-LqQGE1hOac68MXnv3m4UnSrTnhk9dWfo3mFpFPaMibkD6HAQRPDDfN+s3Qg0xBtrYRQIAIX9/lEz8Nzj9oTB+A==","shasum":"5221ed112a57b378f921ea4b3ee2cac27d869bfd","tarball":"https://registry.npmjs.org/@emanueleperuffo/gatsby-plugin-netlify-cms/-/gatsby-plugin-netlify-cms-2.0.0-beta.2.tgz","fileCount":10,"unpackedSize":15132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWX+DCRA9TVsSAnZWagAAoNQP/A1wL9LYbwrpWo1jjPW5\ngD7Z7q2T5ofVMtN7o9XlTBsJQDCwSrFTu2rAL88ecPv2AWp37t+v+ggWzlQU\nSz+1ZeUTOAnYfG++efofJNeQJpJjtZ5yDsHwqn7dgv9pjV9B0o+HT5hwCjIh\nc/FNHZYQ/wncOyq2VZ3jeQ/Z5QeH8ImtqrUi8okLKWPMD7MU3GT1QezHCS1E\nKEcOUt96flDXGPa3zxqE+iiqhrDerS7OyPikjVC8oJN6MgCz2X+ZiuuOePuw\nnyh6j+ZjS2FXY/QsgEdOukI5W3W43AFvItPg3IzmqIxhJdaFNcHptX0jqaFF\nJVjr6zXqcyjCZwkd7YJFYebx+qigZyYTV0X8gpr11nYCGyI/EthYNzBqy2bx\nAcG0KpvmWn8Ysypncyn5dNZhK6SuJUbj3AR0WGMQm99D5/0qMnPydPcl+D1c\nWFg/girq/KTaqTzd657hEze+Wcrusb3s9Jrd7oUEUgLcoBfzAwLNnpyo3yt2\n9SOfEil/eIMIMWb41UxAzj1Rug+nU3PpGggFYlZuAmSsbXXeN8nDOunaqS3U\nSr9K1tjqfg5tj7HDHJiKxzDS0gtwWuhq7ws2YG0CqZaqhBkLiJIO4b8YgJu5\nWr9eye99SqFijogwX74T6DWhNE0bpySWcPwOexgomSG+/eEhbWeGYAJa7iUN\nq9UX\r\n=cl4U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHkgouTce5qjs7Ap/WlB5xWzOH2xm5hd1UmGpBZYFBj9AiEArQCWTDoz+ZwiY8R+ewXN1nGK8sH/jA4BFv4WPjGLTSs="}]},"maintainers":[{"name":"emanuele.peruffo","email":"info@emanueleperuffo.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-netlify-cms_2.0.0-beta.2_1532592003026_0.3742820476544051"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-13T12:56:14.445Z","2.0.0-beta.1":"2018-07-13T12:56:14.734Z","modified":"2022-04-05T07:26:32.901Z","2.0.0-beta.2":"2018-07-26T08:00:03.097Z"},"maintainers":[{"name":"emanuele.peruffo","email":"info@emanueleperuffo.com"}],"description":"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":"Shawn Erquhart","email":"shawn@erquh.art"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"license":"MIT","readme":"# gatsby-plugin-netlify-cms\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:\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\nimport CMS from `netlify-cms`\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### `stylesPath`\n\n(_optional_, default: `undefined`)\n\nGatsby template components can be used as [preview\ntemplates](https://www.netlifycms.org/docs/customization/) in Netlify CMS. To\napply your site styles to the preview pane as well, you would normally register\na [custom\nstylesheet](https://www.netlifycms.org/docs/customization/#registerpreviewstyle),\nbut your Gatsby style source may be Sass or CSS modules, and can't be passed to\nNetlify CMS as is. The `stylesPath` accepts a path or an array of paths to your\nraw styles. The styles are built using the same Webpack and Babel configuration\nthat your Gatsby site uses, and the CSS output is automatically registered and\nused in the preview pane.\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"}