diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..58a4133 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +16.13.0 diff --git a/README.md b/README.md index 490e12f..bc7afb7 100644 --- a/README.md +++ b/README.md @@ -1 +1,30 @@ # Code Bushi Theme Starter + +## Quick Start + +This is a library, intended to be loaded into a working theme: + +```bash +yarn add gatsby-theme-codebushi +``` + +## Beta Testing + +You can also use this to test & build your theme. For example, download an +early release of +[Starter Lander](https://github.com/codebushi/gatsby-starter-lander) +inside the `gatsby-theme-codebushi/` folder. + +```bash +yarn install +yarn workspace gatsby-starter-lander develop +``` + +See the top level `gatsby-theme-codebushi/package.json` for detailed examples. + +Make sure that your nested workspace repo calls the right version of +**"gatsby-theme-codebushi": "^1.1"** in its package.json. For the above example, +we'd set the version in +`gatsby-theme-codebushi/gatsby-starter-lander/package.json` + +Happy hacking! diff --git a/example/package.json b/example/package.json index 478672b..64633ee 100644 --- a/example/package.json +++ b/example/package.json @@ -1,6 +1,6 @@ { "name": "example", - "version": "1.0.0", + "version": "1.1.0", "main": "index.js", "author": "christopherbiscardi (@chrisbiscardi)", "license": "MIT", @@ -9,9 +9,9 @@ "build": "gatsby build" }, "dependencies": { - "gatsby": "^2.13.73", + "gatsby": "^4.0.0-next", "gatsby-theme-codebushi": "*", - "react": "^16.9.0", - "react-dom": "^16.9.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" } } diff --git a/example/src/pages/index.js b/example/src/pages/index.js index 178e13f..d8c9397 100644 --- a/example/src/pages/index.js +++ b/example/src/pages/index.js @@ -1,7 +1,9 @@ import React from 'react'; -export default () => ( +const Index = () => (

Homepage

); + +export default Index; diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..00d7f3e Binary files /dev/null and b/favicon.ico differ diff --git a/gatsby-theme-codebushi/gatsby-node.js b/gatsby-theme-codebushi/gatsby-node.js index 5ba15d6..ab23c36 100644 --- a/gatsby-theme-codebushi/gatsby-node.js +++ b/gatsby-theme-codebushi/gatsby-node.js @@ -1,7 +1,9 @@ exports.onCreateWebpackConfig = ({ actions }) => { actions.setWebpackConfig({ - node: { - fs: 'empty' + resolve: { + fallback: { + fs: false + } } }); }; diff --git a/gatsby-theme-codebushi/package.json b/gatsby-theme-codebushi/package.json index 0baf2ac..09acd84 100644 --- a/gatsby-theme-codebushi/package.json +++ b/gatsby-theme-codebushi/package.json @@ -1,15 +1,15 @@ { "name": "gatsby-theme-codebushi", - "version": "1.0.0", + "version": "1.1.0", "main": "index.js", "author": "Hunter Chang", - "repository": "https://github.com/codebushi/gatsby-theme-document", + "repository": "https://github.com/codebushi/gatsby-theme-codebushi", "license": "MIT", "keywords": [ "gatsby", "gatsby-plugin", "gatsby-theme", - "gatsby-theme-document", + "gatsby-theme-codebushi", "mdx", "theme-ui", "react" @@ -19,24 +19,25 @@ "build": "gatsby build" }, "peerDependencies": { - "gatsby": "^2.18.7", - "react": "^16.12.0", - "react-dom": "^16.12.0" + "gatsby": "^4.0.0-next", + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { - "gatsby": "^2.18.7", - "react": "^16.12.0", - "react-dom": "^16.12.0" + "gatsby": "^4.0.0-next", + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "dependencies": { - "@emotion/core": "^10.0.22", - "@emotion/styled": "^10.0.23", - "autoprefixer": "^9.7.3", - "gatsby-plugin-emotion": "^4.1.16", - "gatsby-plugin-postcss": "^2.1.16", - "gatsby-plugin-purgecss": "^4.0.1", - "gatsby-plugin-react-helmet": "^3.1.16", - "react-helmet": "^5.2.1", - "tailwindcss": "^1.1.4" + "@emotion/core": "^11.0.0", + "@emotion/react": "^11.7.0", + "@emotion/styled": "^11.6.0", + "autoprefixer": "^10.4.0", + "gatsby-plugin-emotion": "^7.3.0", + "gatsby-plugin-postcss": "^5.3.0", + "gatsby-plugin-purgecss": "^6.1.0", + "gatsby-plugin-react-helmet": "^5.3.0", + "react-helmet": "^6.1.0", + "tailwindcss": "^2.2.19" } } diff --git a/package.json b/package.json index 0dfd51b..e35ebb7 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,33 @@ { "name": "gatsby-starter-theme-workspace", "private": true, - "version": "0.0.1", + "version": "0.1.0", "main": "index.js", "license": "MIT", "scripts": { - "develop": "yarn workspace example develop", - "build": "yarn workspace example build" + "develop-example": "yarn workspace example develop", + "build-example": "yarn workspace example build", + "develop-starter": "yarn workspace gatsby-starter-lander develop", + "build-starter": "yarn workspace gatsby-starter-lander build" }, "workspaces": [ + "gatsby-starter-lander", "gatsby-theme-codebushi", "example" ], "devDependencies": { - "eslint": "^6.2.2", - "eslint-config-prettier": "^6.1.0", - "eslint-plugin-prettier": "^3.1.0", - "eslint-plugin-react-hooks": "^2.0.1", - "eslint-config-airbnb": "^18.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-jsx-a11y": "^6.2.3", - "eslint-plugin-react": "^7.14.3", - "prettier": "^1.18.2" + "eslint": "^8.4.0", + "eslint-config-prettier": "^8.3.0", + "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-react-hooks": "^4.3.0", + "eslint-config-airbnb": "^19.0.2", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-react": "^7.27.1", + "prettier": "^2.5.1" + }, + "volta": { + "node": "16.13.0", + "yarn": "1.22.17" } }