From e62f1418e730fae25ea905b3770a9018458a1355 Mon Sep 17 00:00:00 2001 From: ienaga Date: Fri, 31 Oct 2025 23:06:24 +0900 Subject: [PATCH 1/3] #52 update packages, update github/actions --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/lint.yml | 8 +++---- .github/workflows/publish.yml | 4 ++-- package.json | 2 +- template/package.json | 31 ++++++++++++++------------- template/tsconfig.json | 3 ++- template/vite.config.ts | 10 +++------ 7 files changed, 29 insertions(+), 31 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index bd47f99..bae123b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -40,7 +40,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cda0855..bfc5438 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,8 +14,8 @@ jobs: macos-browser-test: runs-on: macos-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v5 - run: | npm install npx eslint ./src/**/*.ts @@ -24,8 +24,8 @@ jobs: windows-browser-test: runs-on: windows-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v5 - run: | npm install npx eslint ./src/**/*.ts diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b48e939..d032f9a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,8 +9,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v5 with: node-version: "22.x" registry-url: "https://registry.npmjs.org" diff --git a/package.json b/package.json index 8bb3252..92669f8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@next2d/framework-typescript-template", "description": "Next2D Framework default TypeScript template.", - "version": "3.2.5", + "version": "3.2.6", "homepage": "https://next2d.app", "bugs": "https://github.com/Next2D/framework-typescript-template/issues/new", "author": "Toshiyuki Ienaga", diff --git a/template/package.json b/template/package.json index fc12558..2678b03 100644 --- a/template/package.json +++ b/template/package.json @@ -19,24 +19,25 @@ "generate": "npx @next2d/view-generator" }, "devDependencies": { - "@capacitor/android": "^7.4.3", - "@capacitor/cli": "^7.4.3", - "@capacitor/core": "^7.4.3", - "@capacitor/ios": "^7.4.3", + "@capacitor/android": "^7.4.4", + "@capacitor/cli": "^7.4.4", + "@capacitor/core": "^7.4.4", + "@capacitor/ios": "^7.4.4", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "^9.36.0", - "@next2d/vite-plugin-next2d-auto-loader": "^3.1.7", - "@types/node": "^24.6.2", - "@typescript-eslint/eslint-plugin": "^8.45.0", - "@typescript-eslint/parser": "^8.45.0", - "@vitest/web-worker": "^3.2.4", - "eslint": "^9.36.0", - "eslint-plugin-unused-imports": "^4.2.0", + "@eslint/js": "^9.38.0", + "@next2d/vite-plugin-next2d-auto-loader": "^3.1.8", + "@types/node": "^24.9.2", + "@typescript-eslint/eslint-plugin": "^8.46.2", + "@typescript-eslint/parser": "^8.46.2", + "@vitest/web-worker": "^4.0.6", + "eslint": "^9.38.0", + "eslint-plugin-unused-imports": "^4.3.0", "globals": "^16.4.0", - "jsdom": "^27.0.0", + "jsdom": "^27.1.0", "typescript": "^5.9.3", - "vite": "^7.1.8", - "vitest": "^3.2.4", + "vite": "^7.1.12", + "vite-tsconfig-paths": "^5.1.4", + "vitest": "^4.0.6", "vitest-webgl-canvas-mock": "^1.1.0" }, "peerDependencies": { diff --git a/template/tsconfig.json b/template/tsconfig.json index 38d81cf..412884e 100644 --- a/template/tsconfig.json +++ b/template/tsconfig.json @@ -5,6 +5,7 @@ "module": "ESNext", "lib": ["ES2020", "DOM", "DOM.Iterable"], "skipLibCheck": true, + "ignoreDeprecations": "6.0", /* Bundler mode */ "moduleResolution": "Bundler", @@ -26,7 +27,7 @@ "esModuleInterop": true, "baseUrl": "./src", "paths": { - "@/*": ["*"], + "@/*": ["*"] } }, "include": [ diff --git a/template/vite.config.ts b/template/vite.config.ts index 627b058..603fbba 100644 --- a/template/vite.config.ts +++ b/template/vite.config.ts @@ -1,7 +1,7 @@ /// -import { defineConfig } from "vite"; -import path from "path"; +import { defineConfig } from "vitest/config"; +import tsconfigPaths from "vite-tsconfig-paths"; import autoLoader from "@next2d/vite-plugin-next2d-auto-loader"; export default defineConfig({ @@ -19,6 +19,7 @@ export default defineConfig({ } }, "plugins": [ + tsconfigPaths(), autoLoader() ], "server": { @@ -35,11 +36,6 @@ export default defineConfig({ } } }, - "resolve": { - "alias": { - "@": path.resolve(process.cwd(), "./src") - } - }, "test": { "globals": true, "environment": "jsdom", From a61a7deaaef2a327f47dea4cea17d6ace0d4ba3a Mon Sep 17 00:00:00 2001 From: ienaga Date: Sat, 1 Nov 2025 11:27:11 +0900 Subject: [PATCH 2/3] #52 update packages --- template/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template/package.json b/template/package.json index 2678b03..01c67d3 100644 --- a/template/package.json +++ b/template/package.json @@ -24,13 +24,13 @@ "@capacitor/core": "^7.4.4", "@capacitor/ios": "^7.4.4", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "^9.38.0", - "@next2d/vite-plugin-next2d-auto-loader": "^3.1.8", + "@eslint/js": "^9.39.0", + "@next2d/vite-plugin-next2d-auto-loader": "^3.1.9", "@types/node": "^24.9.2", "@typescript-eslint/eslint-plugin": "^8.46.2", "@typescript-eslint/parser": "^8.46.2", "@vitest/web-worker": "^4.0.6", - "eslint": "^9.38.0", + "eslint": "^9.39.0", "eslint-plugin-unused-imports": "^4.3.0", "globals": "^16.4.0", "jsdom": "^27.1.0", From 9ea6008897ca693a6b02654757075111193df584 Mon Sep 17 00:00:00 2001 From: ienaga Date: Sat, 1 Nov 2025 11:31:28 +0900 Subject: [PATCH 3/3] #52 update README.md, update github/actions --- .github/workflows/codeql-analysis.yml | 72 --------------------------- .github/workflows/lint.yml | 6 +++ .github/workflows/publish.yml | 3 ++ README.md | 2 +- 4 files changed, 10 insertions(+), 73 deletions(-) delete mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index bae123b..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,72 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ "main", "develop" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "main", "develop" ] - schedule: - - cron: '44 22 * * 5' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'javascript-typescript' ] - # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] - # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both - # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v5 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 - - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bfc5438..1261df1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,6 +13,9 @@ on: jobs: macos-browser-test: runs-on: macos-latest + permissions: + contents: read + pull-requests: write steps: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 @@ -23,6 +26,9 @@ jobs: windows-browser-test: runs-on: windows-latest + permissions: + contents: read + pull-requests: write steps: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d032f9a..4a2fb1d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,9 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write steps: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 diff --git a/README.md b/README.md index 9236223..9a7b5bc 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Next2D Framework TypeScript Template ============= -[![CodeQL](https://github.com/Next2D/framework-typescript-template/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/Next2D/framework-typescript-template/actions/workflows/codeql-analysis.yml) +[![CodeQL](https://github.com/Next2D/framework-typescript-template/actions/workflows/github-code-scanning/codeql/badge.svg?branch=main)](https://github.com/Next2D/framework-typescript-template/actions/workflows/github-code-scanning/codeql) [![release](https://img.shields.io/github/v/release/Next2D/framework-typescript-template)](https://github.com/Next2D/framework-typescript-template/releases) [![license](https://img.shields.io/github/license/Next2D/framework-typescript-template)](https://github.com/Next2D/framework-typescript-template/blob/main/LICENSE)