From dd04449fe50af9c124184e20978fd442798d28b6 Mon Sep 17 00:00:00 2001 From: Curtis Dulmage Date: Sat, 7 Dec 2024 14:01:36 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B0=20[Project]=20Maintenence=20(#90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/tall-monkeys-sip.md | 6 + .github/labeler.yml | 18 +- .github/workflows/deploy.yml | 4 +- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- .nvmrc | 2 +- .vscode/extensions.json | 1 + .vscode/settings.json | 2 + app/website/README.md | 60 - app/website/eslint.config.mjs | 23 +- app/website/package.json | 22 +- app/website/tsconfig.app.json | 11 + app/website/tsconfig.json | 34 +- app/website/tsconfig.node.json | 10 + app/website/vite.config.ts | 7 +- eslint.config.mjs | 20 +- package.json | 29 +- pkg/earwurm/package.json | 12 +- pkg/earwurm/src/Stack.ts | 4 +- pkg/earwurm/src/tests/Earwurm.test.ts | 16 + pkg/earwurm/src/tests/Stack.test.ts | 3 +- pkg/earwurm/vite.config.ts | 4 +- pkg/helpers/package.json | 4 +- pkg/mocks/package.json | 6 +- pkg/types/package.json | 4 +- pnpm-lock.yaml | 4033 ++++++++++++++----------- tsconfig.json | 3 +- vite.config.ts | 12 +- vitest.config.ts | 16 + 30 files changed, 2476 insertions(+), 1896 deletions(-) create mode 100644 .changeset/tall-monkeys-sip.md create mode 100644 app/website/tsconfig.app.json create mode 100644 app/website/tsconfig.node.json create mode 100644 vitest.config.ts diff --git a/.changeset/tall-monkeys-sip.md b/.changeset/tall-monkeys-sip.md new file mode 100644 index 0000000..2550c3b --- /dev/null +++ b/.changeset/tall-monkeys-sip.md @@ -0,0 +1,6 @@ +--- +"website": patch +"earwurm": patch +--- + +Update project dependencies. diff --git a/.github/labeler.yml b/.github/labeler.yml index b9b59a8..adc32db 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -24,18 +24,12 @@ - '.github/**' - '.vscode/**' - .editorconfig - - .eslintignore - - .eslintrc - - .eslintrc.cjs - - .gitignore - - .npmignore - - .nvmrc - - .prettierignore - - .prettierrc + - '.env*' + - '.*ignore' + - '.*rc' - 'config/**' - - package.json - - tsconfig.json - - 'tsconfig.*.json' - - vite.config.ts + - '*.config.*' + - 'package*.json' + - 'tsconfig*.json' - '**/*/env.d.ts' - '**/*/lightningcss-plugins.ts' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 97e55ae..c04d217 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,7 +34,7 @@ jobs: - name: 🧰 Configure PNPM uses: pnpm/action-setup@v4 - - name: 🔧 Setup Node 20.x + - name: 🔧 Setup Node 22.x uses: actions/setup-node@v4 with: node-version-file: .nvmrc @@ -47,7 +47,7 @@ jobs: run: pnpm build - name: 📄 Configure Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: 📈 Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 974691c..b9990a3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: - name: 🧰 Configure PNPM uses: pnpm/action-setup@v4 - - name: 🔧 Setup Node 20.x + - name: 🔧 Setup Node 22.x uses: actions/setup-node@v4 with: node-version-file: .nvmrc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff16f91..34abe3a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: 🧰 Configure PNPM uses: pnpm/action-setup@v4 - - name: 🔧 Setup Node 20.x + - name: 🔧 Setup Node 22.x uses: actions/setup-node@v4 with: node-version-file: .nvmrc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1c832d3..15766dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: - name: 🧰 Configure PNPM uses: pnpm/action-setup@v4 - - name: 🔧 Setup Node 20.x + - name: 🔧 Setup Node 22.x uses: actions/setup-node@v4 with: node-version-file: .nvmrc diff --git a/.nvmrc b/.nvmrc index 1bdd901..8b84b72 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.16 +22.11 diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 7658c5e..05f7952 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -9,6 +9,7 @@ "DavidAnson.vscode-markdownlint", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", + "yoavbls.pretty-ts-errors", "vue.volar", "csstools.postcss" ], diff --git a/.vscode/settings.json b/.vscode/settings.json index 7ba80dd..a1b8d10 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -67,7 +67,9 @@ "gql", "graphql", "astro", + "svelte", "css", + "less", "scss", "pcss", "postcss" diff --git a/app/website/README.md b/app/website/README.md index 61f6a01..e7afa02 100644 --- a/app/website/README.md +++ b/app/website/README.md @@ -1,63 +1,3 @@ # Earwurm app This repo hosts the website for the `earwurm` project. - -## TsConfig - -Originally, we isolated the `app` vs `node` configs. This had to be changed however because of the following bug: - -As a result, the following packages were removed: - -```json -{ - "@tsconfig/node20": "^20.1.4", - "@vue/tsconfig": "^0.5.1" -} -``` - -### Record keeping - -In case we ever restore the original `tsconfig`: - -#### tsconfig.app.json - -```json -{ - "extends": "@vue/tsconfig/tsconfig.dom.json", - "compilerOptions": { - "composite": true, - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - } - }, - "include": ["env.d.ts", "src/**/*", "src/**/*.vue"] -} -``` - -#### tsconfig.node.json - -```json -{ - "extends": "@tsconfig/node20/tsconfig.json", - "compilerOptions": { - "composite": true, - "module": "esnext", - "moduleResolution": "bundler", - "types": ["node"] - }, - "include": ["lightningcss-plugins.ts", "vite.config.ts"] -} -``` - -#### tsconfig.json - -```json -{ - "references": [ - { "path": "./tsconfig.node.json" }, - { "path": "./tsconfig.app.json" } - ], - "files": [] -} -``` diff --git a/app/website/eslint.config.mjs b/app/website/eslint.config.mjs index da5cd20..60a4f71 100644 --- a/app/website/eslint.config.mjs +++ b/app/website/eslint.config.mjs @@ -4,8 +4,8 @@ import antfu from '@antfu/eslint-config'; export default antfu( // Websites config { + name: 'website', type: 'app', - // ignores: [], formatters: { // Formats .css and .scss files, but also the `