{"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dist":{"shasum":"9cefd960d385874be522d49eb2217e1edfd9e6af","tarball":"https://registry.npmjs.org/gatsby-admin/-/gatsby-admin-0.1.141-jsx-transform.0.tgz","fileCount":1003,"integrity":"sha512-jXj1uPvVCOVhdwjM1fGOuDk+AZ8hxuC6DZ9uQM0lWfTeJ7OjOBxGOTXraBxoawjRa+phhwCVTjyQT98636KYPw==","signatures":[{"sig":"MEUCIGuYCElvOa2XfnAOIe02H9lvtdDH6JnCTT9HU7gB9JjbAiEApDP75m7Uya+d+6DUDYJH5AiqMFd/YIH4ASJZzZznYrQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3742173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRrVJCRA9TVsSAnZWagAAdxIP/35siXyiHQZxZ4/CU2jj\nJ4GYI/3sIAUy78/3tOO+MnovhYZzvlnO6MwCYRGHKt81bMf5iheE4yeVF8av\n73rvCG7igJhHA0qGClVyDkpGvYdIoMNU1At4yjA3hVwbx57mkr2+9gre16uc\njGgZczxK4e0Qywx9GGr8A9aNMr06QHSXTuPgcrIl/YRr9ej43IhM3kTmtECa\nxJnDLIANuuLXGPdXd9xu2gvhy55xc1Z84PzZSSiT7Qv1GYkAWFwYydTM+MLn\nfK757/py6q7r/BpEzW54q0HpZ1WT36IsVcXUa8UQ3B80gBCH8/tdWCbntZQS\n50Fsb7MZu985qSYtZg8Sc5Bf2H3diNTYEeWeBsT+CpVMwHuIUTZqBZYPUtDP\n+7kunguvG4A399JWRb0jkoFaJ8aRlMmEswsQ0fmO3dLG07V3aUGeUC0qSgvX\nT7Wl2cH/z5SeFBP/vLGSZO3VLNzejTEIU/e6SFTurPnnePrfihEv71C4uSYo\neUSKQMFGUrUmXRJl6rJX/xEojXwp+K9xTwxdn0nN4fbaTq7D2wH1ILSnI0Xq\njcx0a0NtxYqacxLxU9WMPuxTKdPLumVfoDB1Pax9/R42rRUGd+ywDAJ0EQCx\n5DmicbjnX3BuRKD08d/idvWW8GWJLJ3q2Scg4JWtLu2N+LR1NLN12N0GhCZF\nXeOj\r\n=suTF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"gatsby-admin","author":{"name":"Max Stoiber"},"readme":"# Gatsby Admin\n\nA visual interface to configure your Gatsby site.\n\n## Architecture\n\nThe Gatsby Admin interface (this package) is a standard Gatsby site.\n\nIt uses [theme-ui](https://theme-ui.com) (with the [strict-ui](https://github.com/system-ui/theme-ui/pull/719) experimantal extension) and [gatsby-interface](https://github.com/gatsby-inc/gatsby-interface) for styling.\n\nIt fetches its data from the [gatsby-recipes GraphQL server](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-recipes/src/graphql-server), which exposes all the information Admin needs about the locally running Gatsby site, using [urql](https://github.com/FormidableLabs/urql).\n\nIt also listens to the [`gatsby develop` status server](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/commands/develop.ts), which exposes information about whether you changed the config files and need to restart the develop process.\n\n### Service Discovery\n\n`gatsby develop` automatically starts both the GraphQL and status server. However, both of these use random ports.\n\nTo discover where they are (and whether they are already running) there is a service discovery mechanism in `gatsby-core-utils`. It stores the ports of the running Gatsby site(s) at `~/.config/gatsby/sites/<pathhash>/<servername>.json`.\n\nAdmin can then fetch `localhost:8000/___services` (where `:8000` is the well-known port of the running site), which returns a list of all the random ports used by the site:\n\n```\n$ curl http://localhost:8000/___services | jq\n{\n  \"developproxy\": {\n    \"port\": 8000\n  },\n  \"developstatusserver\": {\n    \"port\": 60731\n  },\n  \"recipesgraphqlserver\": {\n    \"port\": 50400\n  }\n}\n```\n\nThat's how the Admin frontend knows to connect to `localhost:50400/graphql` to connect to the GraphQL server, and `localhost:60731` to connect to the develop status server.\n\n### Production Deployment\n\nTo avoid clashing with the local site and potential issues with shadowing, `gatsby develop` statically serves the built files from the [develop parent proxy](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/utils/develop-proxy.ts).\n\nTo avoid issues with yarn, lerna, and circular dependencies, `gatsby-admin` copies its built files to `gatsby/gatsby-admin-public` which is then published to npm. While not an ideal solution, it fixes the issue and works relatively reliably.\n\n## Development\n\n### Running it locally\n\nThe easiest way to work on Admin locally is to develop Admin itself.\n\n1. Make sure to have the dependencies installed by running `yarn` in the root folder\n2. Start the develop process for the Admin site by running `yarn workspace gatsby-admin run develop`\n\n> If you see eslint errors you'll need to temporarily replace all references to `___loader` with `window.___loader` in `packages/gatsby-link/index.js`.\n\n### Running it on a local site\n\nTo try Admin with one of your sites locally, use the `gatsby-dev-cli` to copy the local versions of `gatsby`, `gatsby-cli`, `gatsby-recipes`, `gatsby-core-utils` and `gatsby-admin` into your project:\n\n```sh\n# Make sure to build the latest local versions of all packages\n~/gatsby\nyarn run watch\n\n~/my-gatsby-site\n$ gatsby-dev --packages gatsby gatsby-cli gatsby-recipes gatsby-core-utils gatsby-admin\n\n# In another tab, start your site with the Admin feature flag set\n~/my-gatsby-site\n$ GATSBY_EXPERIMENTAL_ENABLE_ADMIN=true gatsby develop\n```\n\nThen visit `localhost:8000/\\_\\_\\_admin` and you should see Gatsby Admin for your site!\n","gitHead":"37ea6e8656a645b2cab52ce14eb4c389e81cd65e","license":"MIT","scripts":{"build":"node ../gatsby/dist/bin/gatsby.js build --prefix-paths","watch":"nodemon --watch src --ext js,ts,tsx,json --exec \"yarn run build\"","develop":"gatsby develop","prebuild":"rimraf public","postbuild":"ncp public ../gatsby/gatsby-admin-public"},"_npmUser":{"name":"blainekasten","email":"blainekasten@gmail.com"},"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-admin#readme","deprecated":"This package will no longer receive updates.","repository":{"url":"git+https://github.com/gatsbyjs/gatsby.git","type":"git","directory":"packages/gatsby-admin"},"_npmVersion":"lerna/3.22.1/node@v10.18.1+x64 (darwin)","description":"A visual interface to configure your Gatsby site.","directories":{},"maintainers":[{"name":"ascorbic","email":"m@mk.gg"},{"name":"blainekasten","email":"blainekasten@gmail.com"},{"name":"dschau","email":"dustinschau@gmail.com"},{"name":"fk","email":"sechskilo@gmail.com"},{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"jamo","email":"jamo@isotalo.fi"},{"name":"johno","email":"johnotander@gmail.com"},{"name":"kuvos","email":"npm-public@qfox.nl"},{"name":"kylemathews","email":"mathews.kyle@gmail.com"},{"name":"laurieontech","email":"laurie@gatsbyjs.com"},{"name":"lekoarts","email":"lekoarts@gmail.com"},{"name":"madalynrose","email":"madalyn.parker@gmail.com"},{"name":"mxstbr","email":"contact@mxstbr.com"},{"name":"pieh","email":"misiek.piechowiak@gmail.com"},{"name":"sidharthachatterjee","email":"me@sidharthachatterjee.com"},{"name":"smthomas","email":"shane@codekarate.com"},{"name":"tylerbarnes","email":"tyler@known.design"},{"name":"vladar","email":"vladimir.razuvaev@gmail.com"},{"name":"wardpeet","email":"ward@coding-tech.com"}],"_nodeVersion":"10.18.1","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ncp":"^2.0.0","yup":"^0.29.1","urql":"^1.9.8","react":"^16.12.0","formik":"^2.1.4","gatsby":"2.24.52-jsx-transform.0+37ea6e8656","rimraf":"^3.0.2","csstype":"^2.6.10","nodemon":"^2.0.4","theme-ui":"^0.4.0-alpha.3","lodash-es":"^4.17.15","react-dom":"^16.12.0","strict-ui":"^0.2.0-0","typescript":"^3.9.5","react-icons":"^3.10.0","react-helmet":"^6.1.0","@emotion/core":"^10.0.28","feedback-fish":"^0.1.12","react-markdown":"^4.3.1","@emotion/styled":"^10.0.27","remove-markdown":"^0.3.0","gatsby-interface":"0.0.183","prism-react-renderer":"^1.1.1","gatsby-source-graphql":"2.7.1","gatsby-plugin-webfonts":"^1.1.3","react-instantsearch-dom":"^5.7.0","gatsby-plugin-typescript":"2.4.18","@typescript-eslint/parser":"^2.28.0","subscriptions-transport-ws":"^0.9.16","@types/react-instantsearch-dom":"^5.2.6","@typescript-eslint/eslint-plugin":"^2.28.0"},"_npmOperationalInternal":{"tmp":"tmp/gatsby-admin_0.1.141-jsx-transform.0_1598469448982_0.8154398709996489","host":"s3://npm-registry-packages"},"_id":"gatsby-admin@0.1.141-jsx-transform.0","version":"0.1.141-jsx-transform.0"}