npm.io
1.1.0 • Published 3 years ago

sanity-plugin-google-drive

Licence
MIT
Version
1.1.0
Deps
5
Size
46 kB
Vulns
0
Weekly
0
Stars
3

sanity-plugin-google-drive

This is a Sanity Studio v3 plugin.

Installation

npm install --save sanity-plugin-google-drive

Usage

There are two plugins in this package:

  • googleDrive - use this if you intend to use references to assets in Google Drive
  • googleDriveAssetSource - use this if you intend to pick assets from Google Drive and import into Sanity

Add it as a plugin in sanity.config.ts (or .js):

import {defineConfig} from 'sanity'
import {googleDrive, googleDriveAssetSource} from 'sanity-plugin-google-drive'

export const defineConfig({
  //...
  plugins: [
    googleDrive({
      apiKey: API_KEY,
      clientId: CLIENT_ID,
    }),
    googleDriveAssetSource({
      apiKey: API_KEY,
      clientId: CLIENT_ID,
    })
  ]
})

License

MIT Noah Gentile

Develop & test

This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.

See Testing a plugin in Sanity Studio on how to run this plugin with hotreload in the studio.

Release new version

Run "CI & Release" workflow. Make sure to select the main branch and check "Release new version".

Semantic release will only release on configured branches, so it is safe to run release on any branch.

Keywords