Skip to content

Commit da2a1ba

Browse files
authored
chore(examples): Update vanilla-extract (#35000)
1 parent 77c32b0 commit da2a1ba

File tree

4 files changed

+33
-7
lines changed

4 files changed

+33
-7
lines changed
+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Using vanilla-extract
22

33
Example site that demonstrates [vanilla-extract](https://vanilla-extract.style/) using the plugin [`gatsby-plugin-vanilla-extract`](https://github.com/gatsby-uc/plugins/tree/main/packages/gatsby-plugin-vanilla-extract).
4+
5+
Visit [TypeScript and Gatsby](https://www.gatsbyjs.com/docs/how-to/custom-configuration/typescript/) for more information.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
module.exports = {
1+
import type { GatsbyConfig } from "gatsby"
2+
3+
const config: GatsbyConfig = {
24
siteMetadata: {
35
title: `using-vanilla-extract`,
46
siteUrl: `https://www.yourdomain.tld`,
57
},
68
plugins: [`gatsby-plugin-vanilla-extract`]
7-
}
9+
}
10+
11+
export default config

examples/using-vanilla-extract/package.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,24 @@
99
],
1010
"scripts": {
1111
"develop": "gatsby develop",
12-
"start": "gatsby develop",
1312
"build": "gatsby build",
1413
"serve": "gatsby serve",
15-
"clean": "gatsby clean"
14+
"clean": "gatsby clean",
15+
"typecheck": "tsc --noEmit"
1616
},
1717
"dependencies": {
1818
"@vanilla-extract/babel-plugin": "^1.1.4",
1919
"@vanilla-extract/css": "^1.6.8",
2020
"@vanilla-extract/webpack-plugin": "^2.1.5",
2121
"gatsby": "next",
22-
"gatsby-plugin-vanilla-extract": "^2.0.0",
23-
"react": "^17.0.1",
24-
"react-dom": "^17.0.1"
22+
"gatsby-plugin-vanilla-extract": "^2.0.1",
23+
"react": "^17.0.2",
24+
"react-dom": "^17.0.2"
25+
},
26+
"devDependencies": {
27+
"@types/node": "^17.0.21",
28+
"@types/react": "^17.0.39",
29+
"@types/react-dom": "^17.0.11",
30+
"typescript": "^4.6.2"
2531
}
2632
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"lib": ["dom", "esnext"],
5+
"jsx": "react",
6+
"module": "esnext",
7+
"moduleResolution": "node",
8+
"esModuleInterop": true,
9+
"forceConsistentCasingInFileNames": true,
10+
"strict": true,
11+
"skipLibCheck": true
12+
},
13+
"include": ["./src/**/*"]
14+
}

0 commit comments

Comments
 (0)