0.1.0 • Published 4 years ago

gatsby-tinacms-netlify-prototype v0.1.0

Weekly downloads
4
License
-
Repository
-
Last release
4 years ago

gatsby-tinacms-netlify-prototype

A TinaCMS + Gatsby Plugin that adds a Netlify screen to the sidebar.

This project is just a prototype.

Configuration

  1. Create a Netlify personal access token

    Go to Netlify to create the token.

  2. Add the token to your environment

    .bashrc

    export NETLIFY_TOKEN=mynewnetlifytokengoeshere
  3. Install the gatsby-tinacms-netlify-prototype

    npm i gatsby-tinacms-netlify-prototype
  4. Add gatsby-tinacms-netlify-prototype to your gatsby-config.js

    module.exports = {
      // ...
      plugins: [
        {
          resolve: "gatsby-plugin-tinacms",
          options: {
            plugins: [
              {
                resolve: "gatsby-tinacms-screen-prototype",
                options: {
                  // Name of your Netlify site. (See the URL)
                  site: "my-site-name",
                  token: process.env.NETLIFY_TOKEN,
                },
              },
            ],
          },
        },
        // ...
      ]
    }
  5. Start Gatsby and open the global menu

    Done!