sanity-plugin-dashboard-widget-netlify 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +34 -2
- package/dist/http/utils/createAbortController.js.map +1 -1
- package/package.json +9 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Sanity Dashboard Widget: Netlify
|
|
2
2
|
|
|
3
|
+
> This is a **Sanity Studio v2** plugin.
|
|
4
|
+
> For the v3 version, please refer to the [v3-branch](https://github.com/sanity-io/sanity-plugin-dashboard-widget-netlify).
|
|
5
|
+
|
|
3
6
|
Sanity Studio Dashboard Widget for triggering Netlify builds.
|
|
4
7
|
|
|
5
8
|
## Installing
|
|
@@ -7,11 +10,30 @@ Sanity Studio Dashboard Widget for triggering Netlify builds.
|
|
|
7
10
|
### Install the dashboard plugin
|
|
8
11
|
To get dashboard support in Sanity Studio in general:
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
```sh
|
|
14
|
+
yarn add @sanity/dashboard@studio-v2
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Next, add `"@sanity/dashboard"` to `sanity.json` plugins array:
|
|
18
|
+
```json
|
|
19
|
+
"plugins": [
|
|
20
|
+
"@sanity/dashboard"
|
|
21
|
+
]
|
|
22
|
+
```
|
|
11
23
|
|
|
12
24
|
### Install the Netlify widget plugin
|
|
13
25
|
|
|
14
|
-
|
|
26
|
+
```sh
|
|
27
|
+
yarn add sanity-plugin-dashboard-widget-netlify@studio-v2
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Next, add `"dashboard-widget-netlify"` to `sanity.json` plugins array:
|
|
31
|
+
```json
|
|
32
|
+
"plugins": [
|
|
33
|
+
"@sanity/dashboard",
|
|
34
|
+
"dashboard-widget-netlify"
|
|
35
|
+
]
|
|
36
|
+
```
|
|
15
37
|
|
|
16
38
|
## Configuring
|
|
17
39
|
|
|
@@ -87,3 +109,13 @@ To simulate using your development version as a real module inside a studio, you
|
|
|
87
109
|
* Start the studio
|
|
88
110
|
|
|
89
111
|
When you are done and have published your new version, you can run `npm unlink` inside this repo, and `npm unlink sanity-plugin-dashboard-widget-netlify` inside the mono-repo or studio to get back to the normal state. Then run `npm run bootstrap` for the mono-repo or `npm install` inside the regular studio to use the published version.
|
|
112
|
+
|
|
113
|
+
## Developing plugin kit
|
|
114
|
+
|
|
115
|
+
### Release new version
|
|
116
|
+
|
|
117
|
+
Run ["CI & Release" workflow](https://github.com/sanity-io/sanity-plugin-dashboard-widget-netlify/actions/workflows/main.yml).
|
|
118
|
+
Make sure to select the main (or v3) branch and check "Release new version".
|
|
119
|
+
|
|
120
|
+
Semantic release will only release on configured branches, so it is safe to run release on any branch.
|
|
121
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/http/utils/createAbortController.ts"],"names":["createAbortController","window","AbortControllerPolyfill","AbortController"],"mappings":";;;;;;;AAAA;;;;AAEO,IAAMA,qBAAqB,GAAG,MAAuB;AAC1D,MAAI,EAAE,qBAAqBC,MAAvB,CAAJ,EAAoC;AAClC,WAAO,IAAIC,wBAAJ,EAAP;AACD;;AACD,SAAO,IAAIC,eAAJ,EAAP;AACD,CALM","sourcesContent":["import AbortControllerPolyfill from 'abort-controller'\n\nexport const createAbortController = (): AbortController => {\n if (!('AbortController' in window)) {\n return new AbortControllerPolyfill()\n }\n return new AbortController()\n}\n"],"file":"createAbortController.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/http/utils/createAbortController.ts"],"names":["createAbortController","window","AbortControllerPolyfill","AbortController"],"mappings":";;;;;;;AAAA;;;;AAEO,IAAMA,qBAAqB,GAAG,MAAuB;AAC1D,MAAI,EAAE,qBAAqBC,MAAvB,CAAJ,EAAoC;AAClC,WAAO,IAAIC,wBAAJ,EAAP;AACD;;AACD,SAAO,IAAIC,eAAJ,EAAP;AACD,CALM","sourcesContent":["import AbortControllerPolyfill from 'abort-controller'\n\nexport const createAbortController = (): AbortController => {\n if (!('AbortController' in window)) {\n return new AbortControllerPolyfill() as AbortController\n }\n return new AbortController()\n}\n"],"file":"createAbortController.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sanity-plugin-dashboard-widget-netlify",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Sanity Studio Dashboard Widget for triggering Netlify builds",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
"test": "jest --coverage",
|
|
39
39
|
"test:watch": "jest --coverage --watch",
|
|
40
40
|
"test:prod": "npm run lint && npm run test -- --no-cache",
|
|
41
|
-
"prepublishOnly": "npm run build"
|
|
41
|
+
"prepublishOnly": "npm run compile && npm run build",
|
|
42
|
+
"prepare": "husky install",
|
|
43
|
+
"compile": "tsc --noEmit"
|
|
42
44
|
},
|
|
43
45
|
"prettier": {
|
|
44
46
|
"semi": false,
|
|
@@ -59,7 +61,10 @@
|
|
|
59
61
|
"styled-components": "^5.2.0"
|
|
60
62
|
},
|
|
61
63
|
"devDependencies": {
|
|
64
|
+
"@commitlint/cli": "^17.1.2",
|
|
65
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
62
66
|
"@sanity/dashboard": ">=2.13.0",
|
|
67
|
+
"@sanity/semantic-release-preset": "^2.0.1",
|
|
63
68
|
"@sanity/ui": "^0.36.12",
|
|
64
69
|
"@testing-library/jest-dom": "^5.11.4",
|
|
65
70
|
"@testing-library/react": "^11.0.4",
|
|
@@ -74,8 +79,10 @@
|
|
|
74
79
|
"eslint-config-prettier": "^8.1.0",
|
|
75
80
|
"eslint-config-sanity": "^5.1.0",
|
|
76
81
|
"eslint-plugin-prettier": "^3.3.1",
|
|
82
|
+
"husky": "^8.0.1",
|
|
77
83
|
"jest": "^26.0.0",
|
|
78
84
|
"jest-date-mock": "^1.0.8",
|
|
85
|
+
"lint-staged": "^13.0.3",
|
|
79
86
|
"prettier": "^2.0.0",
|
|
80
87
|
"react": "^17.0.0",
|
|
81
88
|
"react-dom": "^17.0.0",
|