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 55371e5..e3f3945 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ node_modules -.vscode \ No newline at end of file +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", },