1.1.0 • Published 10 months ago

sanity-plugin-map-locator v1.1.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
10 months ago

sanity-plugin-esri-map-locator

This is a Sanity Studio v3 plugin.

Installation

npm install sanity-plugin-esri-map-locator

Usage

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

import { defineConfig } from 'sanity';
import { myPlugin } from 'sanity-plugin-esri-map-locator'; // or local_path_to_your_plugin

export default defineConfig({
  //...
  plugins: [myPlugin({})],
});

License

MIT © NGS

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.

How to test on localhost

  1. In your plugin directory, run:

npm link and npm run link-watch

  1. Navigate to your Sanity studio directory and link the plugin (where you want to test):

npm link <plugin-name>