Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.13.0
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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!
8 changes: 4 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example",
"version": "1.0.0",
"version": "1.1.0",
"main": "index.js",
"author": "christopherbiscardi <[email protected]> (@chrisbiscardi)",
"license": "MIT",
Expand All @@ -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"
}
}
4 changes: 3 additions & 1 deletion example/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import React from 'react';

export default () => (
const Index = () => (
<div className="container mx-auto p-8">
<p>Homepage</p>
</div>
);

export default Index;
Binary file added favicon.ico
Binary file not shown.
6 changes: 4 additions & 2 deletions gatsby-theme-codebushi/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
node: {
fs: 'empty'
resolve: {
fallback: {
fs: false
}
}
});
};
37 changes: 19 additions & 18 deletions gatsby-theme-codebushi/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
}
}
31 changes: 19 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}