File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 6666 ]
6767 }
6868 },
69+ {
70+ "key" : " src/pages/installation/gatsby.mdx" ,
71+ "value" : {
72+ "name" : " Gatsby" ,
73+ "route" : " /installation/gatsby" ,
74+ "menu" : " Installation" ,
75+ "id" : " 564fc0dc9ce695d4d297e27fac07047b" ,
76+ "filepath" : " src/pages/installation/gatsby.mdx" ,
77+ "link" : " https://github.com/AryanJ-NYC/reactandtypescript.dev/edit/master/src/pages/installation/gatsby.mdx" ,
78+ "slug" : " src-pages-installation-gatsby" ,
79+ "headings" : [
80+ {
81+ "slug" : " gatsby" ,
82+ "depth" : 1 ,
83+ "value" : " Gatsby"
84+ }
85+ ]
86+ }
87+ },
6988 {
7089 "key" : " src/pages/installation/create-react-app.mdx" ,
7190 "value" : {
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ export const imports = {
77 import (
88 /* webpackPrefetch: true, webpackChunkName: "src-pages-examples-functional-components" */ 'src/pages/examples/functional-components.mdx'
99 ) ,
10+ 'src/pages/installation/gatsby.mdx' : ( ) =>
11+ import (
12+ /* webpackPrefetch: true, webpackChunkName: "src-pages-installation-gatsby" */ 'src/pages/installation/gatsby.mdx'
13+ ) ,
1014 'src/pages/installation/create-react-app.mdx' : ( ) =>
1115 import (
1216 /* webpackPrefetch: true, webpackChunkName: "src-pages-installation-create-react-app" */ 'src/pages/installation/create-react-app.mdx'
Original file line number Diff line number Diff line change 1+ ---
2+ name : Gatsby
3+ route : /installation/gatsby
4+ menu : Installation
5+ ---
6+
7+ # Gatsby
8+
9+ 1\. Install [ ` gatsby-plugin-typescript ` ] ( https://www.gatsbyjs.org/packages/gatsby-plugin-typescript/ ) .
10+
11+ ```
12+ npm install gatsby-plugin-typescript
13+ ```
14+
15+ or
16+
17+ ```
18+ yarn add gatsby-plugin-typescript
19+ ```
20+
21+ 2\. Add to array of ` plugins ` in ` gatsby-config.js ` :
22+
23+ ``` js
24+ // gatsby-config.js
25+ module .exports = {
26+ // ...,
27+ plugins: [... ` gatsby-plugin-typescript` ],
28+ };
29+ ```
You can’t perform that action at this time.
0 commit comments