Skip to content

Commit

Permalink
chore(examples): Update vanilla-extract (#35000)
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Mar 1, 2022
1 parent 77c32b0 commit da2a1ba
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 7 deletions.
2 changes: 2 additions & 0 deletions examples/using-vanilla-extract/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Using vanilla-extract

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).

Visit [TypeScript and Gatsby](https://www.gatsbyjs.com/docs/how-to/custom-configuration/typescript/) for more information.
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
module.exports = {
import type { GatsbyConfig } from "gatsby"

const config: GatsbyConfig = {
siteMetadata: {
title: `using-vanilla-extract`,
siteUrl: `https://www.yourdomain.tld`,
},
plugins: [`gatsby-plugin-vanilla-extract`]
}
}

export default config
16 changes: 11 additions & 5 deletions examples/using-vanilla-extract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,24 @@
],
"scripts": {
"develop": "gatsby develop",
"start": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby clean"
"clean": "gatsby clean",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@vanilla-extract/babel-plugin": "^1.1.4",
"@vanilla-extract/css": "^1.6.8",
"@vanilla-extract/webpack-plugin": "^2.1.5",
"gatsby": "next",
"gatsby-plugin-vanilla-extract": "^2.0.0",
"react": "^17.0.1",
"react-dom": "^17.0.1"
"gatsby-plugin-vanilla-extract": "^2.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@types/node": "^17.0.21",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"typescript": "^4.6.2"
}
}
14 changes: 14 additions & 0 deletions examples/using-vanilla-extract/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "esnext",
"lib": ["dom", "esnext"],
"jsx": "react",
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
},
"include": ["./src/**/*"]
}

0 comments on commit da2a1ba

Please sign in to comment.