Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .eslintrc.js

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,23 @@ jobs:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.2.4"
- run: bun install --frozen-lockfile
- run: bun check
typos:
name: Check Typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.2.4"
Expand Down
11 changes: 9 additions & 2 deletions .helix/languages.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[language-servers]
astro-ls = { command = "astro-ls", args = ["--stdio"] }
[language-servers.astro-ls]
command = "astro-ls"
args = ["--stdio"]
config = { contentIntellisense = true } # not working?

[[language]]
name = "astro"
Expand All @@ -14,3 +16,8 @@ formatter = { command = "bun", args = ["prettier", "--parser", "typescript"] }
name = "svelte"
formatter = { command = "bun", args = ["prettier", "--parser", "svelte"] }
auto-format = true

[[language]]
name = "markdown"
file-types = ["md", "mdx"]
language-servers = ["astro-ls"]
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["astro-build.astro-vscode"]
"recommendations": ["astro-build.astro-vscode", "tekumara.typos-vscode"]
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
### ローカル

- (必須) Bun >= v1.1.39
- 任意のエディタ https://docs.astro.build/en/editor-setup/
- (推奨) Typos <https://github.com/crate-ci/typos>
- 任意のエディタ <https://docs.astro.build/en/editor-setup/>

```sh
bun install --frozen-lockfile
Expand Down
2 changes: 2 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default.extend-words]
progate = "progate"
2 changes: 2 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ pre-commit:
stage_fixed: true
sync:
run: bun sync
typos:
run: if command -v typos 2&> /dev/null; then typos; fi
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "website",
"version": "3.1.0",
"private": true,
"homepage": "https://utcode.net",
"description": "website of ut.code();, version 3",
"author": "aster-void and others",
"type": "module",
"private": true,
"version": "3.1.1",
"keywords": [
"astro",
"ut.code();"
],
"type": "module",
"scripts": {
"prepare": "lefthook install && bun sync",
"sync": "astro sync",
Expand Down
3 changes: 3 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ pkgs.mkShell {
packages = [
pkgs.bun
pkgs.biome
pkgs.astro-language-server
pkgs.nodejs-slim # required by astro to find sharp
pkgs.typos
pkgs.typos-lsp
];
}
2 changes: 0 additions & 2 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export type Project = z.infer<ReturnType<typeof CreateProjectSchema>>;

export const CreateArticleSchema = ({ image }: { image: ImageFunction }) =>
z.object({
// excerpt: z.string().nullable(),
// longExcerpt: z.string().nullable(),
date: z
.date()
.transform((date) => new TZDate(date).withTimeZone("Asia/Tokyo")),
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
}
},
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
"exclude": ["dist", ".direnv"]
}