Skip to content

Commit

Permalink
fix: compiled for sanity 3.0.0-rc.0
Browse files Browse the repository at this point in the history
Upgraded with
"npx @sanity/plugin-kit inject --preset semver-workflow --preset renovatebot"
  • Loading branch information
snorrees committed Nov 3, 2022
1 parent cd5ddc6 commit 5cdbed7
Show file tree
Hide file tree
Showing 10 changed files with 4,769 additions and 6,327 deletions.
10 changes: 5 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#root = true
; editorconfig.org
root = true
charset= utf8

[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.md]
Expand Down
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.eslintrc.js
commitlint.config.js
lib
dist
lint-staged.config.js
*.js
package.config.ts
*.js
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ jspm_packages
# Cache
.cache

# Parcel
.parcel-cache
# Yalc
.yalc
yalc.lock

test/fixtures/init/empty
##npm package zips
*.tgz

# Compiled plugin
lib
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
legacy-peer-deps=true
legacy-peer-deps=true
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Sanity, Inc
Copyright (c) 2022 Sanity.io

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Add it as a widget to @sanity/dashboard plugin in sanity.config.ts (or .js):
import { dashboardTool } from "@sanity/dashboard";
import { netlifyWidget } from "sanity-plugin-dashboard-widget-netlify";

export default createConfig({
export default defineConfig({
// ...
plugins: [
dashboardTool({
Expand Down Expand Up @@ -71,17 +71,21 @@ export default createConfig({
- `url` - Optionally override site deployment url. By default it is inferred to be `https://netlify-site-name.netlify.app`.
- `branch` - Optionally pass the name of a branch to deploy

## Developing plugin kit
## License

### Test
MIT-licensed. See LICENSE.

## Develop & test

This plugin uses [@sanity/plugin-kit](https://github.com/sanity-io/plugin-kit)
with default configuration for build & watch scripts.

See [Testing a plugin in Sanity Studio](https://github.com/sanity-io/plugin-kit#testing-a-plugin-in-sanity-studio)
on how to run this plugin with hotreload in the studio.

### Release new version

Run ["CI & Release" workflow](https://github.com/sanity-io/sanity-plugin-dashboard-widget-netlify/actions/workflows/main.yml).
Make sure to select the main (or v3) branch and check "Release new version".
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.

Loading

0 comments on commit 5cdbed7

Please sign in to comment.