From 0707056f59a8aee0b2d716a1d703fa508e268ee9 Mon Sep 17 00:00:00 2001 From: Matt Pocock Date: Fri, 13 Sep 2024 15:54:22 +0200 Subject: [PATCH] Upgrades --- .github/workflows/section-repos.yml | 24 ++++++++++++++++++++++++ .gitignore | 1 - .vscode/settings.json | 8 ++++++++ renovate.json | 8 +++++++- vite.config.mts | 4 +--- 5 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/section-repos.yml create mode 100644 .vscode/settings.json diff --git a/.github/workflows/section-repos.yml b/.github/workflows/section-repos.yml new file mode 100644 index 0000000..81f5e36 --- /dev/null +++ b/.github/workflows/section-repos.yml @@ -0,0 +1,24 @@ +name: Create Section Repos +on: + push: + branches: + - "main" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + - run: git config --global user.email "total-typescript@bot.com" + - run: git config --global user.name "Total TypeScript Bot" + - run: npx @total-typescript/exercise-cli@latest create-section-repos + env: + GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 59ecb4b..e3f3945 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules -.vscode tsconfig.temp.json \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b6621bd --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "typescript.tsdk": "node_modules/typescript/lib", + "typescript.enablePromptUseWorkspaceTsdk": true, + "github.copilot.enable": { + "*": false, + }, + "explorer.sortOrder": "mixed", +} \ No newline at end of file diff --git a/renovate.json b/renovate.json index a9a7f86..29b50a8 100644 --- a/renovate.json +++ b/renovate.json @@ -7,7 +7,13 @@ "excludePackagePatterns": [ "typescript", "vitest", - "@total-typescript/exercise-cli" + "jsdom", + "prettier", + "vite-tsconfig-paths", + "react", + "@types/react", + "@total-typescript/exercise-cli", + "zod" ], "enabled": false } diff --git a/vite.config.mts b/vite.config.mts index aaf4e30..c5cfc0c 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -1,11 +1,9 @@ import { defineConfig } from "vitest/config"; import tsconfigPaths from "vite-tsconfig-paths"; -import path from "path"; export default defineConfig({ test: { - include: ["src/**/*{problem,solution,explainer}*.ts"], - setupFiles: [path.resolve(__dirname, "scripts/setup.ts")], + include: ["src/**/*{problem,solution,explainer}*.{ts,tsx}"], passWithNoTests: true, environment: "jsdom", },