From a0db7c09f558c6dc355de68d7ddb9c1f68d6b800 Mon Sep 17 00:00:00 2001 From: Olivier Biot Date: Wed, 18 Mar 2026 18:08:26 +0800 Subject: [PATCH] Clean up root config files - .gitignore: remove stale entries (Eclipse, Sublime, add-on/, _SpecRunner.html) - .editorconfig: add tab indent for JS/TS files, simplify - .vscode/settings.json: fix Windows path separator in typescript.tsdk Co-Authored-By: Claude Opus 4.6 (1M context) --- .editorconfig | 10 +++------- .github/workflows/docs.yml | 7 +++++++ .github/workflows/main.yml | 8 ++++++++ .github/workflows/test.yml | 7 +++++++ .gitignore | 18 ++++-------------- .vscode/settings.json | 2 +- 6 files changed, 30 insertions(+), 22 deletions(-) diff --git a/.editorconfig b/.editorconfig index 622baf237b..5f02159cec 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,16 +1,12 @@ -; EditorConfig file format for defining coding styles -; enabling editors to adhere to the project defined style. -; Visit http://editorconfig.org for more details. - root = true -[**] +[*] end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true +indent_style = tab -[**.{html,json,yml,css}] +[*.{yml,yaml,css,html,md}] indent_style = space indent_size = 2 - diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ea764a0635..3679f92550 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,6 +18,13 @@ jobs: with: node-version: 22 - uses: pnpm/action-setup@v4 + - name: Get pnpm store directory + run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - uses: actions/cache@v4 + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: ${{ runner.os }}-pnpm-store- - run: pnpm i - name: Build melonjs run: pnpm -F melonjs build diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee354149df..a901d17e23 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,14 @@ jobs: with: node-version: ${{ matrix.node }} - uses: pnpm/action-setup@v4 + - name: Get pnpm store directory + shell: bash + run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - uses: actions/cache@v4 + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: ${{ runner.os }}-pnpm-store- - run: pnpm i - run: pnpm lint - run: pnpm biome check diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3d5d1f0a84..6acdd84e5d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,5 +16,12 @@ jobs: with: node-version: 22 - uses: pnpm/action-setup@v4 + - name: Get pnpm store directory + run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - uses: actions/cache@v4 + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: ${{ runner.os }}-pnpm-store- - run: pnpm i - run: pnpm test diff --git a/.gitignore b/.gitignore index 9dd86479eb..364a49e0b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,27 +1,17 @@ -# Eclipse files -.project -.settings +# IDE .idea +*.sw* -# Temp files +# OS .DS_Store Thumbs.db Desktop.ini -# Vim swap files -*.sw* - -# Sublime project and workspace -*.sublime-project -*.sublime-workspace - -# Project specific ignore -add-on/ +# Project node_modules/ **/build/ dist/* !.placeholder -/_SpecRunner.html package-lock.json docs/ .turbo diff --git a/.vscode/settings.json b/.vscode/settings.json index fd9296f709..4f791c1c35 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,5 +15,5 @@ "quickfix.biome": "explicit", "source.organizeImports.biome": "explicit" }, - "typescript.tsdk": "node_modules\\typescript\\lib" + "typescript.tsdk": "node_modules/typescript/lib" }