Skip to content

Commit fabccad

Browse files
committed
Support PNPM env.
1 parent 5dbdc69 commit fabccad

File tree

9 files changed

+1668
-24638
lines changed

9 files changed

+1668
-24638
lines changed

.github/workflows/deploy.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13-
- uses: enriikke/gatsby-gh-pages-action@v2
13+
- uses: pnpm/action-setup@v2
14+
with:
15+
version: 8
16+
- uses: xichen1/[email protected]
1417
with:
1518
access-token: ${{ secrets.ACCESS_TOKEN }}
1619
deploy-branch: gh-pages

README.md

+2-48
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,3 @@
1-
<p align="center">
2-
<a href="https://www.gatsbyjs.com/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts">
3-
<img alt="Gatsby" src="https://www.gatsbyjs.com/Gatsby-Monogram.svg" width="60" />
4-
</a>
5-
</p>
6-
<h1 align="center">
7-
Gatsby Minimal TypeScript Starter
8-
</h1>
1+
## Xichen Pan's Blog
92

10-
## 🚀 Quick start
11-
12-
1. **Create a Gatsby site.**
13-
14-
Use the Gatsby CLI to create a new site, specifying the minimal TypeScript starter.
15-
16-
```shell
17-
# create a new Gatsby site using the minimal TypeScript starter
18-
npm init gatsby -- -ts
19-
```
20-
21-
2. **Start developing.**
22-
23-
Navigate into your new site’s directory and start it up.
24-
25-
```shell
26-
cd my-gatsby-site/
27-
npm run develop
28-
```
29-
30-
3. **Open the code and start customizing!**
31-
32-
Your site is now running at http://localhost:8000!
33-
34-
Edit `src/pages/index.tsx` to see your site update in real-time!
35-
36-
4. **Learn more**
37-
38-
- [Documentation](https://www.gatsbyjs.com/docs/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
39-
- [Tutorials](https://www.gatsbyjs.com/docs/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
40-
- [Guides](https://www.gatsbyjs.com/docs/how-to/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
41-
- [API Reference](https://www.gatsbyjs.com/docs/api-reference/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
42-
- [Plugin Library](https://www.gatsbyjs.com/plugins?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
43-
- [Cheat Sheet](https://www.gatsbyjs.com/docs/cheat-sheet/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter-ts)
44-
45-
## 🚀 Quick start (Netlify)
46-
47-
Deploy this starter with one click on [Netlify](https://app.netlify.com/signup):
48-
49-
[<img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify" />](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-minimal-ts)
3+
Built with Gatsby, Tailwind CSS and TypeScript. Hosted on GitHub Pages.

assets/files/resume.pdf

90.8 KB
Binary file not shown.

gatsby-config.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ const config: GatsbyConfig = {
4848
resolve: `gatsby-source-filesystem`,
4949
options: {
5050
name: `images`,
51-
path: `${__dirname}/assets`,
51+
path: `${__dirname}/assets/images`,
52+
},
53+
},
54+
{
55+
resolve: `gatsby-source-filesystem`,
56+
options: {
57+
name: `files`,
58+
path: `${__dirname}/assets/files`,
5259
},
5360
},
5461
{
@@ -110,6 +117,7 @@ const config: GatsbyConfig = {
110117
"icon": "assets/images/profile-pic.png"
111118
}
112119
},
120+
'gatsby-plugin-pnpm'
113121
]
114122
};
115123

0 commit comments

Comments
 (0)