Skip to content

Commit 17bcea6

Browse files
authored
refactor: convert the examples to use a monorepo (#20)
* refactor: convert the examples to use a monorepo * chore: make check-types work
1 parent aea7d81 commit 17bcea6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2475
-4037
lines changed

.github/renovate.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"local>sanity-io/renovate-config",
5-
":dependencyDashboardApproval"
6-
],
3+
"extends": ["local>sanity-io/renovate-config"],
74
"ignorePresets": ["github>sanity-io/renovate-config:group-non-major"],
5+
"schedule": ["every weekday"],
6+
"prConcurrentLimit": 5,
7+
"automerge": true,
88
"hostRules": [
99
{
1010
"matchHost": "registry.npmjs.org",

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ dist-ssr
2525

2626
# macOS
2727
.DS_Store
28+
29+
.turbo
File renamed without changes.
File renamed without changes.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// @ts-check
2+
import baseESLintConfig from '@repo/config-eslint'
3+
import reactConfig from '@repo/config-eslint/react'
4+
import tsdocConfig from '@repo/config-eslint/tsdoc'
5+
import studio from '@sanity/eslint-config-studio'
6+
7+
export default [
8+
{
9+
ignores: [
10+
'.DS_Store',
11+
'**/node_modules',
12+
'**/build',
13+
'**/dist',
14+
'**/coverage',
15+
'**/public',
16+
'**/docs',
17+
'.env',
18+
'.env.*',
19+
'!.env.example',
20+
21+
// Ignore files for PNPM, NPM and YARN
22+
'pnpm-lock.yaml',
23+
'package-lock.json',
24+
'yarn.lock',
25+
],
26+
},
27+
...baseESLintConfig,
28+
...tsdocConfig,
29+
...reactConfig,
30+
...studio,
31+
]
Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,36 @@
11
{
22
"name": "sdk-examples-movies",
3-
"private": true,
43
"version": "1.0.0",
5-
"main": "package.json",
4+
"private": true,
5+
"keywords": [
6+
"sanity"
7+
],
68
"license": "UNLICENSED",
9+
"main": "package.json",
710
"scripts": {
8-
"dev": "sanity dev",
9-
"start": "sanity start",
1011
"build": "sanity build",
12+
"check-types": "tsc --noEmit",
1113
"deploy": "sanity deploy",
12-
"deploy-graphql": "sanity graphql deploy"
14+
"deploy-graphql": "sanity graphql deploy",
15+
"dev": "sanity dev",
16+
"lint": "eslint .",
17+
"start": "sanity start"
1318
},
14-
"keywords": [
15-
"sanity"
16-
],
1719
"dependencies": {
1820
"@sanity/vision": "^3.80.1",
19-
"react": "^18.2.0",
20-
"react-dom": "^18.2.0",
21+
"react": "^19.0.0",
22+
"react-dom": "^19.0.0",
2123
"react-icons": "^3.11.0",
22-
"sanity": "^3.80.1",
23-
"styled-components": "^6.1.8"
24+
"sanity": "^3.81.0",
25+
"styled-components": "^6.1.16"
2426
},
2527
"devDependencies": {
28+
"@repo/config-eslint": "workspace:*",
2629
"@sanity/eslint-config-studio": "^5.0.2",
27-
"@types/react": "^18.0.25",
30+
"@types/react": "^19.0.0",
31+
"@types/react-dom": "^19.0.0",
2832
"eslint": "^9.9.0",
2933
"prettier": "^3.0.2",
3034
"typescript": "^5.1.6"
31-
},
32-
"prettier": {
33-
"semi": false,
34-
"printWidth": 100,
35-
"bracketSpacing": false,
36-
"singleQuote": true
3735
}
3836
}

0 commit comments

Comments
 (0)