You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorial/building-a-theme.md
+6-15Lines changed: 6 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ In this tutorial, you'll learn how to build a theme plugin for Gatsby. This tuto
8
8
9
9
In this section, you'll learn how to structure folders and configure yarn workspaces to develop Gatsby themes. You'll create two workspaces, `gatsby-theme-events` and `site`.
10
10
11
-
Each workspace can be run separately, as well as one depending on the other. In this example, `gatsby-theme-events` will be a dependency of `site`.
11
+
In this example, `gatsby-theme-events` will be a dependency of `site` so you'll run `site` to see everything working.
12
12
13
13
### Create a new empty folder
14
14
@@ -47,12 +47,7 @@ In the `package.json` file in `gatsby-theme-events`, add the following:
47
47
"name": "gatsby-theme-events",
48
48
"version": "1.0.0",
49
49
"main": "index.js",
50
-
"license": "MIT",
51
-
"scripts": {
52
-
"build": "gatsby build",
53
-
"clean": "gatsby clean",
54
-
"develop": "gatsby develop"
55
-
}
50
+
"license": "MIT"
56
51
}
57
52
```
58
53
@@ -154,19 +149,15 @@ The `gatsby-theme-events/package.json` file should now include the following:
154
149
}
155
150
```
156
151
157
-
### Run `site` and `gatsby-theme-events`
152
+
### Run `site`
158
153
159
-
Run both `site`and `gatsby-theme-events`to verify that they're working.
154
+
Run `site` to verify that it's working.
160
155
161
156
```shell
162
157
yarn workspace site develop
163
158
```
164
159
165
-
```shell
166
-
yarn workspace gatsby-theme-events develop
167
-
```
168
-
169
-
In both cases, you should see a Gatsby site successfully running in development mode. Since there's no content, visiting the site should serve a default Gatsby 404 page.
160
+
You should see a Gatsby site successfully running in development mode. Since there's no content, visiting the site should serve a default Gatsby 404 page.
0 commit comments