Skip to content

Commit ccf2b61

Browse files
committed
fix: compiled for sanity 3.0.0-rc.0
Upgraded with "npx @sanity/plugin-kit inject --preset semver-workflow --preset renovatebot"
1 parent a7b76d3 commit ccf2b61

14 files changed

+3022
-905
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
; editorconfig.org
2+
root = true
3+
charset= utf8
4+
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
indent_style = space
10+
indent_size = 2
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
commitlint.config.js
33
lib
44
lint-staged.config.js
5-
*.js
65
package.config.ts
6+
*.js

.eslintrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true,
5+
"browser": true
6+
},
7+
"extends": [
8+
"sanity",
9+
"sanity/typescript",
10+
"sanity/react",
11+
"plugin:react-hooks/recommended",
12+
"plugin:prettier/recommended"
13+
]
14+
}

.gitignore

Lines changed: 44 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,57 @@
11
# Logs
2-
/logs
2+
logs
33
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
413

514
# Coverage directory used by tools like istanbul
6-
/coverage
15+
coverage
16+
17+
# nyc test coverage
18+
.nyc_output
19+
20+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21+
.grunt
22+
23+
# node-waf configuration
24+
.lock-wscript
25+
26+
# Compiled binary addons (http://nodejs.org/api/addons.html)
27+
build/Release
728

829
# Dependency directories
9-
/node_modules
30+
node_modules
31+
jspm_packages
1032

11-
# Compiled code
12-
/lib
33+
# Optional npm cache directory
34+
.npm
35+
36+
# Optional REPL history
37+
.node_repl_history
38+
39+
# macOS finder cache file
40+
.DS_Store
41+
42+
# VS Code settings
43+
.vscode
1344

1445
# IntelliJ
15-
.idea/
46+
.idea
1647
*.iml
1748

18-
# yalc
49+
# Cache
50+
.cache
51+
52+
# Compiled plugin
53+
lib
54+
55+
# Yalc
1956
.yalc
2057
yalc.lock
21-
22-
.parcel-cache

.npmignore

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
/coverage
2-
/scripts
31
/test
4-
/.babelrc
5-
/.depcheckignore.json
6-
/.eslintignore
7-
/.eslintrc
8-
/jest.config.js
9-
/tsconfig.json
10-
/tsconfig.lib.json
11-
.idea/
2+
/coverage
3+
.editorconfig
4+
.eslintrc
5+
.gitignore
6+
.github
7+
.prettierrc
8+
.travis.yml
9+
.nyc_output

.parcelrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
semi: false,
3+
printWidth: 100,
4+
bracketSpacing: false,
5+
singleQuote: true,
6+
}

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -179,18 +179,9 @@ with default configuration for build & watch scripts.
179179
See [Testing a plugin in Sanity Studio](https://github.com/sanity-io/plugin-kit#testing-a-plugin-in-sanity-studio)
180180
on how to run this plugin with hotreload in the studio.
181181

182-
### Dev note on parcel + vite in dev mode:
183-
Vite will emit a warning when using yalc add + link in a Studio running with
184-
vite dev server.
185-
It happens because parcel appends ?currentTimestamp to the import statement for
186-
cache busting, which is [not supported by vite](https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations).
182+
### Release new version
187183

188-
However, the code _works_, and when building for production this is not an issue, as parcel
189-
will not suffix the timestamp in the prod bundle.
190-
191-
## Release new version
192-
193-
Run ["CI & Release" workflow](https://github.com/sanity-io/code-input/actions).
184+
Run ["CI & Release" workflow](https://github.com/sanity-io/code-input/actions/workflows/main.yml).
194185
Make sure to select the main branch and check "Release new version".
195186

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

0 commit comments

Comments
 (0)