Skip to content

Commit

Permalink
Update koki-sato.com
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-sato committed Jul 11, 2024
1 parent af27a47 commit b6da221
Show file tree
Hide file tree
Showing 65 changed files with 7,986 additions and 5,775 deletions.
10 changes: 7 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
tab_width = 4

[*.py]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[*.go]
indent_style = tab

[*.rs]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
84 changes: 84 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/**
* This is intended to be a basic starting point for linting in your app.
* It relies on recommended configs out of the box for simplicity, but you can
* and should modify this configuration to best suit your team's needs.
*/

/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
commonjs: true,
es6: true
},
ignorePatterns: ['!**/.server', '!**/.client'],

// Base config
extends: ['eslint:recommended'],

overrides: [
// React
{
files: ['**/*.{js,jsx,ts,tsx}'],
plugins: ['react', 'jsx-a11y'],
extends: [
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended'
],
settings: {
react: {
version: 'detect'
},
formComponents: ['Form'],
linkComponents: [
{ name: 'Link', linkAttribute: 'to' },
{ name: 'NavLink', linkAttribute: 'to' }
],
'import/resolver': {
typescript: {}
}
}
},

// Typescript
{
files: ['**/*.{ts,tsx}'],
plugins: ['@typescript-eslint', 'import'],
parser: '@typescript-eslint/parser',
settings: {
'import/internal-regex': '^~/',
'import/resolver': {
node: {
extensions: ['.ts', '.tsx']
},
typescript: {
alwaysTryTypes: true
}
}
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript'
]
},

// Node
{
files: ['.eslintrc.cjs'],
env: {
node: true
}
}
]
}
7 changes: 0 additions & 7 deletions .eslintrc.json

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json

- name: npm install
run: npm install

- name: Run build
run: npm run build

- uses: actions/upload-pages-artifact@v3
with:
path: build/client

deploy:
runs-on: ubuntu-latest

needs: [build]

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
29 changes: 0 additions & 29 deletions .github/workflows/gh-pages.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Build and Test
name: Test

on:
push:
branches-ignore: [gh-pages]
on: push

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

Expand Down
88 changes: 72 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
Expand All @@ -16,11 +21,12 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
Expand All @@ -36,15 +42,27 @@ build/Release
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

Expand All @@ -54,32 +72,70 @@ typings/
# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
# dotenv environment variable files
.env

# direnv environment variables file
.envrc
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# next.js build output
# Next.js build output
.next
out

# nuxt.js build output
# Nuxt.js build / generate output
.nuxt

# typescript build output
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Serverless Webpack directories
.webpack/

# Optional stylelint cache

# IDE
.idea
# SvelteKit build / generate output
.svelte-kit

# Service worker
sw.*
# Remix
/build
/public/build
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.10.0
20.15.0
Empty file added .nojekyll
Empty file.
File renamed without changes.
7 changes: 5 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"recommendations": [
"editorconfig.editorconfig",
"bradlc.vscode-tailwindcss",
"csstools.postcss",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-github-actions"
]
}
7 changes: 4 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.renderControlCharacters": true
}
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# koki-sato.github.io

![Build and Test](https://github.com/koki-sato/koki-sato.github.io/workflows/Build%20and%20Test/badge.svg)
![GitHub Pages](https://github.com/koki-sato/koki-sato.github.io/workflows/GitHub%20Pages/badge.svg)
[![Test](https://github.com/koki-sato/koki-sato.github.io/actions/workflows/test.yml/badge.svg)](https://github.com/koki-sato/koki-sato.github.io/actions/workflows/test.yml)
[![Deploy](https://github.com/koki-sato/koki-sato.github.io/actions/workflows/deploy.yml/badge.svg)](https://github.com/koki-sato/koki-sato.github.io/actions/workflows/deploy.yml)

My portfolio page. See https://koki-sato.com
My portfolio page. See <https://koki-sato.com>

## Usage

Expand Down
Loading

0 comments on commit b6da221

Please sign in to comment.