Skip to content

Commit bbe36a3

Browse files
committed
chore: prune git history
0 parents  commit bbe36a3

File tree

741 files changed

+13701
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

741 files changed

+13701
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// https://github.com/devcontainers/templates/tree/main/src/javascript-node
2+
// TODO: I don't use devcontainer, someone check if this works
3+
{
4+
"name": "ut.code(); Website",
5+
"image": "ghcr.io/nhaef/devcontainer-bun:latest",
6+
"forwardPorts": [4321],
7+
"updateContentCommand": "bun i --frozen-lockfile",
8+
"postAttachCommand": "bun dev",
9+
"portsAttributes": { "4321": { "onAutoForward": "openPreview" } },
10+
"customizations": {
11+
"vscode": {
12+
"extensions": ["dbaeumer.vscode-eslint", "apollographql.vscode-apollo"]
13+
}
14+
}
15+
}

.envrc.sample

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# if you are using flakes
2+
watch_file ./shell.nix
3+
use flake
4+
5+
# else if you are using nix-shell
6+
use nix

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
enable-beta-ecosystems: true # support bun
3+
updates:
4+
- package-ecosystem: "npm"
5+
directory: "."
6+
schedule:
7+
interval: "weekly"
8+
timezone: "Asia/Tokyo"
9+
target-branch: "main"

.github/workflows/check.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Check
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
check:
10+
name: Check
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: oven-sh/setup-bun@v2
15+
with:
16+
bun-version: 1.2.5
17+
- run: bun install --frozen-lockfile
18+
- run: bun check
19+
build:
20+
name: Build
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: oven-sh/setup-bun@v2
25+
with:
26+
bun-version: 1.2.5
27+
- run: bun install --frozen-lockfile
28+
- uses: actions/cache@v4
29+
with:
30+
key: ${{ runner.os }}-astro-build
31+
path: |
32+
.astro
33+
dist
34+
node_modules/.astro/assets
35+
restore-keys: ${{ runner.os }}-astro-build
36+
- run: bun run build
37+
dirs-small:
38+
name: All dirs must be small (<5MB)
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: cachix/install-nix-action@v31
43+
- run: nix run github:ut-code/internal-helpers#disallow-large-dir contents/articles/*/*
44+
- run: nix run github:ut-code/internal-helpers#disallow-large-dir contents/members/*/*

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/node_modules/
2+
3+
# artifact
4+
/.astro/
5+
/dist
6+
src/gatsby-types.d.ts
7+
dist
8+
9+
# editor
10+
.DS_Store
11+
12+
# env
13+
.direnv
14+
.envrc
15+
16+
.unlighthouse

.helix/languages.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[language-servers.astro-ls]
2+
command = "astro-ls"
3+
args = ["--stdio"]
4+
config = { contentIntellisense = true } # not working?
5+
6+
[[language]]
7+
name = "astro"
8+
formatter = { command = "bun", args = ["prettier", "--parser", "astro"] }
9+
language-servers = ["astro-ls", "tailwindcss-ls"]
10+
11+
[[language]]
12+
name = "typescript"
13+
formatter = { command = "bun", args = ["prettier", "--parser", "typescript"] }
14+
15+
[[language]]
16+
name = "svelte"
17+
formatter = { command = "bun", args = ["prettier", "--parser", "svelte"] }
18+
auto-format = true
19+
20+
[[language]]
21+
name = "markdown"
22+
file-types = ["md", "mdx"]
23+
language-servers = ["astro-ls"]

.ignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bun.lock
2+
3+
contents/articles/20*
4+
!contents/articles/2025

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/contents

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
plugins:
2+
- prettier-plugin-astro
3+
- prettier-plugin-svelte
4+
- prettier-plugin-tailwindcss
5+
overrides:
6+
- files: "*.astro"
7+
options:
8+
parser: "astro"
9+
- files: "*.svelte"
10+
options:
11+
parser: "svelte"

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"]
3+
}

0 commit comments

Comments
 (0)