Skip to content

Commit

Permalink
Merge pull request #7 from lonsagisawa/next ( #6 )
Browse files Browse the repository at this point in the history
Build a new blog and portfolio
  • Loading branch information
lonsagisawa authored Nov 23, 2022
2 parents b9783a4 + d881b6b commit 080d7f4
Show file tree
Hide file tree
Showing 38 changed files with 33,043 additions and 37,240 deletions.
29 changes: 15 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
"plugin:react/jsx-runtime",
"standard-with-typescript",
"prettier"
],
"parser": "@typescript-eslint/parser",
"overrides": [],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
"ecmaVersion": "latest",
"sourceType": "module",
"project": "tsconfig.json"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
}
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["react"],
"ignorePatterns": ["gatsby-types.d.ts"],
"rules": {}
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v18
5 changes: 3 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.cache
package.json
package-lock.json
public
node_modules
static

4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"endOfLine": "lf",
"semi": false
}
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"GraphQL.vscode-graphql-syntax",
"dbaeumer.vscode-eslint",
"GraphQL.vscode-graphql",
"esbenp.prettier-vscode"
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": ["javascript", "typescript"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
29 changes: 18 additions & 11 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
The BSD Zero Clause License (0BSD)
MIT License

Copyright (c) 2020 Gatsby Inc.
Copyright (c) 2022 Lon Sagisawa

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
# [lon.sagisawa.me](https://lon.sagisawa.me)

My personal blog built on Gatsby 4.

* Content delivered from Contentful.
* Follows modern best practice as I could.
* Designed for build on Gatsby Cloud, deploy to Vercel.
* Utilize [Emotion](https://emotion.sh) for styling.
* Installed TypeScript plugin for type safety, but not migrated yet.
* Works as PWA.
* Syntax highlight with Shiki.
* RSS feed.
* 95+ Lighthouse performance score. Reaches 100 in individual article page.
My personal blog built on Gatsby 5. Still work in progress.

## Usage

``` shell
```shell
# .env.development
CONTENTFUL_SPACE_ID="{Your Contentful space ID}"
CONTENTFUL_ACCESS_TOKEN="{Your Contentful access token}"
Expand All @@ -28,5 +18,5 @@ npm run dev

## Thanks to

* [Gatsby入門](https://zenn.dev/tomokiya/books/4b13342f6d878b93e06c) (Japanese) - This inspired me to try Gatsby again. This repo was basically result of this hands-on, but after my development and migration work to Gatsby v2, v3 and v4 it's been different.
* Based on [gatsbyjs/gatsby-starter-hello-world](https://github.com/gatsbyjs/gatsby-starter-hello-world)
- [Gatsby 入門](https://zenn.dev/tomokiya/books/4b13342f6d878b93e06c) (Japanese) - This inspired me to try Gatsby again. This repo was result of this hands-on before November 2022, but I built new blog from scratch.
- Based on [gatsbyjs/gatsby-starter-hello-world](https://github.com/gatsbyjs/gatsby-starter-hello-world)
6 changes: 0 additions & 6 deletions dependabot.yml

This file was deleted.

2 changes: 2 additions & 0 deletions gatsby-browser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* import CSS reset and fonts */
import "the-new-css-reset"
Loading

0 comments on commit 080d7f4

Please sign in to comment.