# rs-sanity-schema

> ``` npm i rs-sanity-schema ```

Latest version **0.2.7** (published 2020-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install rs-sanity-schema
pnpm add rs-sanity-schema
yarn add rs-sanity-schema
bun add rs-sanity-schema
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.7 |
| Published | 2020-06-26 |
| First published | 2020-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 25 |
| Unpacked size | 207.4 KB |
| Known vulnerabilities | 0 (+27 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | brianmharding13, jasonburton, ladymarion, scottcwambach |

## Links

- npm: https://www.npmjs.com/package/rs-sanity-schema
- Repository: https://github.com/Redstitch/rs-sanity-schema
- Homepage: https://github.com/Redstitch/rs-sanity-schema#readme
- Issues: https://github.com/Redstitch/rs-sanity-schema/issues
- npm.io page: https://npm.io/package/rs-sanity-schema

## Dependencies (25)

- [axios](https://npm.io/package/axios.md) ^0.19.2
- [react](https://npm.io/package/react.md) ^16.2
- [slugify](https://npm.io/package/slugify.md) ^1.4.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.2
- [prop-types](https://npm.io/package/prop-types.md) ^15.6
- [react-icons](https://npm.io/package/react-icons.md) ^3.10.0
- [sweetalert2](https://npm.io/package/sweetalert2.md) ^9.15.1
- [@sanity/base](https://npm.io/package/@sanity/base.md) ^1.149.16
- [@sanity/core](https://npm.io/package/@sanity/core.md) ^1.149.17
- [@sanity/vision](https://npm.io/package/@sanity/vision.md) ^1.149.16
- [@sanity/dashboard](https://npm.io/package/@sanity/dashboard.md) ^1.149.16
- [@sanity/desk-tool](https://npm.io/package/@sanity/desk-tool.md) ^1.149.16
- [@sanity/code-input](https://npm.io/package/@sanity/code-input.md) ^1.149.16
- [@sanity/components](https://npm.io/package/@sanity/components.md) ^1.149.16
- [@sanity/color-input](https://npm.io/package/@sanity/color-input.md) ^1.149.16
- [@sanity/react-hooks](https://npm.io/package/@sanity/react-hooks.md) ^1.149.16
- [sanity-plugin-media](https://npm.io/package/sanity-plugin-media.md) ^0.2.10
- [@sanity/default-login](https://npm.io/package/@sanity/default-login.md) ^1.149.16
- [@sanity/default-layout](https://npm.io/package/@sanity/default-layout.md) ^1.149.16
- [sanity-plugin-datatable](https://npm.io/package/sanity-plugin-datatable.md) ^1.0.5
- [sanity-plugin-color-list](https://npm.io/package/sanity-plugin-color-list.md) ^1.2.1
- [@sanity/google-maps-input](https://npm.io/package/@sanity/google-maps-input.md) ^1.149.16
- [@sanity/production-preview](https://npm.io/package/@sanity/production-preview.md) ^1.149.0
- [sanity-plugin-asset-source-unsplash](https://npm.io/package/sanity-plugin-asset-source-unsplash.md) ^0.1.3
- [sanity-plugin-dashboard-widget-netlify](https://npm.io/package/sanity-plugin-dashboard-widget-netlify.md) ^1.0.1

## Recent versions

- 0.2.7 (latest) — 2020-06-26
- 0.2.6 — 2020-06-26
- 0.2.5 — 2020-06-19
- 0.2.4 — 2020-06-19
- 0.2.3 — 2020-06-19
- 0.2.2 — 2020-06-19
- 0.2.1 — 2020-06-19
- 0.2.0 — 2020-06-19
- 0.1.15 — 2020-06-19
- 0.1.14 — 2020-06-19
- 0.1.13 — 2020-06-19
- 0.1.12 — 2020-06-19
- 0.1.11 — 2020-06-19
- 0.1.10 — 2020-06-19
- 0.1.9 — 2020-06-19
- … 14 more at https://npm.io/package/rs-sanity-schema/versions

## README

# Redstitch Sanity Schema Bro!

```
npm i rs-sanity-schema
```

To be used with:
- Sanity CMS [Read “getting started” in Sanity's docs](https://www.sanity.io/docs/introduction/getting-started?utm_source=readme)
- https://github.com/Redstitch/rs-sanity-components

You should really consider creating a `env.js` file in the root of your project, or you're not going to have a good time:
```
export const appName = 'NAME';
export const netlifyAppId = 'NETLIFYAPPID';
export const netlifyBuildHook = 'NETLIFYBUILDHOOK';
const remoteURL = 'https://REMOTE.netlify.com'
const localURL = 'http://localhost:8000';
const appUrl = window.location.hostname === 'localhost' ? localURL : remoteURL;
export const previewUrl = `${appUrl}/preview`;
```

You will also TOTALLY need this change your sanity.json file to some that goes a little bit... like this:
```
{
  "root": true,
  "project": {
    "name": "test"
  },
  "api": {
    "projectId": "hazo3ur7",
    "dataset": "production"
  },
  "plugins": [
    "@sanity/base",
    "@sanity/components",
    "@sanity/default-layout",
    "@sanity/default-login",
    "@sanity/desk-tool",
    "studio-logo",
    "@sanity/dashboard",
    "media",
    "@sanity/code-input",
    "asset-source-unsplash",
    "color-list",
    "dashboard-widget-netlify",
    "datatable",
    "@sanity/vision",
    "@sanity/production-preview",
    "@sanity/google-maps-input",
    "@sanity/color-input"
  ],
  "parts": [
    {
      "name": "part:@sanity/base/schema",
      "path": "./schemas/schema.js"
    },
    {
      "implements": "part:@sanity/production-preview/resolve-production-url",
      "path": "./node_modules/rs-sanity-schema/actions/resolvers/resolveProductionUrl.js"
    },
    {
      "name": "part:@sanity/desk-tool/structure",
      "path": "./deskStructure.js"
    },
    {
      "implements": "part:@sanity/dashboard/config",
      "path": "./node_modules/rs-sanity-schema/config/dashboardConfig.js"
    },
    {
      "implements": "part:@sanity/base/theme/variables/override-style",
      "path": "./variableOverrides.css"
    },
    {
      "implements": "part:@sanity/base/document-actions/resolver",
      "path": "./node_modules/rs-sanity-schema/actions/resolvers/resolveDocumentActions.js"
    },
    {
      "implements": "part:@sanity/base/document-badges/resolver",
      "path": "./node_modules/rs-sanity-schema/actions/resolvers/resolveDocumentBadges.js"
    }
  ]
}
```

Oh, silly me, one more thing... Make sure you copy the `/plugins` folder from the root of this node pkg (`/node_modules/rs-sanity-schema/plugins/*`) to the root of your sanity project! DUH!

---
_Source: https://npm.io/package/rs-sanity-schema · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
