From 1f487d32b3b1210596f5a32d19c1ef9b60fbf3c8 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 23 Feb 2026 01:26:12 +0000 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E9=96=8B=E7=99=BA=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=20(.vscode,=20editorconfig,=20env=20example)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ryusei Sugita --- .editorconfig | 12 ++++++++++++ .env.example | 3 +++ .gitignore | 5 ++++- .vscode/extensions.json | 5 +++++ .vscode/settings.json | 9 +++++++++ .vscode/tasks.json | 42 +++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 7 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 .editorconfig create mode 100644 .env.example create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1014ba7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..45862a4 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +# microCMS Management API credentials +MICROCMS_SERVICE_DOMAIN=your-service-id +MICROCMS_API_KEY=your-management-api-key diff --git a/.gitignore b/.gitignore index 328c1fb..3b06f1f 100644 --- a/.gitignore +++ b/.gitignore @@ -53,7 +53,10 @@ jspm_packages/ .env.production.local # IDE files -.vscode/ +.vscode/* +!.vscode/settings.json +!.vscode/extensions.json +!.vscode/tasks.json .idea/ *.swp *.swo diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..05bbf7f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "oven.bun-vscode" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d1b0948 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "files.eol": "\n", + "files.insertFinalNewline": true, + "files.trimTrailingWhitespace": true, + "editor.detectIndentation": false, + "editor.tabSize": 2, + "editor.formatOnSave": false, + "typescript.tsdk": "node_modules/typescript/lib" +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..af5c946 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "bun: install", + "type": "shell", + "command": "bun install", + "problemMatcher": [] + }, + { + "label": "bun: lint", + "type": "shell", + "command": "bun run lint", + "group": "test", + "problemMatcher": [] + }, + { + "label": "bun: typecheck", + "type": "shell", + "command": "bun run typecheck", + "group": "test", + "problemMatcher": [] + }, + { + "label": "bun: test", + "type": "shell", + "command": "bun run test", + "group": "test", + "problemMatcher": [] + }, + { + "label": "bun: build", + "type": "shell", + "command": "bun run build", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + } + ] +} diff --git a/README.md b/README.md index 033fecb..6b9f353 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,8 @@ microcms generate:types blog カレントディレクトリの `.env` と `.env.local` を自動で読み込みます(`.env.local` は後から読み込むため、同名の変数を上書きします)。[dotenv](https://github.com/motdotla/dotenv) 使用。 CLI引数で指定しない場合、以下の環境変数が必要です。 +`.env.example` をコピーして `.env` を作成しておくとスムーズです。 + ```bash MICROCMS_SERVICE_DOMAIN=your-service-id MICROCMS_API_KEY=your-management-api-key From d4c66ea27ef07d26b743042144ca257c2b6c558b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 23 Feb 2026 01:33:06 +0000 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20env=E6=A1=88=E5=86=85=E3=82=92?= =?UTF-8?q?=E5=89=8A=E9=99=A4=E3=81=97=E4=BF=9D=E5=AD=98=E6=99=82=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=BC=E3=83=9E=E3=83=83=E3=83=88=E3=82=92=E6=9C=89?= =?UTF-8?q?=E5=8A=B9=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ryusei Sugita --- .env.example | 3 --- .vscode/settings.json | 2 +- README.md | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 .env.example diff --git a/.env.example b/.env.example deleted file mode 100644 index 45862a4..0000000 --- a/.env.example +++ /dev/null @@ -1,3 +0,0 @@ -# microCMS Management API credentials -MICROCMS_SERVICE_DOMAIN=your-service-id -MICROCMS_API_KEY=your-management-api-key diff --git a/.vscode/settings.json b/.vscode/settings.json index d1b0948..c3f7f19 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,6 @@ "files.trimTrailingWhitespace": true, "editor.detectIndentation": false, "editor.tabSize": 2, - "editor.formatOnSave": false, + "editor.formatOnSave": true, "typescript.tsdk": "node_modules/typescript/lib" } diff --git a/README.md b/README.md index 6b9f353..033fecb 100644 --- a/README.md +++ b/README.md @@ -67,8 +67,6 @@ microcms generate:types blog カレントディレクトリの `.env` と `.env.local` を自動で読み込みます(`.env.local` は後から読み込むため、同名の変数を上書きします)。[dotenv](https://github.com/motdotla/dotenv) 使用。 CLI引数で指定しない場合、以下の環境変数が必要です。 -`.env.example` をコピーして `.env` を作成しておくとスムーズです。 - ```bash MICROCMS_SERVICE_DOMAIN=your-service-id MICROCMS_API_KEY=your-management-api-key